/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* Login Page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    box-sizing: border-box;
    flex-shrink: 0;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

@media (max-width: 768px) {
    .login-page {
        padding: 15px;
        min-height: 100vh;
        min-height: -webkit-fill-available; /* iOS fix */
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .login-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .login-box {
        padding: 30px 20px;
        border-radius: 12px;
        max-width: 100%;
        width: 100%;
        margin: 0;
    }
}

.login-box h1 {
    text-align: center;
    color: #667eea;
    margin: 0 0 10px 0;
    font-size: 28px;
    padding: 0;
}

.subtitle {
    text-align: center;
    color: #666;
    margin: 0 0 30px 0;
    font-size: 14px;
    padding: 0;
}

.login-info {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 12px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .login-info {
        font-size: 11px;
        padding: 12px;
    }
}

.login-info code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.register-link {
    margin-top: 25px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    width: 100%;
    box-sizing: border-box;
}

.register-link p {
    margin: 8px 0;
    padding: 0;
    font-size: 14px;
    text-align: center;
    width: 100%;
}

.register-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #f8f9ff;
    border: 1px solid #e0e6ff;
    min-width: 180px;
}

.register-link a:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    text-decoration: none;
}

.register-link a:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2);
}

/* Icon arrow styling for back links */
.register-link a.back-link::before {
    content: '←';
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.register-link a.back-link:hover::before {
    transform: translateX(-3px);
}

/* Resend link styling */
.register-link a.resend-link {
    background: #fff5f5;
    border-color: #ffe0e0;
    color: #e74c3c;
}

.register-link a.resend-link:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Inline link styling (for "Đăng nhập ngay" in register) */
.register-link a:not(.back-link):not(.resend-link) {
    background: transparent;
    border: none;
    padding: 0;
    min-width: auto;
    color: #667eea;
    font-weight: 600;
}

.register-link a:not(.back-link):not(.resend-link):hover {
    background: transparent;
    transform: none;
    box-shadow: none;
    text-decoration: underline;
    color: #764ba2;
}

.required {
    color: #dc3545;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 12px;
}

/* Method Selection (Select Style) */
.method-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
}

.method-select:hover {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.method-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background-color: white;
}

.method-select option {
    padding: 12px;
    font-size: 14px;
}

.method-select option:first-child {
    color: #999;
}

