* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Prelude', Arial, sans-serif;
    background: radial-gradient(ellipse at center, #1a1a1a 0%, #000000 100%);
    min-height: 100vh;
    padding: 20px;
    color: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(40, 40, 40, 0.95);
    border-radius: 24px;
    padding: 30px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 
                0 8px 32px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

h1 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: 300;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: -0.5px;
}

.header-controls {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.list-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.new-list-btn {
    background: linear-gradient(135deg, #00d084 0%, #00b872 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
                0 4px 12px rgba(0, 208, 132, 0.2);
}

.new-list-btn:hover {
    transform: scale(1.05) translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3),
                0 6px 16px rgba(0, 208, 132, 0.3);
    background: linear-gradient(135deg, #00e094 0%, #00c482 100%);
}

.minimal-new-list-form {
    background: rgba(50, 50, 50, 0.9);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 208, 132, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1),
                0 8px 24px rgba(0, 208, 132, 0.1);
}

.minimal-form-content {
    max-width: 500px;
    margin: 0 auto;
}

.minimal-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.minimal-input-group input {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 12px;
    min-width: 200px;
}

.minimal-create-btn {
    background: linear-gradient(135deg, #00d084 0%, #00b872 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
                0 4px 12px rgba(0, 208, 132, 0.2);
}

.minimal-create-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #00e094 0%, #00c482 100%);
}

.minimal-cancel-btn {
    background: rgba(60, 60, 60, 0.8);
    color: #cccccc;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.minimal-cancel-btn:hover {
    background: rgba(70, 70, 70, 0.8);
    color: #ffffff;
    transform: scale(1.05);
}

.currency-selector {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 100;
}

.storage-indicator {
    position: absolute;
    top: 25px;
    right: 120px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(40, 40, 40, 0.7);
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0.6;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 12px;
}

.storage-indicator:hover {
    opacity: 1;
    background: rgba(50, 50, 50, 0.8);
    transform: scale(1.05);
}

.storage-indicator.cloud {
    border-color: rgba(0, 168, 255, 0.3);
    background: rgba(0, 168, 255, 0.1);
}

.storage-indicator.local {
    border-color: rgba(255, 193, 7, 0.3);
    background: rgba(255, 193, 7, 0.1);
}

.storage-indicator.error {
    border-color: rgba(255, 107, 107, 0.3);
    background: rgba(255, 107, 107, 0.1);
}

.storage-icon {
    font-size: 12px;
    line-height: 1;
}

.storage-text {
    font-size: 10px;
    font-weight: 500;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.currency-selector select {
    padding: 4px 6px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    background: rgba(40, 40, 40, 0.7);
    color: #888888;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-width: 32px;
    width: 32px;
    height: 32px;
    text-align: center;
    opacity: 0.4;
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.currency-selector select:hover {
    opacity: 0.8;
    background: rgba(50, 50, 50, 0.8);
    color: #cccccc;
    transform: scale(1.1);
}

.currency-selector select:focus {
    opacity: 1;
    background: rgba(60, 60, 60, 0.9);
    color: #ffffff;
    box-shadow: 0 0 0 2px rgba(0, 150, 255, 0.3);
    transform: scale(1.1);
    outline: none;
}

select, input, button {
    padding: 14px 24px;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: rgba(60, 60, 60, 0.9);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1),
                0 4px 16px rgba(0, 0, 0, 0.3);
}

select:focus, input:focus {
    outline: none;
    background: rgba(80, 80, 80, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15),
                0 0 0 3px rgba(0, 150, 255, 0.3),
                0 4px 16px rgba(0, 0, 0, 0.4);
    transform: scale(1.02);
}

button {
    background: linear-gradient(135deg, #00a8ff 0%, #0078d4 100%);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
                0 4px 16px rgba(0, 0, 0, 0.3);
}

button:hover {
    transform: scale(1.05) translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3),
                0 6px 20px rgba(0, 168, 255, 0.4);
    background: linear-gradient(135deg, #1bb3ff 0%, #0084e0 100%);
}

button:active {
    transform: scale(0.98);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #ff7979 0%, #f55a4e 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3),
                0 6px 20px rgba(255, 107, 107, 0.4);
}

.new-list-form {
    background: rgba(50, 50, 50, 0.8);
    padding: 32px;
    border-radius: 24px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1),
                0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.new-list-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 168, 255, 0.6), transparent);
}

.form-header {
    text-align: center;
    margin-bottom: 28px;
}

