/* ========================================
   PREMIUM HEALTH TRACKER CSS
   Modern, Professional, Clean Design
   ======================================== */

/* ============ CSS VARIABLES ============ */
:root {
    --primary-dark: #0f2b4a;
    --primary: #1a4b6a;
    --primary-light: #2b6c8f;
    --primary-lighter: #4a8fb5;
    --primary-gradient: linear-gradient(135deg, #0f2b4a 0%, #1a4b6a 50%, #2b6c8f 100%);
    --secondary: #f59e0b;
    --secondary-light: #fbbf24;
    --accent: #10b981;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --purple: #8b5cf6;
    --pink: #ec4899;
    --indigo: #6366f1;
    
    --bg-primary: #f0f4f8;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-section: #f8fafc;
    --bg-hover: #f1f5f9;
    
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ RESET & BASE ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============ CONTAINER ============ */
.app-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
}

@media (min-width: 768px) {
    .app-container {
        padding: 24px 32px;
    }
}

@media (min-width: 1024px) {
    .app-container {
        padding: 32px 40px;
    }
}

/* ========================================
   HEADER - Premium Glass Effect
   ======================================== */
.app-header {
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
    padding: 20px 24px;
    box-shadow: 0 8px 32px rgba(15, 43, 74, 0.3);
    position: relative;
    overflow: hidden;
}

.app-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.app-header::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(43, 108, 143, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

@media (min-width: 600px) {
    .app-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 22px 32px;
        gap: 0;
        border-radius: var(--radius-xl);
    }
}

@media (min-width: 1024px) {
    .app-header {
        padding: 26px 40px;
        border-radius: var(--radius-2xl);
    }
}

.logo {
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .logo {
        font-size: 26px;
    }
}

.logo i {
    font-size: 28px;
    color: var(--secondary-light);
    filter: drop-shadow(0 2px 8px rgba(251, 191, 36, 0.3));
}

@media (min-width: 768px) {
    .logo i {
        font-size: 32px;
    }
}

.logo span {
    background: linear-gradient(to right, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    position: relative;
    z-index: 1;
}

@media (min-width: 600px) {
    .header-actions {
        width: auto;
        justify-content: flex-end;
        gap: 16px;
    }
}

.date-badge {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

@media (min-width: 768px) {
    .date-badge {
        padding: 10px 22px;
        font-size: 14px;
    }
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
}

@media (min-width: 768px) {
    .user-badge {
        padding: 10px 20px;
        font-size: 14px;
    }
}

.user-badge i {
    font-size: 16px;
    opacity: 0.8;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 15px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.3);
    transform: scale(1.05);
}

/* ========================================
   QUICK STATS - Premium Cards
   ======================================== */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

@media (max-width: 420px) {
    .quick-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (min-width: 768px) {
    .quick-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
}

.stat-card {
    background: var(--bg-card);
    padding: 18px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 0 4px 4px 0;
}

.stat-card:nth-child(1)::before { background: linear-gradient(180deg, #f59e0b, #d97706); }
.stat-card:nth-child(2)::before { background: linear-gradient(180deg, #3b82f6, #1d4ed8); }
.stat-card:nth-child(3)::before { background: linear-gradient(180deg, #8b5cf6, #7c3aed); }
.stat-card:nth-child(4)::before { background: linear-gradient(180deg, #10b981, #059669); }

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.stat-card:nth-child(1) .stat-icon { background: linear-gradient(135deg, #f59e0b, #d97706); }
.stat-card:nth-child(2) .stat-icon { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.stat-card:nth-child(3) .stat-icon { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.stat-card:nth-child(4) .stat-icon { background: linear-gradient(135deg, #10b981, #059669); }

@media (min-width: 768px) {
    .stat-icon {
        width: 54px;
        height: 54px;
        font-size: 22px;
        border-radius: var(--radius-lg);
    }
}

.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    .stat-label {
        font-size: 13px;
    }
}

.stat-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    display: block;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .stat-value {
        font-size: 24px;
    }
}

.stat-detail {
    font-size: 11px;
    color: var(--text-light);
    display: block;
}

/* ========================================
   DASHBOARD GRID
   ======================================== */
.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 1024px) {
    .dashboard-grid {
        display: grid;
        grid-template-columns: 1fr 1.5fr;
        gap: 28px;
    }
}

/* ========================================
   CARDS - Premium Design
   ======================================== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    max-width: 800px;
}

@media (min-width: 768px) {
    .card {
        padding: 28px 32px;
        border-radius: var(--radius-xl);
    }
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 22px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card h2 i {
    color: var(--primary-light);
    font-size: 22px;
}

@media (min-width: 768px) {
    .card h2 {
        font-size: 22px;
        margin-bottom: 26px;
        gap: 12px;
    }
    .card h2 i {
        font-size: 24px;
    }
}

/* ========================================
   FORM SECTIONS - Premium Styling
   ======================================== */
.form-section {
    background: var(--bg-section);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-bottom: 18px;
    border-left: 4px solid var(--primary-light);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
   
}

.form-section:hover {
    background: var(--bg-hover);
    box-shadow: var(--shadow-md);
}

.form-section.morning-section { border-left-color: #f59e0b; }
.form-section.fasting-section { border-left-color: #ef4444; }
.form-section.breakfast-section { border-left-color: #10b981; }
.form-section.lunch-section { border-left-color: #3b82f6; }
.form-section.sugar-lunch-section { border-left-color: #8b5cf6; }
.form-section.dinner-section { border-left-color: #ec4899; }
.form-section.evening-section { border-left-color: #6366f1; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h3 i {
    font-size: 18px;
}

.section-status {
    margin-bottom: 18px;
    padding: 12px 18px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.status-badge {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.status-badge #statusText {
    font-weight: 700;
    color: var(--text-primary);
}

.status-badge #statusText.logged {
    color: var(--success);
}

.status-badge #statusText.partial {
    color: var(--warning);
}

/* ========================================
   SUBMIT BUTTONS - Premium Colors
   ======================================== */
.submit-btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .submit-btn {
        padding: 12px 24px;
        font-size: 14px;
        min-height: 44px;
        border-radius: var(--radius-md);
    }
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn.btn-morning { 
    background: linear-gradient(135deg, #f59e0b, #d97706); 
    color: white; 
}
.submit-btn.btn-fasting { 
    background: linear-gradient(135deg, #ef4444, #dc2626); 
    color: white; 
}
.submit-btn.btn-breakfast { 
    background: linear-gradient(135deg, #10b981, #059669); 
    color: white; 
}
.submit-btn.btn-lunch { 
    background: linear-gradient(135deg, #3b82f6, #1d4ed8); 
    color: white; 
}
.submit-btn.btn-sugar-lunch { 
    background: linear-gradient(135deg, #8b5cf6, #7c3aed); 
    color: white; 
}
.submit-btn.btn-dinner { 
    background: linear-gradient(135deg, #ec4899, #db2777); 
    color: white; 
}
.submit-btn.btn-evening { 
    background: linear-gradient(135deg, #6366f1, #4f46e5); 
    color: white; 
}

.submit-btn.btn-morning:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4); }
.submit-btn.btn-fasting:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4); }
.submit-btn.btn-breakfast:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4); }
.submit-btn.btn-lunch:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4); }
.submit-btn.btn-sugar-lunch:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4); }
.submit-btn.btn-dinner:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4); }
.submit-btn.btn-evening:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4); }

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.submit-btn .spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   FORM ELEMENTS - Premium
   ======================================== */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 480px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (min-width: 768px) {
    .form-group label {
        font-size: 14px;
        gap: 10px;
    }
}

.form-group label i {
    color: var(--primary-light);
    width: 18px;
    font-size: 15px;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: var(--transition);
    background: var(--bg-card);
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    min-height: 48px;
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .form-group input,
    .form-group select {
        padding: 14px 18px;
        font-size: 16px;
        border-radius: var(--radius-md);
        min-height: 52px;
    }
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(43, 108, 143, 0.12);
    background: var(--bg-card);
}

.form-group input::placeholder,
.form-group select::placeholder {
    color: var(--text-light);
    font-size: 14px;
}

/* Walk Input Group */
.walk-input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .walk-input-group {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.walk-input-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.walk-input-item label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.walk-input-item input {
    padding: 12px 16px !important;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px !important;
    background: var(--bg-card);
    width: 100%;
    min-height: 48px;
}

@media (min-width: 768px) {
    .walk-input-item input {
        padding: 14px 18px !important;
        font-size: 16px !important;
        min-height: 52px;
        border-radius: var(--radius-md);
    }
}

.walk-input-item input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(43, 108, 143, 0.12);
}

.help-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    padding: 6px 12px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.help-text span {
    font-weight: 700;
    color: var(--primary);
}

.custom-input {
    display: none;
    margin-top: 8px;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    background: var(--bg-card);
    width: 100%;
    min-height: 48px;
    transition: var(--transition);
}

@media (min-width: 768px) {
    .custom-input {
        padding: 14px 18px;
        font-size: 16px;
        min-height: 52px;
        border-radius: var(--radius-md);
    }
}

.custom-input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(43, 108, 143, 0.12);
}

.custom-input.active {
    display: block;
}

/* ========================================
   BUTTONS - Premium
   ======================================== */
.btn {
    padding: 10px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    width: 100%;
    min-height: 40px;
}

@media (min-width: 480px) {
    .btn {
        width: auto;
        padding: 10px 36px;
        font-size: 14px;
        border-radius: var(--radius-md);
        gap: 10px;
        min-height: 52px;
    }
}

.btn.primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 16px rgba(26, 75, 106, 0.3);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(26, 75, 106, 0.4);
}

.btn.pdf-btn {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
}

.btn.pdf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(220, 38, 38, 0.4);
}

.btn.pdf-btn i {
    font-size: 18px;
}

.full-width {
    width: 100%;
}

.btn.full-width {
    justify-content: center;
}

/* ========================================
   REPORTS HEADER
   ======================================== */
.reports-header {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
}

@media (min-width: 600px) {
    .reports-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 16px;
        margin-bottom: 26px;
    }
}

.filter-group {
    display: flex;
    gap: 6px;
    background: var(--bg-section);
    padding: 4px;
    border-radius: var(--radius-lg);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-light);
}

.filter-btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
    white-space: nowrap;
    min-height: 40px;
}

@media (min-width: 768px) {
    .filter-btn {
        padding: 12px 24px;
        font-size: 14px;
        min-height: 44px;
    }
}

.filter-btn.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 2px 12px rgba(43, 108, 143, 0.3);
}

.filter-btn:hover:not(.active) {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.report-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
    gap: 12px;
}

@media (max-width: 480px) {
    .report-actions {
        justify-content: stretch;
    }
    .report-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   AVERAGES - Premium Cards
   ======================================== */
.averages-container {
    background: var(--bg-section);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    margin-bottom: 22px;
    border: 1px solid var(--border-light);
}

@media (min-width: 768px) {
    .averages-container {
        padding: 24px 28px;
        border-radius: var(--radius-lg);
        margin-bottom: 26px;
    }
}

.averages-container h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
}

@media (min-width: 768px) {
    .averages-container h4 {
        font-size: 18px;
        margin-bottom: 20px;
        gap: 12px;
    }
}

.averages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 480px) {
    .averages-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (min-width: 768px) {
    .averages-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (min-width: 1024px) {
    .averages-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

.avg-item {
    background: var(--bg-card);
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.avg-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.avg-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.avg-value {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    word-break: break-word;
}

@media (min-width: 768px) {
    .avg-value {
        font-size: 20px;
    }
}

.avg-detail {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-light);
}

/* ========================================
   CHARTS - Premium
   ======================================== */
.charts-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 22px;
}

@media (min-width: 768px) {
    .charts-container {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-bottom: 26px;
    }
}

.chart-wrapper {
    background: var(--bg-section);
    border-radius: var(--radius-md);
    padding: 16px;
    height: 380px;
    position: relative;
    border: 1px solid var(--border-light);
}

@media (min-width: 768px) {
    .chart-wrapper {
        padding: 20px;
        height: 320px;
        border-radius: var(--radius-lg);
    }
}

.chart-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ========================================
   SUGGESTIONS - Premium
   ======================================== */
.suggestions-container {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--secondary);
}

@media (min-width: 768px) {
    .suggestions-container {
        padding: 24px 28px;
        border-radius: var(--radius-lg);
        margin-bottom: 24px;
        border-left-width: 5px;
    }
}

.suggestions-container h3 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

@media (min-width: 768px) {
    .suggestions-container h3 {
        font-size: 18px;
        margin-bottom: 16px;
        gap: 12px;
    }
}

.suggestions-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.suggestion-item {
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary-light);
    font-size: 14px;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

@media (min-width: 768px) {
    .suggestion-item {
        padding: 14px 20px;
        border-radius: var(--radius-md);
        font-size: 15px;
    }
}

.suggestion-item:hover {
    box-shadow: var(--shadow-md);
}

.suggestion-item.warning {
    border-left-color: var(--warning);
    background: #fffbeb;
}

.suggestion-item.danger {
    border-left-color: var(--danger);
    background: #fef2f2;
}

.suggestion-item.success {
    border-left-color: var(--success);
    background: #f0fdf4;
}

/* ========================================
   REPORT TABLE - Premium
   ======================================== */
.report-container {
    min-height: 150px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.report-container h4 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 14px;
    font-weight: 700;
}

@media (min-width: 768px) {
    .report-container h4 {
        font-size: 18px;
        margin-bottom: 18px;
    }
}

.report-container table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 700px;
}

@media (min-width: 768px) {
    .report-container table {
        font-size: 14px;
        min-width: 0;
    }
}

.report-container th {
    background: var(--primary-gradient);
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

@media (min-width: 768px) {
    .report-container th {
        padding: 14px 18px;
        font-size: 13px;
    }
}

.report-container td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .report-container td {
        padding: 12px 18px;
    }
}

.report-container tr:nth-child(even) td {
    background: var(--bg-section);
}

.report-container tr:hover td {
    background: var(--bg-hover);
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .empty-state {
        padding: 60px 30px;
    }
}

.empty-state i {
    font-size: 56px;
    color: var(--text-light);
    margin-bottom: 16px;
    opacity: 0.5;
}

@media (min-width: 768px) {
    .empty-state i {
        font-size: 64px;
        margin-bottom: 20px;
    }
}

.empty-state p {
    font-size: 15px;
}

/* ========================================
   AUTH - Premium
   ======================================== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--primary-gradient);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-container::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(43, 108, 143, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    padding: 44px;
    max-width: 520px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(20px);
}

@media (max-width: 480px) {
    .auth-card {
        padding: 32px 24px;
        border-radius: var(--radius-xl);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header i {
    font-size: 48px;
    color: var(--secondary-light);
    background: var(--primary-gradient);
    padding: 20px;
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(15, 43, 74, 0.3);
}

.auth-header h1 {
    font-size: 28px;
    color: var(--text-primary);
    margin: 18px 0 6px;
    font-weight: 800;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 15px;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    background: var(--bg-section);
    padding: 4px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.auth-tab {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
}

.auth-tab.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 2px 12px rgba(43, 108, 143, 0.3);
}

.auth-tab:hover:not(.active) {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form .form-group label {
    font-size: 14px;
    font-weight: 600;
}

.auth-form .form-group input,
.auth-form .form-group select {
    padding: 14px 18px;
    font-size: 15px;
    min-height: 50px;
}

@media (min-width: 768px) {
    .auth-form .form-group input,
    .auth-form .form-group select {
        padding: 16px 22px;
        font-size: 16px;
        min-height: 54px;
    }
}

.auth-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 480px) {
    .auth-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ========================================
   PDF STYLES
   ======================================== */
.pdf-averages {
    margin: 20px 0;
}

.pdf-averages h3 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.pdf-averages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.pdf-avg-item {
    background: var(--bg-section);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary-light);
}

.pdf-avg-item .label {
    font-size: 10px;
    color: var(--text-muted);
}

.pdf-avg-item .value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    body * {
        visibility: hidden;
    }
    #pdfContent, #pdfContent * {
        visibility: visible;
    }
    #pdfContent {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 20px;
    }
    
    .app-header, .quick-stats, .quick-add, .filter-group, .report-actions {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid var(--border-color) !important;
    }
}

