/* ============================================
   CSS Variables & Reset
   ============================================ */
:root {
    --primary: #e74c3c;
    --primary-dark: #c0392b;
    --primary-light: #fde8e5;
    --secondary: #2c3e50;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #3498db;
    --gray: #95a5a6;
    --light-gray: #ecf0f1;
    --dark: #2c3e50;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.15);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.3);
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --sidebar-width: 280px;
    --header-height: 64px;
}

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

body {
    font-family: var(--font);
    background: #f0f2f5;
    color: var(--dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   Loading Screen
   ============================================ */
#loadingScreen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    flex-direction: column;
    gap: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #ecf0f1;
    border-top-color: #e74c3c;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-text {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 500;
}

.loading-text i {
    color: #e74c3c;
    margin-right: 8px;
}

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

/* ============================================
   TOP BAR - Fixed Header
   ============================================ */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    z-index: 1200;
    display: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 16px;
    max-width: 100%;
}

.top-bar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    flex: 1;
}

.top-bar-brand i {
    font-size: 24px;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    cursor: pointer;
    padding: 4px 12px 4px 4px;
    border-radius: 20px;
    transition: var(--transition);
}

.top-bar-user:hover {
    background: rgba(255,255,255,0.15);
}

.top-bar-username {
    font-size: 14px;
    font-weight: 500;
}

.top-bar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    overflow: hidden;
    flex-shrink: 0;
}

.top-bar-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.top-bar.active {
    display: block !important;
}

/* ============================================
   HAMBURGER MENU BUTTON
   ============================================ */
#hamburgerBtn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 8px 12px;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    min-width: 40px;
    min-height: 40px;
    flex-shrink: 0;
    z-index: 1300;
}

#hamburgerBtn:hover {
    background: rgba(255,255,255,0.25);
}

#hamburgerBtn:active {
    transform: scale(0.95);
}

/* ============================================
   SIDEBAR OVERLAY
   ============================================ */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1099;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* ============================================
   SIDEBAR - Proper Fixed Positioning
   ============================================ */
.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: var(--white);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 20px rgba(0,0,0,0.15);
    overflow-y: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-100%);
}

/* ============================================
   DESKTOP: Sidebar Always Visible
   ============================================ */
@media (min-width: 769px) {
    .sidebar {
        transform: translateX(0) !important;
        display: flex !important;
        visibility: visible !important;
    }
    
    .sidebar-overlay {
        display: none !important;
    }
    
    .sidebar-close {
        display: none !important;
    }
    
    .main-content {
        margin-left: var(--sidebar-width) !important;
        max-width: calc(100% - var(--sidebar-width)) !important;
        padding: calc(var(--header-height) + 16px) 32px 40px;
        width: auto;
    }
}

/* ============================================
   MOBILE: Sidebar Hidden by Default
   ============================================ */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        border-radius: 0 16px 16px 0;
    }
    
    .sidebar.open {
        transform: translateX(0) !important;
    }
    
    .sidebar-close {
        display: block !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        max-width: 100% !important;
        padding: calc(var(--header-height) + 12px) 12px 32px;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 50px;
        --sidebar-width: 260px;
    }
    
    .main-content {
        padding: calc(var(--header-height) + 10px) 8px 24px;
    }
}

/* ============================================
   SIDEBAR - HIDE COMPLETELY ON LANDING PAGE
   ============================================ */
body.landing-active .sidebar {
    display: none !important;
    visibility: hidden !important;
    transform: translateX(-100%) !important;
    pointer-events: none !important;
}

body.landing-active .sidebar-overlay {
    display: none !important;
}

body.landing-active .main-content {
    margin-left: 0 !important;
    max-width: 100% !important;
}

/* Also hide sidebar when landing page is visible */
.landing-page .sidebar,
.landing-page .sidebar-overlay {
    display: none !important;
    visibility: hidden !important;
}

.landing-page .main-content {
    margin-left: 0 !important;
    max-width: 100% !important;
}