.form-header h3 {
    font-size: 1.6em;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.form-header p {
    color: #b0b0b0;
    font-size: 14px;
    margin: 0;
}

.form-content {
    max-width: 600px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-group label {
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-with-button {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.input-with-button input {
    flex: 1;
    padding: 16px 20px;
    font-size: 16px;
    border-radius: 16px;
    min-height: 52px;
}

.create-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #00a8ff 0%, #0078d4 100%);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
                0 6px 20px rgba(0, 168, 255, 0.3);
    min-height: 52px;
    white-space: nowrap;
}

.create-btn:hover {
    transform: scale(1.02) translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3),
                0 8px 28px rgba(0, 168, 255, 0.4);
    background: linear-gradient(135deg, #1bb3ff 0%, #0084e0 100%);
}

.create-btn:active {
    transform: scale(0.98);
}

.btn-icon {
    font-size: 18px;
    line-height: 1;
}

.btn-text {
    font-size: 16px;
}

.input-hint {
    color: #888888;
    font-size: 13px;
    margin: 0;
    font-style: italic;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    color: #cccccc;
    font-size: 14px;
}

.current-list {
    margin-bottom: 30px;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.9) 0%, rgba(0, 120, 212, 0.9) 100%);
    color: white;
    border-radius: 24px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
                0 8px 32px rgba(0, 168, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.list-title {
    font-size: 1.8em;
    font-weight: 300;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.list-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.sort-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sort-controls select {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 16px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.list-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.list-actions #addItemBtn {
    background: linear-gradient(135deg, #00d084 0%, #00b872 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 20px;
    border-radius: 18px;
    font-size: 15px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3),
                0 4px 16px rgba(0, 208, 132, 0.4);
    text-transform: none;
    letter-spacing: 0.3px;
}

.list-actions #addItemBtn:hover {
    background: linear-gradient(135deg, #00e094 0%, #00c482 100%);
    transform: scale(1.05) translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4),
                0 6px 20px rgba(0, 208, 132, 0.5);
}

.list-actions button:not(#addItemBtn) {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 16px;
    border-radius: 16px;
    font-size: 14px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    opacity: 0.8;
}

.list-actions button:not(#addItemBtn):hover {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.02);
    opacity: 1;
}

/* Desktop layout: two-column with form on left, items on right */
.list-content-wrapper {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
    align-items: start;
}

/* When form is hidden, items take full width */
.list-content-wrapper.form-hidden {
    grid-template-columns: 1fr;
}

.form-column {
    position: sticky;
    top: 20px;
    min-width: 0; /* Prevent overflow */
}

/* Hide the form column when form is not visible */
.list-content-wrapper.form-hidden .form-column {
    display: none;
}

.items-column {
    min-width: 0; /* Prevents grid overflow */
}

.items-container {
    display: grid;
    gap: 12px;
}

.item-card {
    background: rgba(45, 45, 45, 0.95);
    border-radius: 16px;
    padding: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08),
                0 4px 16px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 168, 255, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.item-card:hover {
    transform: scale(1.01) translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12),
                0 8px 24px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 168, 255, 0.3);
}

.item-card:hover::before {
    opacity: 1;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.item-name {
    font-size: 1.1em;
    font-weight: 300;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.item-price {
    font-size: 1.0em;
    font-weight: 400;
    color: #00d084;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.item-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.pros-cons {
    background: rgba(35, 35, 35, 0.8);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pros {
    border-left: 3px solid #00d084;
}

.cons {
    border-left: 3px solid #ff6b6b;
}

.pros-cons h4 {
    margin-bottom: 6px;
    color: #cccccc;
    font-weight: 400;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pros-cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros-cons li {
    padding: 2px 0;
    position: relative;
    padding-left: 16px;
    color: #e0e0e0;
    font-size: 12px;
    line-height: 1.2;
}

.pros li:before {
    content: "●";
    position: absolute;
    left: 0;
    color: #00d084;
    font-weight: bold;
    font-size: 12px;
}

.cons li:before {
    content: "●";
    position: absolute;
    left: 0;
    color: #ff6b6b;
    font-weight: bold;
    font-size: 12px;
}

.item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.item-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.edit-btn {
    background: linear-gradient(135deg, #00a8ff 0%, #0078d4 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 11px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
                0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.edit-btn:hover {
    transform: scale(1.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3),
                0 3px 12px rgba(0, 168, 255, 0.4);
    background: linear-gradient(135deg, #1bb3ff 0%, #0084e0 100%);
}

.preference-control {
    display: flex;
    align-items: center;
    gap: 6px;
}

.preference-badge {
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.8) 0%, rgba(0, 120, 212, 0.8) 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 400;
    font-size: 11px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.item-form {
    background: rgba(50, 50, 50, 0.8);
    padding: 25px;
    border-radius: 24px;
    margin-bottom: 0; /* Remove bottom margin for side-by-side layout */
    border: 1px solid rgba(0, 168, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1),
                0 8px 32px rgba(0, 168, 255, 0.1);
    width: 100%;
    box-sizing: border-box;
    min-width: 0; /* Prevent overflow */
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.form-grid .form-group {
    margin-bottom: 0; /* Remove individual margins since grid handles spacing */
    min-width: 0; /* Prevent overflow */
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0; /* Prevent overflow */
}

.textarea-group {
    grid-column: 1 / -1; /* Span full width for textareas */
}

.form-group label {
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 12px;
    background: rgba(60, 60, 60, 0.9);
    color: #ffffff;
    border: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1),
                0 4px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    box-sizing: border-box;
    min-width: 0; /* Prevent overflow */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(80, 80, 80, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15),
                0 0 0 3px rgba(0, 150, 255, 0.3),
                0 4px 16px rgba(0, 0, 0, 0.4);
    transform: scale(1.01);
}

textarea {
    width: 100%;
    min-height: 80px;
    padding: 16px;
    border: none;
    border-radius: 16px;
    resize: vertical;
    font-family: inherit;
    background: rgba(60, 60, 60, 0.9);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1),
                0 4px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

textarea:focus {
    outline: none;
    background: rgba(80, 80, 80, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15),
                0 0 0 3px rgba(0, 150, 255, 0.3),
                0 4px 16px rgba(0, 0, 0, 0.4);
    transform: scale(1.01);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #888888;
}

.empty-state h3 {
    margin-bottom: 15px;
    font-size: 1.5em;
    font-weight: 300;
    color: #cccccc;
}

.delete-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 11px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
                0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.delete-btn:hover {
    transform: scale(1.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3),
                0 3px 12px rgba(255, 107, 107, 0.4);
}

.move-btn {
    background: linear-gradient(135deg, rgba(0, 208, 132, 0.8) 0%, rgba(0, 180, 120, 0.8) 100%);
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 11px;
    margin: 0 1px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
                0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: bold;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.move-btn:hover {
    transform: scale(1.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3),
                0 3px 12px rgba(0, 208, 132, 0.4);
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin: 10px;
        border-radius: 20px;
    }

    /* Mobile: stack layout vertically */
    .list-content-wrapper,
    .list-content-wrapper.form-hidden {
        display: block;
    }

    .form-column {
        position: static;
        margin-bottom: 30px;
    }

    /* Show form column on mobile even when hidden class is present */
    .list-content-wrapper.form-hidden .form-column {
        display: block;
    }

    .item-form {
        margin-bottom: 30px; /* Restore margin for mobile */
    }

    /* Mobile form layout: single column */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .textarea-group {
        grid-column: 1; /* Reset to single column */
    }

    .header-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .list-selector {
        justify-content: center;
    }

    .new-list-btn {
        font-size: 13px;
        padding: 8px 12px;
    }

    .minimal-input-group {
        flex-direction: column;
        gap: 12px;
    }

    .minimal-input-group input {
        min-width: auto;
        width: 100%;
    }

    .minimal-create-btn, .minimal-cancel-btn {
        width: 100%;
        justify-content: center;
    }

    .currency-selector {
        top: 15px;
        right: 15px;
    }

    .storage-indicator {
        top: 15px;
        right: 60px;
        font-size: 11px;
    }

    .storage-indicator .storage-icon {
        font-size: 11px;
    }

    .storage-indicator .storage-text {
        font-size: 9px;
    }

    .currency-selector select {
        font-size: 14px;
        width: 28px;
        height: 28px;
        padding: 2px 4px;
    }

    .form-content {
        max-width: none;
    }

    .input-with-button {
        flex-direction: column;
        gap: 16px;
    }

    .create-btn {
        align-self: stretch;
        justify-content: center;
    }

    .item-details {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .list-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        border-radius: 20px;
    }

    .list-controls {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .list-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .list-actions #addItemBtn {
        padding: 10px 16px;
        font-size: 14px;
        font-weight: 600;
    }

    .list-actions button:not(#addItemBtn) {
        font-size: 13px;
        padding: 8px 12px;
    }

    .form-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .add-item-btn, .cancel-btn {
        flex: 1;
        min-width: 120px;
    }

    .close-form-btn {
        padding: 6px 10px;
        font-size: 16px;
    }

    .item-card {
        border-radius: 20px;
    }

    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
    }

    .notification-message {
        font-size: 13px;
    }
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
    background-clip: content-box;
}

::selection {
    background: rgba(0, 168, 255, 0.3);
    color: #ffffff;
}

input::placeholder, textarea::placeholder {
    color: #888888;
    opacity: 1;
}

/* Add missing form-header-with-close styles */
.form-header-with-close {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.form-header-with-close h3 {
    font-size: 1.4em;
    font-weight: 300;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.close-form-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #cccccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-form-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: scale(1.1);
}

option {
    background: rgba(40, 40, 40, 0.95);
    color: #ffffff;
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(40, 40, 40, 0.95);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1),
                0 8px 32px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-width: 400px;
    min-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #00d084;
}

.notification-error {
    border-left: 4px solid #ff6b6b;
}

.notification-info {
    border-left: 4px solid #00a8ff;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.notification-message {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.4;
    flex: 1;
}

/* Remove duplicate form-group styles and consolidate */
/* Form group styles are now defined above in the form-grid section */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
}

.add-item-btn {
    background: linear-gradient(135deg, #00d084 0%, #00b872 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
                0 4px 12px rgba(0, 208, 132, 0.2);
}

.add-item-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #00e094 0%, #00c482 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3),
                0 6px 16px rgba(0, 208, 132, 0.3);
}

.cancel-btn {
    background: rgba(60, 60, 60, 0.8);
    color: #cccccc;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: rgba(70, 70, 70, 0.8);
    color: #ffffff;
    transform: scale(1.05);
}