/* ========================================
   MOBILE TOUCH OPTIMIZATIONS
   ======================================== */
@media (max-width: 480px) {
    input, select, button, .btn {
        font-size: 16px !important;
    }
    
    .btn {
        min-height: 50px;
    }
    
    .stat-card {
        min-height: 76px;
    }
    
    .filter-btn {
        min-height: 40px;
        padding: 8px 16px;
    }
    
    .form-group input,
    .form-group select {
        min-height: 48px;
        font-size: 16px !important;
    }
    
    .walk-input-item input {
        min-height: 48px;
        font-size: 16px !important;
    }
    
    .auth-card {
        padding: 24px 20px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .submit-btn {
        justify-content: center;
        width: 100%;
    }
    
    .form-section {
        padding: 14px;
    }
}

/* ========================================
   RESPONSIVE TABLET
   ======================================== */
@media (min-width: 481px) and (max-width: 768px) {
    .form-group input,
    .form-group select {
        min-height: 52px;
        font-size: 16px;
    }
    
    .walk-input-item input {
        min-height: 52px;
        font-size: 16px;
    }
    
    .btn {
        min-height: 52px;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.custom-notification {
    animation: slideIn 0.3s ease;
}

.stat-card, .avg-item, .suggestion-item {
    animation: fadeInUp 0.5s ease forwards;
}

.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.2s; }
.stat-card:nth-child(4) { animation-delay: 0.3s; }

/* ========================================
   SCROLLBAR STYLING
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-section);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}