:root {
    --bg-color: #f8f9fa;
    --surface-color: #ffffff;
    --surface-hover: #f0fdf4;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-color: #388e3c;
    --accent-glow: rgba(56, 142, 60, 0.25);
    --accent-gradient: linear-gradient(135deg, #388e3c, #66bb6a);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(56, 142, 60, 0.35);
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --radius-lg: 16px;
    --radius-md: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(56, 142, 60, 0.06) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(129, 199, 132, 0.04) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

/* Header */
.app-header {
    position: relative;
    margin-bottom: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: var(--card-shadow);
    display: flex;
    min-height: 250px;
}

.app-header .header-content {
    display: flex;
    width: 100%;
    align-items: stretch;
}

.app-header .header-text {
    width: auto;
    min-width: 300px;
    max-width: 45%;
    background-color: #ffffff;
    background-image: linear-gradient(135deg, rgba(56, 142, 60, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    border-right: 1px solid var(--border-color);
}

.app-header .header-image {
    flex: 1;
    min-width: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.app-header .logo,
.app-header .subtitle {
    position: relative;
    z-index: 2;
}

.app-header h1 {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.app-header h1 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.15rem;
    font-weight: 500;
    margin-top: 0.75rem;
}

/* Page Header Images */
.header-index .header-image { background-image: url('images/homepage.webp'); }
.header-veicolo .header-image { background-image: url('images/homepage.webp'); }
.header-spese .header-image { background-image: url('images/homepage.webp'); }
.header-manutenzione .header-image { background-image: url('images/homepage.webp'); }
.header-modifiche .header-image { background-image: url('images/homepage.webp'); }
.header-altro .header-image { background-image: url('images/homepage.webp'); }

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    width: 100%;
}

.top-nav .back-link {
    margin-bottom: 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.back-link i {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.back-link:hover {
    color: var(--accent-color);
}

.back-link:hover i {
    transform: translateX(-4px);
}

.logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.header-logout {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.header-logout:hover {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
    transform: translateY(-1px);
}

.header-logout:active {
    transform: scale(0.98);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.dashboard-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
}

.dashboard-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-card:hover:not(.disabled) {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    background: var(--surface-hover);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15), 0 0 25px var(--accent-glow);
}

.dashboard-card:hover::after {
    opacity: 1;
}

.dashboard-card.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: rgba(56, 142, 60, 0.08);
    color: var(--accent-color);
    font-size: 1.85rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(56, 142, 60, 0.15);
}

.dashboard-card:hover:not(.disabled) .card-icon {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 0 15px rgba(129, 199, 132, 0.4);
    transform: scale(1.05);
}

.dashboard-card h2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dashboard-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Data Page Section */
.data-section {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.data-section h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    color: var(--accent-color);
    font-size: 1.45rem;
    font-weight: 600;
}

.data-section h2 i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.data-item {
    background: rgba(0, 0, 0, 0.02);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

.data-item:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(56, 142, 60, 0.25);
}

.data-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.data-value {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    overflow-wrap: break-word;
    word-break: break-word;
}

.quote-block {
    background: rgba(56, 142, 60, 0.04);
    border-left: 4px solid var(--accent-color);
    padding: 1.75rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
    overflow-wrap: break-word;
    word-break: break-word;
    border: 1px solid rgba(56, 142, 60, 0.1);
    border-left-width: 4px;
}

/* Optional List */
.optional-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.optional-list li {
    background: rgba(0, 0, 0, 0.02);
    padding: 1.25rem 1.75rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-color);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    border-right: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.optional-list li:hover {
    background: rgba(0, 0, 0, 0.03);
    border-left-color: #66bb6a;
    transform: translateX(4px);
}

.optional-code {
    font-weight: 700;
    color: var(--accent-color);
    margin-right: 0.75rem;
    font-family: monospace;
    font-size: 1.05rem;
}

.optional-desc {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.35rem;
}

/* Expenses Page */
.expenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.expense-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.expense-card:hover {
    border-color: rgba(56, 142, 60, 0.25);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.12);
}

.expense-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.25rem;
}

.expense-title {
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

.expense-title i {
    color: var(--accent-color);
    font-size: 1.4rem;
}

.expense-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    white-space: nowrap;
}

.expense-actions button {
    width: 100%;
    padding: 0.85rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(56, 142, 60, 0.2);
    background: rgba(56, 142, 60, 0.08);
    color: var(--accent-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.expense-actions button:hover {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(56, 142, 60, 0.35);
}

/* Modals */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.5); 
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #ffffff;
    margin: 6vh auto; 
    padding: 3rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 480px;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: slideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scrollbar customization for Modal content */
.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 3px;
}

@keyframes slideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.data-table th, .data-table td {
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    font-size: 0.95rem;
}

.data-table th {
    background: #f8f9fa;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: rgba(0, 0, 0, 0.02);
}

.close-modal {
    position: absolute;
    top: 1.75rem;
    right: 1.75rem;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
}

.close-modal:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.1);
}

.modal h2 {
    margin-bottom: 2rem;
    font-size: 1.55rem;
    color: var(--accent-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.9rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: #f8f9fa;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23388e3c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 1.1rem !important;
    padding-right: 2.75rem !important;
    cursor: pointer;
}

select:hover {
    border-color: rgba(56, 142, 60, 0.4) !important;
    background-color: #f0fdf4 !important;
}

.form-group input:focus,
.form-group select:focus,
select:focus {
    outline: none;
    border-color: var(--accent-color) !important;
    background: #ffffff !important;
    box-shadow: 0 0 10px rgba(56, 142, 60, 0.2) !important;
}

select option {
    background-color: #ffffff;
    color: var(--text-primary);
    padding: 10px;
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(56, 142, 60, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(56, 142, 60, 0.45);
}

.btn-primary:active {
    transform: scale(0.99);
}

/* Split Modal Layout */
.modal-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    flex: 1;
    min-height: 0;
}

.modal-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    overflow: hidden;
}

.modal-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
}

