/**
 * MudhaPlum - Main Stylesheet
 * Zimbabwe Food Ordering Platform
 */

/* ===== ROOT VARIABLES ===== */
:root {
    --primary-color: #FF6B35;
    --primary-dark: #E85A2A;
    --primary-light: #FF8C5F;
    --secondary-color: #F7B731;
    --accent-color: #E74C3C;
    --fresh-green: #27AE60;
    --success-color: #27AE60;
    --danger-color: #E74C3C;
    --warning-color: #F39C12;
    --info-color: #3498DB;
    --dark-color: #2C3E50;
    --light-color: #FFF8F0;
    --cream-bg: #FFF5E6;
    --white: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --border-color: #FFDAB9;
    --shadow: 0 2px 15px rgba(255, 107, 53, 0.1);
    --shadow-lg: 0 10px 40px rgba(255, 107, 53, 0.2);
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    --animation-speed: 0.6s;
}
/* ===== MOBILE RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        padding: 0;
        margin: 0;
    }
    .container {
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
    .navbar-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100vw;
        position: absolute;
        top: 80px;
        left: 0;
        background: #fff;
        z-index: 1001;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        padding: 20px 0;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }
    .nav-links.mobile-active {
        display: flex;
        opacity: 1;
        pointer-events: auto;
    }
    .nav-links a {
        padding: 16px 24px;
        width: 100%;
        display: block;
        color: var(--primary-color) !important;
        background: #fff;
        text-align: left;
        font-size: 1.2rem;
        border-radius: 8px;
        margin: 4px 0;
        font-weight: 600;
        border: none;
        box-shadow: none;
    }
    .nav-links a.btn,
    .nav-links .btn {
        color: var(--primary-color) !important;
        background: #fff !important;
        border: 2px solid var(--primary-color) !important;
        text-align: center;
        font-weight: 700;
        margin: 8px 0;
        border-radius: 8px;
        box-shadow: none;
    }
    .nav-links a.btn-primary,
    .nav-links .btn-primary {
        background: var(--primary-color) !important;
        color: #fff !important;
        border: 2px solid var(--primary-color) !important;
    }
    .nav-links a.btn-outline,
    .nav-links .btn-outline {
        background: #fff !important;
        color: var(--primary-color) !important;
        border: 2px solid var(--primary-color) !important;
    }
    .nav-links a:hover,
    .nav-links .btn:hover {
        background: var(--primary-light) !important;
        color: #fff !important;
    }
    .main-header {
        padding: 10px 0;
    }
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 2rem;
        color: var(--primary-color);
        margin-left: auto;
        z-index: 1002;
        cursor: pointer;
    }
    img, .hero-image {
        max-width: 100%;
        height: auto;
    }
    .hero-section {
        flex-direction: column;
        padding: 10px;
    }
    .footer {
        flex-direction: column;
        text-align: center;
    }
        .mobile-menu-btn {
            display: flex !important;
            align-items: center;
            justify-content: center;
            background: #fff;
            border: 2px solid #FF6B35;
            border-radius: 8px;
            font-size: 2.2rem;
            color: #FF6B35 !important;
            margin-left: auto;
            z-index: 3000;
            cursor: pointer;
            position: relative;
            width: 48px;
            height: 48px;
            padding: 0;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        .mobile-menu-btn i {
            color: #FF6B35 !important;
            pointer-events: none;
        }
        .mobile-menu-btn {
            display: flex !important;
            background: #fff;
            border: 2px solid #FF6B35;
            border-radius: 8px;
            font-size: 2.2rem;
            color: #FF6B35 !important;
            margin-left: auto;
            z-index: 2000;
            cursor: pointer;
            position: relative;
            width: 48px;
            height: 48px;
            align-items: center;
            justify-content: center;
            padding: 0;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        .mobile-menu-btn i {
            color: #FF6B35 !important;
            pointer-events: none;
        }
}

/* Dark theme overrides */
:root[data-theme="dark"] {
    --primary-color: #FF6B35;
    --primary-dark: #FF8C5F;
    --primary-light: #FDBA74;
    --secondary-color: #FBBF24;
    --accent-color: #F97316;
    --fresh-green: #22C55E;
    --success-color: #22C55E;
    --danger-color: #F87171;
    --warning-color: #FBBF24;
    --info-color: #38BDF8;
    --dark-color: #020617;
    --light-color: #0B1120;
    --cream-bg: #020617;
    --white: #020617;
    --text-primary: #E5E7EB;
    --text-secondary: #9CA3AF;
    --border-color: rgba(148, 163, 184, 0.4);
    --shadow: 0 2px 20px rgba(15, 23, 42, 0.9);
    --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.95);
}