@media (max-width: 768px) {
    .method-select {
        padding: 14px 15px;
        padding-right: 40px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Register Form Specific */
.register-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.btn-register {
    width: 100%;
    margin-top: 10px;
    padding: 14px;
    font-size: 16px;
    box-sizing: border-box;
}

.login-box form {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Mobile centering fix */
@media (max-width: 768px) {
    .login-page {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .login-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .login-box {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    .login-box h1,
    .login-box .subtitle,
    .login-box form,
    .login-box .register-link,
    .login-box .login-info,
    .login-box .error-message,
    .login-box .alert {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar h2 {
    color: #667eea;
    font-size: 24px;
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 12px;
    border-radius: 6px;
}

.nav-links a:hover {
    color: #764ba2;
    background: rgba(102, 126, 234, 0.1);
}

.nav-links span {
    color: #666;
    font-size: 14px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #667eea;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.3s;
}

.mobile-menu-toggle:hover {
    background: rgba(102, 126, 234, 0.1);
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #667eea;
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px 30px;
    }
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.card h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

@media (max-width: 768px) {
    .card {
        padding: 20px;
        margin-bottom: 20px;
        border-radius: 10px;
    }
    
    .card h2 {
        font-size: 20px;
        margin-bottom: 15px;
        padding-bottom: 8px;
    }
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stats-card:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .dashboard-grid {
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .stats-card {
        padding: 20px;
        border-radius: 10px;
    }
}

.stats-card h3 {
    font-size: 16px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.stats-card small {
    display: block;
    margin-top: 10px;
    opacity: 0.8;
    font-size: 14px;
}

.stats-income {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.stats-expense {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.stats-balance.positive {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.stats-balance.negative {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .stat-value {
        font-size: 24px;
    }
    
    .stats-card h3 {
        font-size: 14px;
    }
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    display: block;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

@media (max-width: 768px) {
    .form-group {
        margin-bottom: 18px;
        width: 100%;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 48px; /* Touch-friendly */
        width: 100%;
        box-sizing: border-box;
    }
    
    .form-group label {
        font-size: 15px;
        margin-bottom: 10px;
        width: 100%;
    }
    
    .login-box form {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .register-form {
        width: 100%;
    }
}

.form-group-inline {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 15px;
    vertical-align: top;
}

.form-group-inline label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

/* Date Picker Styles */
.date-picker {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.date-picker:hover {
    border-color: #667eea;
}

.date-picker:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Flatpickr Custom Styles */
.flatpickr-calendar {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.flatpickr-months {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 12px 0 0;
    padding: 15px;
}

.flatpickr-month {
    color: white;
}

.flatpickr-current-month {
    color: white;
    font-weight: 600;
}

.flatpickr-prev-month,
.flatpickr-next-month {
    color: white;
    fill: white;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

.flatpickr-weekdays {
    background: #f8f9fa;
    padding: 10px 0;
}

.flatpickr-weekday {
    color: #667eea;
    font-weight: 600;
}

.flatpickr-day {
    border-radius: 8px;
    margin: 2px;
    transition: all 0.2s;
}

.flatpickr-day:hover {
    background: #e9ecef;
    border-color: #e9ecef;
}

.flatpickr-day.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    font-weight: 600;
}

.flatpickr-day.today {
    border-color: #667eea;
    font-weight: 600;
}

.flatpickr-day.today.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.flatpickr-day.inRange {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
}

.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 8px;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 15px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

@media (max-width: 768px) {
    .btn {
        padding: 14px 20px;
        font-size: 15px;
        width: 100%;
        text-align: center;
        min-height: 48px; /* Touch-friendly size */
    }
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-income {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-income:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.btn-expense {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.btn-expense:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.btn-delete {
    background: #dc3545;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    transition: background 0.3s;
}

.btn-delete:hover {
    background: #c82333;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 8px;
    margin: 0 0 20px 0;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* Expenses List */
.expenses-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.expense-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: transform 0.2s;
}

.expense-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.expense-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.expense-category {
    font-weight: 600;
    color: #667eea;
    font-size: 16px;
}

.expense-amount {
    font-size: 20px;
    font-weight: bold;
    color: #dc3545;
}

.income-amount {
    color: #28a745 !important;
}

.income-item {
    border-left-color: #28a745 !important;
}

.expense-details {
    flex: 2;
    margin-left: 20px;
}

.expense-details p {
    color: #666;
    margin-bottom: 5px;
}

.expense-details small {
    color: #999;
}

/* Category List */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.category-name {
    font-weight: 600;
    color: #555;
}

.category-amount {
    font-weight: bold;
    color: #667eea;
    font-size: 18px;
}

/* Category Chart */
.category-chart {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chart-item {
    margin-bottom: 10px;
}

.chart-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 500;
}

.chart-amount {
    color: #667eea;
    font-weight: bold;
}

.chart-bar {
    height: 30px;
    background: #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.chart-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    transition: width 0.5s;
}

.income-fill {
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%) !important;
}

.chart-percentage {
    margin-top: 5px;
    text-align: right;
    font-size: 12px;
    color: #666;
}

/* Table */
.expenses-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

thead {
    background: #667eea;
    color: white;
}

th, td {
    padding: 12px;
    text-align: left;
}

tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

tbody tr:hover {
    background: #f8f9fa;
}

.amount-cell {
    font-weight: bold;
    color: #dc3545;
}

/* Empty Message */
.empty-message {
    text-align: center;
    color: #999;
    padding: 40px;
    font-style: italic;
}

/* Charts */
.card canvas {
    max-width: 100%;
    height: auto !important;
}

.chart-container {
    position: relative;
    height: 400px;
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    /* Mobile Menu */
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 999;
        gap: 0;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a,
    .nav-links span {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #f0f0f0;
        text-align: center;
        width: 100%;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .nav-container {
        position: relative;
    }
    
    /* Content Grid */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Expense Items */
    .expense-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 15px;
    }
    
    .expense-info {
        width: 100%;
    }
    
    .expense-amount {
        font-size: 18px;
    }
    
    .expense-category {
        font-size: 15px;
    }
    
    .expense-details {
        margin-left: 0;
        width: 100%;
    }
    
    /* Forms */
    .filter-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group-inline {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .form-group-inline .btn-secondary {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    /* Tables */
    .expenses-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        font-size: 14px;
        min-width: 500px;
    }
    
    th, td {
        padding: 10px 8px;
    }
    
    /* Charts */
    .card canvas {
        max-height: 300px !important;
    }
    
    /* Category Chart */
    .chart-item {
        margin-bottom: 15px;
    }
    
    .chart-label {
        font-size: 14px;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .chart-bar {
        height: 25px;
    }
    
    /* Login/Register */
    .login-box {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .login-box h1 {
        font-size: 24px;
    }
    
    /* Date Picker Mobile */
    .date-picker {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Buttons in forms */
    .btn-primary,
    .btn-income,
    .btn-expense {
        width: 100%;
        margin-top: 10px;
    }
    
    /* Stats Cards */
    .stats-card small {
        font-size: 12px;
    }
    
    /* Empty Message */
    .empty-message {
        padding: 30px 20px;
        font-size: 14px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .navbar h2 {
        font-size: 20px;
    }
    
    .card {
        padding: 15px;
    }
    
    .card h2 {
        font-size: 18px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .stats-card {
        padding: 15px;
    }
    
    .expense-amount {
        font-size: 16px;
    }
    
    .category-amount {
        font-size: 16px;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .nav-links {
        top: 60px;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
}