/* ============================================
   MAIN CONTENT - Base Styles
   ============================================ */
.main-content {
    min-height: 100vh;
    width: 100%;
    transition: margin-left 0.3s ease, padding 0.3s ease;
    display: block;
    padding: calc(var(--header-height) + 16px) 24px 40px;
    margin-left: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* ============================================
   SIDEBAR COMPONENTS
   ============================================ */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid var(--light-gray);
    background: var(--white);
    flex-shrink: 0;
    min-height: 56px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
}

.sidebar-brand i {
    font-size: 20px;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.sidebar-close:hover {
    background: var(--light-gray);
}

.sidebar-user {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--light-gray);
    background: #fafafa;
    flex-shrink: 0;
}

.sidebar-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-info #sidebarUserName {
    font-weight: 600;
    color: var(--dark);
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-info #sidebarUserEmail {
    font-size: 12px;
    color: var(--gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 8px;
    overflow-y: auto;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--secondary);
    transition: var(--transition);
    margin-bottom: 2px;
    font-weight: 500;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.sidebar-nav a i {
    width: 20px;
    text-align: center;
    font-size: 18px;
    flex-shrink: 0;
}

.sidebar-nav a:hover {
    background: var(--light-gray);
}

.sidebar-nav a.active {
    background: var(--primary-light);
    color: var(--primary);
}

.sidebar-nav a span {
    white-space: nowrap;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--light-gray);
    flex-shrink: 0;
}

.sidebar-footer .user-role {
    font-size: 12px;
    color: var(--gray);
    text-align: center;
    padding-bottom: 8px;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--danger);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
}

.btn-logout:hover {
    background: #fde8e5;
}

.btn-logout i {
    width: 20px;
    text-align: center;
}

.sidebar-version {
    text-align: center;
    font-size: 12px;
    color: var(--gray);
    padding-top: 8px;
}

/* ============================================
   PAGE CONTENT
   ============================================ */
.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 16px;
}

.card-title i {
    color: var(--primary);
    margin-right: 8px;
}

/* ============================================
   STATS GRID
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.stat-card .stat-icon {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 700;
}

.stat-card .stat-value.low { color: var(--success); }
.stat-card .stat-value.moderate { color: var(--warning); }
.stat-card .stat-value.high { color: var(--danger); }

.stat-card .stat-label {
    font-size: 14px;
    color: var(--gray);
    margin-top: 4px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: var(--font);
    min-height: 48px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--light-gray);
    color: var(--secondary);
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    min-height: 48px;
}

.btn-secondary:hover {
    background: #d5dbdb;
    transform: translateY(-2px);
}

.btn-success {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--success);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    min-height: 48px;
}

.btn-success:hover {
    background: #219a52;
    transform: translateY(-2px);
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--danger);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    min-height: 48px;
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-white {
    background: var(--white) !important;
    color: var(--primary) !important;
}

.btn-white:hover {
    background: var(--light-gray) !important;
    transform: translateY(-2px);
}

.btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: none;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    min-height: 36px;
}

.btn-sm.btn-secondary {
    background: var(--light-gray);
    color: var(--secondary);
}

.btn-sm.btn-secondary:hover {
    background: #d5dbdb;
}

.btn-sm.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-sm.btn-success:hover {
    background: #219a52;
}

.btn-sm.btn-danger {
    background: #fde8e5;
    color: var(--danger);
}

.btn-sm.btn-danger:hover {
    background: #f5c6c6;
}

.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: #fff;
    color: #333;
    border: 2px solid #ddd;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    font-family: var(--font);
    min-height: 48px;
}

.btn-google:hover {
    border-color: var(--primary);
    background: #f8f9fa;
    transform: translateY(-2px);
}

.btn-google i {
    color: #ea4335;
    font-size: 18px;
}

/* ============================================
   AUTH MODALS
   ============================================ */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.auth-modal.active {
    display: flex;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.auth-logo {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo .logo-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.auth-logo .logo-icon i {
    font-size: 32px;
    color: var(--primary);
}

.auth-logo h2 {
    font-size: 24px;
    color: var(--secondary);
    margin-top: 4px;
}

.auth-logo p {
    color: var(--gray);
    font-size: 14px;
}

.auth-form h3 {
    font-size: 20px;
    color: var(--secondary);
    margin-bottom: 4px;
}

.auth-subtitle {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 6px;
}

.input-group {
    display: flex;
    align-items: center;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    padding: 0 14px;
    transition: var(--transition);
    background: var(--white);
}

.input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(231,76,60,0.1);
}

.input-group i {
    color: var(--gray);
    font-size: 16px;
    flex-shrink: 0;
}

.input-group input {
    flex: 1;
    padding: 12px 10px;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
    min-width: 0;
    font-family: var(--font);
}

.input-group .toggle-password {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 8px;
    font-size: 16px;
    transition: var(--transition);
}

.input-group .toggle-password:hover {
    color: var(--secondary);
}

.auth-switch {
    text-align: center;
    font-size: 14px;
    color: var(--gray);
    margin-top: 16px;
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-error {
    background: #fde8e5;
    border: 1px solid var(--danger);
    border-radius: var(--radius);
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--danger);
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-error i {
    font-size: 16px;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    gap: 16px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--light-gray);
}

.auth-divider span {
    color: var(--gray);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   ADMIN AUTH MODAL
   ============================================ */
.admin-auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2100;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.admin-auth-modal.active {
    display: flex;
}

.admin-auth-container {
    width: 100%;
    max-width: 420px;
    animation: modalSlideIn 0.3s ease;
}

.admin-auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--primary);
}