@media (max-width: 768px) {
    .modal-split-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .modal-image-container {
        height: 250px;
    }
}

/* Expenses List inside Card */
.expense-list {
    margin-top: 0.5rem;
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding-right: 0.5rem;
    position: relative;
}

.expense-list::-webkit-scrollbar {
    width: 5px;
}
.expense-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 3px;
}
.expense-list::-webkit-scrollbar-track {
    background: transparent;
}

.expense-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.expense-item:hover {
    border-color: rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.03);
}

.expense-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.expense-item-desc {
    font-weight: 550;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.expense-item-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.expense-item-amount {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.delete-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
    cursor: pointer;
    border-radius: 6px;
    padding: 0.35rem 0.5rem;
    font-size: 0.85rem;
    line-height: 1;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.delete-btn:hover {
    background: #ef4444;
    color: white;
    border-color: transparent;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .app-container {
        padding: 1.25rem 0.75rem;
    }
    
    /* Header optimization */
    .app-header {
        padding: 0;
        margin-bottom: 1.75rem;
        min-height: auto;
    }

    .app-header .header-content {
        flex-direction: column;
    }

    .app-header .header-text {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 2rem 1.25rem;
    }

    .app-header .header-image {
        width: 100%;
        height: 180px;
    }

    .app-header h1 {
        font-size: 1.95rem;
    }
    
    .app-header .subtitle {
        font-size: 1rem;
    }
    
    /* Dashboard Menu */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    /* Filters section */
    .filters-section {
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 1.25rem 1rem !important;
    }
    
    .filters-section > div {
        width: 100% !important;
        flex: none !important;
    }
    
    .filters-section button,
    .filters-section select {
        width: 100% !important;
    }
    
    /* Maintenance & Modification Cards generated by JS */
    .manutenzione-list .expense-card {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
        padding: 1.5rem 1.25rem !important;
    }
    
    .manutenzione-list .expense-card > div {
        width: 100% !important;
        align-items: flex-start !important;
        min-width: 0 !important;
    }
    
    .manutenzione-list .expense-card > div:last-child {
        align-items: stretch !important;
        margin-top: 0.5rem;
        flex-direction: row !important;
        justify-content: space-between !important;
    }

    .manutenzione-list .expense-card > div:last-child button {
        width: auto !important;
        flex: 1;
        max-width: 150px;
    }

    /* Premium mobile styling specifically for modification cards */
    #modifiche-container .expense-card {
        position: relative !important;
        padding: 3.75rem 1.25rem 1.25rem 1.25rem !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    /* Category badge top-left */
    #modifiche-container .expense-card > div:first-child > div:first-child {
        position: absolute !important;
        top: 1.25rem !important;
        left: 1.25rem !important;
        margin-bottom: 0 !important;
    }
    
    /* Status badge top-right */
    #modifiche-container .expense-card > div:last-child > div:first-child {
        position: absolute !important;
        top: 1.1rem !important;
        right: 1.25rem !important;
        margin-bottom: 0 !important;
        font-size: 0.8rem !important;
        padding: 0.25rem 0.55rem !important;
        border-radius: 6px !important;
    }
    
    #modifiche-container .expense-card > div:first-child {
        width: 100% !important;
        min-width: 0 !important;
        align-items: flex-start !important;
    }
    
    #modifiche-container .expense-card h3 {
        font-size: 1.15rem !important;
        margin-top: 0.15rem !important;
    }
    
    #modifiche-container .expense-card p {
        font-size: 0.85rem !important;
        padding: 0.6rem !important;
        margin-top: 0.5rem !important;
    }
    
    /* Action buttons row at the bottom */
    #modifiche-container .expense-card > div:last-child {
        width: 100% !important;
        min-width: 0 !important;
        align-items: stretch !important;
        margin-top: 0.5rem !important;
    }
    
    #modifiche-container .expense-card > div:last-child > div:last-child {
        display: flex !important;
        flex-direction: row !important;
        gap: 0.75rem !important;
        width: 100% !important;
    }
    
    #modifiche-container .expense-card > div:last-child button.delete-btn,
    #modifiche-container .expense-card > div:last-child a {
        flex: 1 !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0.65rem 0.5rem !important;
        font-size: 0.85rem !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 0.35rem !important;
    }
    
    /* Modals & Forms */
    .modal-content {
        padding: 1.75rem 1.25rem !important;
        margin: 4vh auto !important;
        width: 95% !important;
        max-height: 92vh;
    }
    
    .modal h2 {
        font-size: 1.35rem;
        margin-bottom: 1.5rem;
    }
    
    .modal-split-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .modal-image-container {
        height: 200px;
    }
    
    /* Target flex layouts inside form groups */
    .modal-content form div[style*="display:flex"],
    .modal-content form div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    .modal-content form div[style*="display:flex"] > .form-group,
    .modal-content form div[style*="display: flex"] > .form-group {
        width: 100% !important;
        flex: none !important;
    }
    
    /* Tables responsiveness */
    .data-table th, .data-table td {
        padding: 0.85rem 0.75rem;
        font-size: 0.85rem;
    }
    .data-table th {
        font-size: 0.72rem;
    }
    
    /* Expenses Page details */
    .expenses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .total-summary #grand-total {
        font-size: 2.2rem !important;
    }

    /* Hide text inside logout buttons on mobile */
    .header-logout span,
    .logout-btn span {
        display: none;
    }
    .header-logout,
    .logout-btn {
        padding: 0.6rem !important;
    }
    .header-logout {
        top: 1rem !important;
        right: 1rem !important;
    }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