/* ===== SMOOTH SCROLL ===== */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 6px;
    border: 2px solid var(--light-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--light-color);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--cream-bg);
    overflow-x: hidden;
}

body.page-loaded {
    animation: pageEnter 0.5s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    min-height: calc(100vh - 80px - 200px);
    padding-top: 80px;
}

/* ===== HEADER & NAVIGATION ===== */
.main-header {
    background: linear-gradient(135deg, var(--dark-color) 0%, #020617 60%, #000000 100%);
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

body[data-theme="light"] .main-header {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.navbar {
    height: 80px;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
}

.logo i {
    font-size: 32px;
}

.logo-accent {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: #f9fafb;
    transition: var(--transition);
}

body[data-theme="light"] .nav-links a {
    color: var(--text-primary);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.user-menu-btn:hover {
    background: var(--light-color);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    display: none;
    z-index: 1000;
    pointer-events: auto;
}

.user-menu:hover .user-dropdown,
.user-dropdown.active {
    display: block;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.user-dropdown a:hover {
    background: var(--light-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color:orange;
}

/* Theme toggle */
.theme-toggle-btn {
    margin-left: 10px;
    min-width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    position: relative;
    z-index: 1100;
}

body.dark-theme .theme-toggle-btn {
    background: #020617;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.theme-toggle-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    transition: var(--transition);
    font-size: 16px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--fresh-green);
    color: var(--white);
}

.btn-secondary:hover {
    background: #229954;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    overflow: hidden;
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 15;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.hero-dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    animation: sparkle 20s linear infinite;
    z-index: 5;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.search-box {
    max-width: 800px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    gap: 10px;
    background: var(--white);
    padding: 10px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.search-input-group,
.location-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
    position: relative;
}

.search-input-group i,
.location-input-group i {
    color: var(--text-secondary);
}

.search-input,
.location-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--text-primary);
}

.btn-location {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-location:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.btn-location:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-location i {
    font-size: 16px;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 32px;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

/* ===== RESTAURANTS SECTION ===== */
.restaurants-section {
    padding: 80px 0;
    background: var(--light-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.view-all-link {
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.restaurants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.restaurant-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.restaurant-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.restaurant-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.restaurant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Restaurant Slideshow Styles */
.restaurant-slideshow {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.restaurant-slideshow .slideshow-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.restaurant-slideshow .slideshow-img.active {
    opacity: 1;
    z-index: 1;
}

.slideshow-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.slideshow-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slideshow-dots .dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slideshow-dots .dot.active {
    background: white;
    width: 20px;
    border-radius: 10px;
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: var(--success-color);
    color: var(--white);
}

.badge-danger {
    background: var(--danger-color);
    color: var(--white);
}

.badge-warning {
    background: var(--warning-color);
    color: var(--dark-color);
}

.distance-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    gap: 5px;
}

.distance-badge i {
    font-size: 10px;
}

.restaurant-info {
    padding: 20px;
}

.restaurant-info h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.cuisine {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 10px;
}

.restaurant-meta {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.restaurant-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating i {
    color: var(--secondary-color);
}

/* ===== FEATURED MENU SECTION ===== */
.featured-menu-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--white), var(--cream-bg));
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin: -30px 0 40px;
}

.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.menu-item-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.menu-item-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.menu-item-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cream-bg), var(--light-color));
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.menu-item-card:hover .menu-item-image img {
    transform: scale(1.1);
}

.badge-veg {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: var(--fresh-green);
    color: var(--white);
}

.badge-popular {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: linear-gradient(135deg, #FF6B35 0%, #F7B731 100%);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    animation: pulse-popular 2s infinite;
}

@keyframes pulse-popular {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
    }
}

.badge-unavailable {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: var(--danger-color);
    color: var(--white);
}

.menu-item-info {
    padding: 20px;
}

.menu-item-info h4 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
}

.menu-item-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    box-orient: vertical;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.menu-item-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.menu-item-restaurant {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.menu-item-restaurant i {
    color: var(--secondary-color);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #27AE60, #2ECC71);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* ===== FOOTER ===== */
.main-footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
}

.footer-section p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

.footer-bottom i {
    color: var(--danger-color);
}

/* ===== AUTH PAGES ===== */
.auth-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 40px 0;
}

.auth-container {
    width: 100%;
}

.auth-box {
    max-width: 500px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
}

.auth-box.large {
    max-width: 800px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1,
.auth-header h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-secondary);
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
}

.input-group:focus-within {
    border-color: var(--primary-color);
}

.input-group i {
    color: var(--text-secondary);
}

.input-group input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group input[type="time"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 16px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.toggle-password {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.link {
    color: var(--primary-color);
    font-weight: 500;
}

.link:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-secondary);
}

.mt-2 {
    margin-top: 10px;
}

/* ===== ALERTS ===== */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ===== RESTAURANT REGISTRATION ===== */
.registration-header {
    text-align: center;
    margin-bottom: 40px;
}

.registration-header h1 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 400px;
    margin: 30px auto 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}

.step.active .step-number {
    background: var(--primary-color);
    color: var(--white);
}

.step.completed .step-number {
    background: var(--success-color);
    color: var(--white);
}

.step-label {
    font-size: 14px;
    font-weight: 500;
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border-color);
    margin: 0 10px;
}

.step-line.completed {
    background: var(--success-color);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-label {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.radio-label:hover {
    border-color: var(--primary-color);
    background: rgba(139, 58, 98, 0.05);
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.radio-label input[type="radio"]:checked ~ .radio-custom {
    border-color: var(--primary-color);
}

.radio-label input[type="radio"]:checked ~ .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
}

.radio-label strong {
    display: block;
    margin-bottom: 5px;
}

.radio-label small {
    color: var(--text-secondary);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 30px;
}

/* ===== DASHBOARD ===== */
.dashboard-page {
    padding: 40px 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.dashboard-header h1 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.dashboard-subtitle {
    display: flex;
    gap: 10px;
}

.dashboard-actions {
    display: flex;
    gap: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--cream-bg);
    color: var(--text-primary);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
}

.stat-icon.pending {
    background: var(--warning-color);
}

.stat-icon.preparing {
    background: var(--danger-color);
}

.stat-icon.success {
    background: var(--success-color);
}

.stat-icon.revenue {
    background: var(--primary-color);
}

.stat-icon.info {
    background: var(--info-color);
}

.stat-icon.primary {
    background: var(--secondary-color);
}

.stat-content h3 {
    font-size: 28px;
    margin-bottom: 5px;
}

.stat-content p {
    color: var(--text-secondary);
    font-size: 14px;
}

.dashboard-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.dashboard-section .section-header {
    margin-bottom: 20px;
}

.dashboard-section h2 {
    font-size: 24px;
    color: var(--primary-color);
}

/* ===== TABLES ===== */
.orders-table-container {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table thead {
    background: var(--light-color);
}

.orders-table th,
.orders-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.orders-table th {
    font-weight: 600;
    color: var(--text-primary);
}

.orders-table tbody tr:hover {
    background: var(--light-color);
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-accepted {
    background: #d1ecf1;
    color: #0c5460;
}

.status-preparing {
    background: #f8d7da;
    color: #721c24;
}

.status-out_for_delivery {
    background: #d4edda;
    color: #155724;
}

.status-delivered {
    background: var(--success-color);
    color: var(--white);
}

.status-cancelled,
.status-rejected {
    background: var(--danger-color);
    color: var(--white);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-secondary);
}

/* ===== QUICK ACTIONS ===== */
.quick-actions {
    background: rgba(15, 23, 42, 0.9);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.quick-actions h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.action-card {
    background: #020617;
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.action-card:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.action-card i {
    font-size: 32px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Fix for sidebar overlap on dashboard --- */
.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 220px;
    z-index: 1001;
    background: var(--dark-color);
    color: var(--white);
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.analytics-main-content {
    margin-left: 220px !important;
    width: calc(100% - 220px);
    padding-left: 2rem;
    padding-right: 2rem;
}
@media (max-width: 1100px) {
    .admin-sidebar {
        position: static;
        width: 100%;
        height: auto;
        border-radius: 0;
    }
    .analytics-main-content {
        margin-left: 0 !important;
        width: 100%;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* ===== UTILITIES ===== */
.loading-text {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.error-text {
    text-align: center;
    padding: 40px;
    color: var(--danger-color);
}

.no-results {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* ===== ANIMATIONS ===== */
@keyframes sparkle {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    animation-fill-mode: forwards;
}

.animate-fade-up {
    animation: fadeUp 1s ease-out forwards;
    animation-fill-mode: forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
    animation-fill-mode: forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out forwards;
    animation-fill-mode: forwards;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease-out forwards;
    animation-fill-mode: forwards;
}

.animate-bounce-in {
    animation: bounceIn 1s ease-out forwards;
    animation-fill-mode: forwards;
}

/* Hover Animations */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    animation: pulse 1s ease-in-out infinite;
    color: var(--primary-color);
}

.restaurant-card {
    transition: all 0.3s ease;
}

.restaurant-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.menu-item-card {
    transition: all 0.3s ease;
}

.menu-item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.menu-item-card:hover img {
    transform: scale(1.1);
}

.menu-item-card img {
    transition: transform 0.5s ease;
}

/* Loading Animation */
.loading-text {
    animation: pulse 1.5s ease-in-out infinite;
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 18px;
}

.loading-text::after {
    content: '...';
    animation: dotPulse 1.4s ease-in-out infinite;
}

/* Scroll-triggered animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.menu-item-card,
.restaurant-card,
.feature-card {
    animation: fadeIn 0.6s ease-out;
}

/* ===== ADVANCED ANIMATIONS ===== */
/* Ripple Effect */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Button and Card Enhancements */
.btn,
button[type="submit"] {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Stagger Animation for Lists */
.stagger-item {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-item.will-animate {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-item.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Section Animations */
.section-animate {
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-animate.will-animate {
    opacity: 0;
    transform: translateY(40px);
}

.section-animate.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.animate-on-scroll {
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.will-animate {
    opacity: 0;
    transform: translateY(30px);
}

.animate-on-scroll.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Card Hover Effects */
.restaurant-card,
.menu-item-card,
.feature-card,
.position-card,
.perk-item,
.culture-card,
.department-card,
.contact-method {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

/* Image Hover Zoom */
.restaurant-image img,
.menu-item-image img {
    transition: transform 0.5s ease;
    will-change: transform;
}

.restaurant-card:hover .restaurant-image img,
.menu-item-card:hover .menu-item-image img {
    transform: scale(1.1);
}

/* Icon Animations */
@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes iconSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-icon-pulse {
    animation: iconPulse 2s ease-in-out infinite;
}

.animate-icon-spin {
    animation: iconSpin 2s linear infinite;
}

/* Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient {
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

/* Loading Dots */
@keyframes dotPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading-dots span {
    animation: dotPulse 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Shake Animation */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.animate-shake {
    animation: shake 0.5s ease;
}

/* Success Checkmark Animation */
@keyframes checkmark {
    0% {
        transform: scale(0) rotate(45deg);
    }
    50% {
        transform: scale(1.2) rotate(45deg);
    }
    100% {
        transform: scale(1) rotate(45deg);
    }
}

.animate-checkmark {
    animation: checkmark 0.6s ease;
}

/* Fade In/Out */
@keyframes fadeInOut {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

/* Slide Animations */
@keyframes slideInBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutBottom {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.slide-in-bottom {
    animation: slideInBottom 0.5s ease;
}

.slide-out-bottom {
    animation: slideOutBottom 0.5s ease;
}

/* Glow Effect */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 107, 53, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.8);
    }
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

/* Text Shimmer */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.text-shimmer {
    background: linear-gradient(
        90deg,
        var(--text-primary) 0%,
        var(--primary-color) 50%,
        var(--text-primary) 100%
    );
    background-size: 1000px 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

/* Count Up Animation */
[data-count] {
    transition: color 0.3s ease;
}

[data-count].counted {
    color: var(--primary-color);
}

/* Navbar Scroll Effect */
.main-header {
    transition: all 0.3s ease;
    
}

.main-header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
}

.main-header.scrolled .navbar {
    height: 70px;
}

.main-header.scrolled .logo {
    font-size: 24px;
}

/* Page Transitions */
@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-enter {
    animation: pageEnter 0.5s ease;
}

/* Modal Animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-fade-in {
    animation: modalFadeIn 0.3s ease;
}

/* Badge Animations */
.badge {
    transition: all 0.3s ease;
}

.badge:hover {
    transform: scale(1.1);
}

/* Enhanced Input Focus */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    transition: all 0.3s ease;
}

/* Smooth Page Load */
.main-content {
    animation: pageEnter 0.5s ease;
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== RESTAURANTS LISTING PAGE ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 60px 0 40px;
    text-align: center;
    margin-top: 80px;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

.filters-section {
    background: var(--white);
    padding: 30px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.filters-form {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-primary);
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 16px;
    transition: var(--transition);
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.restaurants-list-section {
    padding: 40px 0 80px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.results-header h2 {
    font-size: 28px;
    color: var(--text-primary);
}

.view-options {
    display: flex;
    gap: 10px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-color);
    background: var(--white);
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-secondary);
}

.view-btn:hover,
.view-btn.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--light-color);
}

.restaurants-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.restaurant-list-item {
    display: flex;
    gap: 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.restaurant-list-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(5px);
}

.restaurant-list-item .restaurant-image {
    width: 250px;
    height: 180px;
    flex-shrink: 0;
}

.restaurant-list-item .restaurant-info {
    flex: 1;
    padding: 20px;
}

.restaurant-list-item .restaurant-actions {
    padding: 20px;
    display: flex;
    align-items: center;
}

.restaurant-address {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 10px;
}

.restaurant-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 15px 0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
}

.page-info {
    font-weight: 500;
    color: var(--text-primary);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .filters-form {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .restaurant-list-item {
        flex-direction: column;
    }
    
    .restaurant-list-item .restaurant-image {
        width: 100%;
        height: 200px;
    }
    
    .view-options {
        display: none;
    }
}

/* ===== HOW IT WORKS PAGE ===== */
.how-it-works-section {
    padding: 60px 0;
    background: var(--white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.step-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--cream-bg);
    border-radius: var(--radius-lg);
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon {
    width: 100px;
    height: 100px;
    margin: 30px auto 20px;
    background: linear-gradient(135deg, var(--secondary-color), var(--warning-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--white);
}

.step-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.step-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.features-detailed-section {
    padding: 80px 0;
    background: var(--light-color);
}

.features-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-detailed {
    display: flex;
    gap: 20px;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-detailed:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.feature-detailed-icon {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--white);
}

.feature-detailed-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-detailed-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.order-types-section {
    padding: 80px 0;
    background: var(--white);
}

.order-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.order-type-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--cream-bg);
    border-radius: var(--radius-lg);
    border: 3px solid var(--border-color);
    transition: var(--transition);
}

.order-type-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.order-type-card i {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.order-type-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.order-type-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-section {
    padding: 80px 0;
    background: var(--light-color);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.faq-item {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(5px);
}

.faq-item h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item h4 i {
    color: var(--primary-color);
    font-size: 20px;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 18px;
}

@media (max-width: 768px) {
    .steps-grid,
    .features-detailed-grid,
    .order-types-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-detailed {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-detailed-icon {
        margin: 0 auto;
    }
}

/* ===== LEGAL PAGES (TERMS, PRIVACY) ===== */
.legal-content-section {
    padding: 40px 0 80px;
    background: var(--light-color);
}

.legal-content-section .container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 1400px;
}

.legal-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.legal-intro {
    background: var(--cream-bg);
    padding: 25px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 30px;
}

.legal-intro p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
}

.legal-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.legal-section:last-of-type {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-section h2 i {
    font-size: 28px;
}

.legal-section h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin: 20px 0 15px;
}

.legal-section p {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.legal-section ul {
    list-style: none;
    padding-left: 0;
}

.legal-section ul li {
    padding-left: 30px;
    margin-bottom: 12px;
    line-height: 1.7;
    color: var(--text-secondary);
    position: relative;
}

.legal-section ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--fresh-green);
    font-weight: bold;
    font-size: 18px;
}

.contact-info {
    background: var(--light-color);
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 15px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.contact-info i {
    color: var(--primary-color);
    width: 20px;
}

.legal-footer {
    background: var(--cream-bg);
    padding: 30px;
    border-radius: var(--radius);
    margin-top: 40px;
    text-align: center;
    border: 2px solid var(--primary-color);
}

.legal-footer p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.legal-footer p:last-child {
    margin-bottom: 0;
    font-size: 18px;
}

.legal-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.sidebar-card h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.sidebar-card ul {
    list-style: none;
}

.sidebar-card ul li {
    margin-bottom: 12px;
}

.sidebar-card ul li a {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    padding: 8px 0;
    transition: var(--transition);
}

.sidebar-card ul li a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.sidebar-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

@media (max-width: 992px) {
    .legal-content-section .container {
        grid-template-columns: 1fr;
    }
    
    .legal-sidebar {
        order: -1;
    }
    
    .sidebar-card {
        position: static;
    }
    
    .legal-content {
        padding: 25px;
    }
}

/* ===== DELIVERY REGISTRATION PAGE ===== */
.benefits-section {
    padding: 60px 0;
    background: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--cream-bg);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.benefit-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.registration-section {
    padding: 60px 0 80px;
    background: var(--light-color);
}

.registration-section .container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    max-width: 1400px;
}

.registration-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.registration-form-container h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.form-section {
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h3 i {
    color: var(--primary-color);
}

.requirements-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.requirements-sidebar .sidebar-card ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.requirements-sidebar .sidebar-card ul li i {
    color: var(--fresh-green);
}

.success-section {
    padding: 60px 0;
    background: var(--light-color);
}

.success-box {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: bounceIn 0.8s ease;
}

.success-box i.fa-check-circle {
    font-size: 80px;
    color: var(--fresh-green);
    margin-bottom: 20px;
    animation: checkmark 0.8s ease 0.3s both;
}

.success-box h2 {
    font-size: 32px;
    color: var(--fresh-green);
    margin-bottom: 20px;
}

.success-box p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.success-box ul {
    text-align: left;
    max-width: 500px;
    margin: 20px auto;
    list-style: none;
    padding-left: 0;
}

.success-box ul li {
    padding-left: 30px;
    margin-bottom: 10px;
    position: relative;
    line-height: 1.6;
}

.success-box ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--fresh-green);
    font-weight: bold;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

@media (max-width: 992px) {
    .registration-section .container {
        grid-template-columns: 1fr;
    }
    
    .requirements-sidebar {
        order: -1;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .registration-form-container {
        padding: 25px;
    }
    
    .success-box {
        padding: 30px 20px;
    }
    
    .success-actions {
        flex-direction: column;
    }
}

/* ===== SUPPORT PAGE ===== */
.quick-help-section {
    padding: 60px 0;
    background: var(--white);
}

.quick-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.quick-help-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--cream-bg);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.quick-help-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.quick-help-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.quick-help-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.quick-help-card p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 14px;
}

.help-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
}

.faq-section {
    padding: 80px 0;
    background: var(--light-color);
}

.faq-categories {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 40px 0 30px;
}

.faq-category-btn {
    padding: 12px 24px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.faq-category-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.faq-category-btn i {
    font-size: 18px;
}

.faq-content {
    max-width: 900px;
    margin: 0 auto;
}

.faq-category-content {
    display: none;
}

.faq-category-content.active {
    display: block;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-lg);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: none;
    border: none;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question i {
    color: var(--primary-color);
    transition: var(--transition);
    font-size: 14px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 25px 20px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.faq-answer a {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-form-section {
    padding: 80px 0;
    background: var(--white);
}

.contact-form-wrapper {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.contact-info > p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
       gap: 25px;
}

.contact-detail-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-detail-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-detail-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.contact-detail-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-form-container {
    background: var(--light-color);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.contact-form-container h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--text-primary);
}

/* ===== SEPARATE ANALYTICS INTO CLEAR SECTION CARDS ===== */
.admin-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    box-sizing: border-box;
}
.analytics-section {
    display: block;
    margin-bottom: 2.5rem;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    min-height: 0;
    overflow-x: visible;
    border: none;
    width: 100%;
    box-sizing: border-box;
}
.analysis-card {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 2rem auto;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    min-height: 320px;
    overflow-x: auto;
    border: 1.5px solid var(--border-color);
    box-sizing: border-box;
    margin-bottom: 2.5rem;
}
.card-header {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}
.card-body {
    padding: 0.5rem 0;
    width: 100%;
    box-sizing: border-box;
}
.analytics-tabs {
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
}
.analytics-tab-btn {
    margin-bottom: 0;
}
/* Add extra separation between major dashboard blocks */
.admin-content > * {
    margin-bottom: 2.5rem !important;
}
@media (max-width: 1200px) {
    .analysis-card {
        min-width: 0;
        max-width: 100%;
        padding: 1.5rem 1rem;
    }
}
@media (max-width: 900px) {
    .analysis-card {
        min-width: 0;
        padding: 1rem 0.5rem;
    }
}
@media (max-width: 600px) {
    .analysis-card {
        min-width: 0;
        max-width: 100%;
        padding: 0.5rem 0.25rem;
    }
}

/* === ANALYTICS DASHBOARD CUSTOM THEME === */
/* Stat card gradients using site palette */
.stat-card-gradient-1 {
    border-top: 4px solid var(--primary-color);
}
.stat-card-gradient-2 {
    border-top: 4px solid var(--secondary-color);
}
.stat-card-gradient-3 {
    border-top: 4px solid var(--info-color);
}
.stat-card-gradient-4 {
    border-top: 4px solid var(--success-color);
}
.stat-card-gradient-5 {
    border-top: 4px solid var(--accent-color);
}
.stat-card-gradient-6 {
    border-top: 4px solid var(--primary-dark);
}

.stat-card-gradient-1 .stat-icon { background: var(--primary-color); }
.stat-card-gradient-2 .stat-icon { background: var(--secondary-color); }
.stat-card-gradient-3 .stat-icon { background: var(--info-color); }
.stat-card-gradient-4 .stat-icon { background: var(--success-color); }
.stat-card-gradient-5 .stat-icon { background: var(--accent-color); }
.stat-card-gradient-6 .stat-icon { background: var(--primary-dark); }

.stat-card {
    background: var(--cream-bg);
    color: var(--text-primary);
}

.trading-card {
    background: var(--cream-bg);
    border: 1px solid var(--border-color);
}
.trading-card .card-header {
    background: linear-gradient(135deg, var(--cream-bg) 0%, var(--white) 100%);
    border-bottom: 2px solid var(--border-color);
}

/* Sidebar for admin dashboard */
.admin-layout {
    background: var(--cream-bg);
    min-height: 100vh;
    display: flex;
}
.admin-sidebar {
    background: var(--dark-color);
    color: var(--white);
    min-width: 220px;
    padding: 2rem 1rem 1rem 1rem;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    box-shadow: var(--shadow);
    height: 100vh;
    position: fixed;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.admin-sidebar a, .admin-sidebar .sidebar-link {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.2s;
}
.admin-sidebar a.active, .admin-sidebar a:hover, .admin-sidebar .sidebar-link.active {
    background: var(--primary-color);
    color: var(--white);
}
.admin-content {
    flex: 1;
    padding: 2rem 2.5rem;
}

/* === ANALYTICS DASHBOARD LAYOUT: 3/4 WIDTH, RIGHT-ALIGNED === */
.analytics-dashboard-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 100vh;
}
.analytics-empty-left {
    width: 25%;
    min-width: 200px;
    max-width: 350px;
    background: transparent;
    border-right: 2px solid var(--border-color);
    /* Optionally add a subtle background or placeholder */
}
.analytics-main-content {
    width: 75%;
    padding-left: 2rem;
    padding-right: 2rem;
    margin-left: auto;
    margin-left: 240px; /* Ensure content clears sidebar (sidebar is ~220px) */
}
@media (max-width: 1100px) {
    .analytics-main-content {
        margin-left: 0;
        width: 100%;
    }
}
@media (max-width: 900px) {
    .analytics-empty-left { display: none; }
    .analytics-main-content { width: 100%; padding-left: 0.5rem; padding-right: 0.5rem; }
}

/* === ANALYTICS LUXE LAYOUT (DARK GLASS, KEEPS BRAND COLORS) === */
body.dark-theme .analytics-dashboard-wrapper {
    background: radial-gradient(circle at 20% 20%, rgba(255, 107, 53, 0.12), transparent 35%),
                radial-gradient(circle at 80% 0%, rgba(52, 152, 219, 0.12), transparent 30%),
                linear-gradient(145deg, #0f1219 0%, #151b26 40%, #0f1219 100%);
    padding: 2rem 1rem 3rem;
}

body.dark-theme .analytics-dashboard-wrapper .admin-content {
    color: #e8ecf2;
    max-width: 1280px;
}

body.dark-theme .analytics-dashboard-wrapper .dashboard-header h1,
body.dark-theme .analytics-dashboard-wrapper .dashboard-header p {
    color: #e8ecf2;
}

body.dark-theme .analytics-dashboard-wrapper .dashboard-header p {
    opacity: 0.8;
}

body.dark-theme .analytics-dashboard-wrapper .stats-grid {
    gap: 1.25rem;
}

body.dark-theme .analytics-dashboard-wrapper .stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    color: #e8ecf2;
}

body.dark-theme .analytics-dashboard-wrapper .stat-card h3 {
    color: #ffffff;
}

body.dark-theme .analytics-dashboard-wrapper .stat-card p,
body.dark-theme .analytics-dashboard-wrapper .stat-card .stat-change {
    color: #d0d6e0;
}

body.dark-theme .analytics-dashboard-wrapper .stat-icon {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

body.dark-theme .analytics-dashboard-wrapper .analysis-card,
body.dark-theme .analytics-dashboard-wrapper .trading-card,
body.dark-theme .analytics-dashboard-wrapper .card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    color: #e8ecf2;
}

body.dark-theme .analytics-dashboard-wrapper .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-theme .analytics-dashboard-wrapper .card-header h3,
body.dark-theme .analytics-dashboard-wrapper .card-header h4,
body.dark-theme .analytics-dashboard-wrapper .card-body,
body.dark-theme .analytics-dashboard-wrapper .card-body p,
body.dark-theme .analytics-dashboard-wrapper .card-body span {
    color: #e8ecf2;
}

body.dark-theme .analytics-dashboard-wrapper .btn,
body.dark-theme .analytics-dashboard-wrapper .form-control,
body.dark-theme .analytics-dashboard-wrapper select {
    background: rgba(255, 255, 255, 0.06);
    color: #e8ecf2;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-theme .analytics-dashboard-wrapper .btn:hover,
body.dark-theme .analytics-dashboard-wrapper .form-control:focus,
body.dark-theme .analytics-dashboard-wrapper select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.25);
}

body.dark-theme .analytics-dashboard-wrapper .card .badge,
body.dark-theme .analytics-dashboard-wrapper .stat-change.positive {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #0f1219;
}

body.dark-theme .analytics-dashboard-wrapper .chart-container,
body.dark-theme .analytics-dashboard-wrapper canvas,
body.dark-theme .analytics-dashboard-wrapper svg {
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.25));
}