.admin-auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.admin-auth-header .fa-user-shield {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary);
    margin: 0 auto 12px;
}

.admin-auth-header h2 {
    font-size: 24px;
    color: var(--secondary);
    margin-bottom: 4px;
}

.admin-auth-header p {
    color: var(--gray);
    font-size: 14px;
}

.admin-auth-form h3 {
    font-size: 20px;
    color: var(--secondary);
    margin-bottom: 4px;
}

.admin-auth-subtitle {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 20px;
}

.admin-auth-footer {
    text-align: center;
    margin-top: 16px;
}

.admin-auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

.admin-auth-footer a:hover {
    text-decoration: underline;
}

.admin-auth-card .auth-error {
    background: #fde8e5;
    border: 1px solid var(--danger);
    border-radius: var(--radius);
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--danger);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================
   CONTACT MODAL
   ============================================ */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.contact-modal.active {
    display: flex;
}

.contact-container {
    width: 100%;
    max-width: 520px;
    animation: modalSlideIn 0.3s ease;
}

.contact-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.contact-header h3 {
    font-size: 20px;
    color: var(--secondary);
}

.contact-header h3 i {
    color: var(--primary);
    margin-right: 8px;
}

.contact-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
    border-radius: 8px;
}

.contact-close:hover {
    color: var(--dark);
    background: var(--light-gray);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--font);
    transition: var(--transition);
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(231,76,60,0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

/* ============================================
   TOAST
   ============================================ */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 14px 28px;
    border-radius: var(--radius);
    color: var(--white);
    font-weight: 500;
    font-size: 14px;
    z-index: 3000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    max-width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--info); }
.toast.warning { background: var(--warning); }

.toast i {
    font-size: 18px;
}

/* ============================================
   TABLE
   ============================================ */
.table-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    overflow-x: auto;
    margin-bottom: 24px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

table thead th {
    background: var(--light-gray);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--secondary);
}

table tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--light-gray);
}

table tbody tr:hover {
    background: #fafafa;
}

.risk-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.risk-badge.low { background: #e8f5e9; color: var(--success); }
.risk-badge.moderate { background: #fff3e0; color: var(--warning); }
.risk-badge.high { background: #fde8e5; color: var(--danger); }

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge.pending { background: #fff3e0; color: #f39c12; }
.badge.resolved { background: #e8f5e9; color: #27ae60; }

/* ============================================
   SYMPTOM ITEMS
   ============================================ */
.symptom-item {
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.symptom-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.symptom-item.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.symptom-item i {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
}

.symptom-item .symptom-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--secondary);
    cursor: pointer;
}

.symptom-item.selected .symptom-label {
    color: var(--primary);
}

/* ============================================
   RISK QUESTIONS
   ============================================ */
.risk-question {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.question-header {
    margin-bottom: 16px;
}

.question-number {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
}

.question-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary);
    margin-top: 4px;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    font-size: 14px;
    color: var(--secondary);
    font-family: var(--font);
}

.option-btn:hover {
    border-color: var(--primary);
}

.option-btn.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.option-btn .radio-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.option-btn.selected .radio-circle {
    border-color: var(--primary);
}

.option-btn.selected .radio-circle::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
}

.number-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    font-size: 16px;
    transition: var(--transition);
    font-family: var(--font);
}

.number-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(231,76,60,0.1);
}

.progress-bar {
    height: 6px;
    background: var(--light-gray);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.progress-text {
    font-size: 14px;
    color: var(--gray);
    text-align: right;
    margin-bottom: 16px;
}

/* ============================================
   RESULTS
   ============================================ */
.result-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.result-score {
    font-size: 56px;
    font-weight: 800;
    margin: 16px 0;
}

.result-score.low { color: var(--success); }
.result-score.moderate { color: var(--warning); }
.result-score.high { color: var(--danger); }

.result-level {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.result-level.low { color: var(--success); }
.result-level.moderate { color: var(--warning); }
.result-level.high { color: var(--danger); }

.factors-list {
    list-style: none;
    text-align: left;
}

.factors-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    gap: 12px;
}

.factors-list li:last-child {
    border-bottom: none;
}

.factor-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.factor-icon.high { background: #fde8e5; color: var(--danger); }
.factor-icon.moderate { background: #fff3e0; color: var(--warning); }
.factor-icon.low { background: #e8f5e9; color: var(--success); }

/* ============================================
   ADMIN DASHBOARD
   ============================================ */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 4px;
}

.admin-title i {
    margin-right: 8px;
}

.admin-subtitle {
    color: var(--gray);
    font-size: 15px;
}

.admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.admin-stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.admin-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.admin-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.admin-stat-content {
    flex: 1;
}

.admin-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.2;
}

.admin-stat-value.low { color: var(--success); }
.admin-stat-value.moderate { color: var(--warning); }
.admin-stat-value.high { color: var(--danger); }

.admin-stat-label {
    font-size: 13px;
    color: var(--gray);
}

.admin-charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-chart-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
}

.admin-chart-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 16px;
}

.admin-chart-card h3 i {
    color: var(--primary);
    margin-right: 8px;
}

.admin-chart-card .chart-container {
    height: 200px;
}

.admin-tables-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-table-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
}

.admin-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.admin-table-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary);
}

.admin-table-header h3 i {
    color: var(--primary);
    margin-right: 8px;
}

.admin-table-card .table-container {
    padding: 0;
    box-shadow: none;
    margin-bottom: 0;
}

.admin-table-card .table-container table {
    font-size: 13px;
}

.admin-table-card .table-container table thead th {
    background: #f8f9fa;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 12px;
}

.admin-table-card .table-container table tbody td {
    padding: 8px 12px;
}

.admin-system-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-system-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
}

.admin-system-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 16px;
}

.admin-system-card h3 i {
    color: var(--primary);
    margin-right: 8px;
}

.system-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.system-info-item {
    display: flex;
    flex-direction: column;
}

.system-info-item .info-label {
    font-size: 12px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.system-info-item .info-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary);
}

.system-info-item .info-value.success { color: var(--success); }
.system-info-item .info-value.warning { color: var(--warning); }

.admin-footer {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 1px solid var(--light-gray);
    font-size: 13px;
    color: var(--gray);
}

.admin-footer i {
    margin-right: 4px;
}

/* ============================================
   LANDING PAGE
   ============================================ */
.landing-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: block;
    padding-top: 0;
}

.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 0 40px;
    gap: 40px;
    min-height: 80vh;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.1;
    color: var(--secondary);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.hero-stat {
    text-align: left;
}

.hero-stat .stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.hero-stat .stat-label {
    font-size: 13px;
    color: var(--gray);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), #fff);
    border-radius: 50%;
}

.hero-illustration i {
    font-size: 100px;
    color: var(--primary);
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    border-radius: 50%;
    border: 3px solid var(--primary);
    animation: pulse 2s ease-out infinite;
    opacity: 0;
}

.pulse-ring.delay-1 { animation-delay: 0.5s; }
.pulse-ring.delay-2 { animation-delay: 1s; }

@keyframes pulse {
    0% { width: 100%; height: 100%; opacity: 0.8; }
    100% { width: 180%; height: 180%; opacity: 0; }
}

.features-section {
    padding: 60px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    color: var(--secondary);
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 18px;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.feature-icon i {
    font-size: 28px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 18px;
    color: var(--secondary);
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.5;
}

.fast-section {
    padding: 60px 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    margin: 20px 0;
}

.fast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.fast-card {
    padding: 24px;
    text-align: center;
    border-radius: var(--radius);
    border-left: 4px solid;
    background: #fafafa;
}

.fast-card.face { border-color: #e74c3c; }
.fast-card.arm { border-color: #f39c12; }
.fast-card.speech { border-color: #2ecc71; }
.fast-card.time { border-color: #3498db; }

.fast-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.fast-card.face .fast-icon { color: #e74c3c; }
.fast-card.arm .fast-icon { color: #f39c12; }
.fast-card.speech .fast-icon { color: #2ecc71; }
.fast-card.time .fast-icon { color: #3498db; }

.fast-card h3 {
    font-size: 18px;
    color: var(--secondary);
    margin-bottom: 4px;
}

.fast-card p {
    font-size: 13px;
    color: var(--gray);
}

.cta-section {
    padding: 60px 0;
    text-align: center;
}

.cta-content {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 60px;
    border-radius: var(--radius-lg);
    color: var(--white);
}

.cta-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.landing-footer {
    padding: 40px 0 20px;
    border-top: 1px solid var(--light-gray);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.footer-disclaimer {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 14px;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-links span {
    color: var(--gray);
}

/* ============================================
   LANDING PAGE RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 0;
        min-height: auto;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-subtitle {
        max-width: 100%;
        margin: 0 auto 30px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-stat {
        text-align: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-illustration {
        width: 200px;
        height: 200px;
    }
    
    .hero-illustration i {
        font-size: 60px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .hero-stat .stat-number {
        font-size: 22px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .fast-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .cta-content {
        padding: 30px 20px;
    }
    
    .cta-content h2 {
        font-size: 24px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn-large {
        width: 100%;
        justify-content: center;
    }
    
    .fast-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-illustration {
        width: 150px;
        height: 150px;
    }
    
    .hero-illustration i {
        font-size: 40px;
    }
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 1024px) {
    .admin-charts-row,
    .admin-tables-row,
    .admin-system-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-actions {
        justify-content: stretch;
    }
    
    .admin-actions .btn-primary,
    .admin-actions .btn-secondary {
        flex: 1;
        justify-content: center;
    }
    
    .system-info-grid {
        grid-template-columns: 1fr;
    }
    
    .dash-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dash-header-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .dash-header-actions .btn-primary,
    .dash-header-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .dash-two-col {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .tips-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    /* Mobile Table */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table-responsive table,
    .table-responsive thead,
    .table-responsive tbody,
    .table-responsive th,
    .table-responsive td,
    .table-responsive tr {
        display: block;
    }
    
    .table-responsive thead tr {
        display: none;
    }
    
    .table-responsive tr {
        margin-bottom: 12px;
        border: 1px solid var(--light-gray);
        border-radius: 8px;
        padding: 12px;
        background: white;
    }
    
    .table-responsive td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        border-bottom: 1px solid #f5f5f5;
    }
    
    .table-responsive td:last-child {
        border-bottom: none;
    }
    
    .table-responsive td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--secondary);
        font-size: 12px;
        margin-right: 12px;
        flex-shrink: 0;
    }
    
    .table-responsive td .risk-badge {
        font-size: 11px;
        padding: 2px 10px;
    }
    
    .card {
        padding: 16px;
        margin-bottom: 14px;
    }
    
    .card-title {
        font-size: 16px;
    }
    
    .auth-card,
    .admin-auth-card,
    .contact-card {
        padding: 28px 20px;
    }
    
    .auth-container,
    .admin-auth-container,
    .contact-container {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .stat-card {
        padding: 10px;
    }
    
    .stat-card .stat-icon {
        font-size: 20px;
    }
    
    .stat-card .stat-value {
        font-size: 18px;
    }
    
    .stat-card .stat-label {
        font-size: 11px;
    }
    
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-stat-card {
        padding: 14px;
    }
    
    .admin-stat-value {
        font-size: 22px;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .tips-grid > div {
        padding: 12px;
    }
    
    .tips-grid > div > div:first-child {
        font-size: 13px;
    }
    
    .tips-grid > div > div:last-child {
        font-size: 12px;
    }
    
    .auth-card,
    .admin-auth-card,
    .contact-card {
        padding: 24px 16px;
    }
    
    .result-score {
        font-size: 40px;
    }
    
    .result-level {
        font-size: 17px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .dash-header-left h1 {
        font-size: 20px;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-muted {
    color: var(--gray);
}

.mt-16 {
    margin-top: 16px;
}

.mb-16 {
    margin-bottom: 16px;
}

.flex {
    display: flex;
}

.gap-12 {
    gap: 12px;
}

.flex-wrap {
    flex-wrap: wrap;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

/* ============================================
   ENSURE HAMBURGER VISIBLE
   ============================================ */
#hamburgerBtn {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* ============================================
   MAIN CONTENT - Ensure proper display
   ============================================ */
#mainContent {
    display: block;
    min-height: 100vh;
}

/* ============================================
   LANDING PAGE - No top bar interference
   ============================================ */
.landing-page {
    padding-top: 0;
}

/* ============================================
   DASHBOARD TWO COLUMN
   ============================================ */
.dash-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

/* ============================================
   TIPS GRID
   ============================================ */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* ============================================
   RESPONSIVE TABLE DATA LABELS
   ============================================ */
@media (max-width: 768px) {
    .table-responsive td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--secondary);
        font-size: 12px;
        margin-right: 12px;
    }
}

/* ============================================
   PREVENT ZOOM ON INPUT FOCUS (Mobile)
   ============================================ */
@media (max-width: 480px) {
    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* ============================================
   BETTER SCROLL BEHAVIOR
   ============================================ */
.main-content {
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
}

/* ============================================
   SMOOTH CARD TRANSITIONS
   ============================================ */
.card {
    transition: all 0.3s ease;
}

/* ============================================
   MOBILE CARD ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .card {
        padding: 14px;
        border-radius: 10px;
    }
}

/* ============================================
   DASHBOARD HEADER RESPONSIVE
   ============================================ */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.dash-header-left h1 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 4px;
}

.dash-header-left p {
    color: #95a5a6;
    margin: 0;
    font-size: 14px;
}

.dash-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .dash-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dash-header-left h1 {
        font-size: 20px;
    }
    
    .dash-header-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .dash-header-actions .btn-primary,
    .dash-header-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .dash-header-left h1 {
        font-size: 18px;
    }
}