/* PREMIUM DESIGN SYSTEM */
:root {
    --primary: #7BC8A4;
    --primary-hover: #5aaf8a;
    --secondary: #4E6070;
    --dark: #2C3E50;
    --light: #f5faf8;
    --glass: rgba(123, 200, 164, 0.08);
    --glass-border: rgba(123, 200, 164, 0.25);
    --shadow: 0 10px 15px -3px rgba(78, 96, 112, 0.12), 0 4px 6px -2px rgba(78, 96, 112, 0.07);
    --font-main: 'Outfit', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* NAVBAR */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(123, 200, 164, 0.45);
}

/* HERO SECTION */
.hero {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f5faf8 0%, #eef2ff 100%);
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--dark);
    font-weight: 800;
}

.hero-content p {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.features {
    padding: 0;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 3rem;
    border-radius: 20px;
    background: white;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.feature-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* CARDS FOR MENU PREVIEW */
.menu-preview {
    padding: 6rem 5%;
    background: #f8fafc;
}

/* FOOTER */
footer {
    padding: 4rem 5% 2rem;
    background: var(--dark);
    color: white;
    text-align: center;
}

.footer-content {
    margin-bottom: 2rem;
}

.footer-links {
    margin-bottom: 2rem;
}

.footer-links a {
    color: #94a3b8;
    margin: 0 1rem;
    text-decoration: none;
}

/* MOBILE RESPONSIVE EXTENSION */
@media (max-width: 1024px) {
    .sidebar {
        width: 280px;
        transform: translateX(-100%);
        z-index: 9999;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 1.5rem;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 23, 42, 0.4);
        backdrop-filter: blur(4px);
        z-index: 9998;
    }

    .sidebar-overlay.active {
        display: block;
    }
}

@media (max-width: 768px) {

    /* Navbar Landing */
    nav {
        flex-wrap: wrap;
        padding: 1rem 5%;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        padding-top: 1.5rem;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-nav-toggle {
        display: block !important;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--dark);
    }

    /* Hero */
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 4rem;
        padding-bottom: 2rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-image {
        margin-top: 3rem;
        justify-content: center;
    }

    .hero-btns {
        flex-direction: column;
    }

    /* Dashboard Mobile Header */
    .mobile-admin-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
        background: white;
        border-bottom: 1px solid #e2e8f0;
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .sidebar-toggle {
        display: flex !important;
        background: var(--primary);
        color: white;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        align-items: center;
        justify-content: center;
        border: none;
        cursor: pointer;
    }

    .main-content {
        padding: 1rem;
        margin-top: 0;
    }

    .content-header {
        display: none !important;
    }

    .user-profile {
        width: 100%;
        justify-content: flex-start;
        padding-top: 1rem;
        border-top: 1px solid #e2e8f0;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    /* Forms */
    .form-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .card {
        padding: 1rem;
    }

    .btn-sm {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }
}

/* DASHBOARD STYLES */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: #f1f5f9;
}

.sidebar {
    width: 280px;
    background: var(--dark);
    color: white;
    padding: 2rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-logo {
    padding: 0 2rem;
    margin-bottom: 3rem;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    color: #94a3b8;
    text-decoration: none;
    transition: 0.2s;
    font-weight: 500;
}

.sidebar-menu li a i {
    width: 24px;
    font-size: 1.1rem;
}

.sidebar-menu li.active a,
.sidebar-menu li a:hover {
    background: rgba(123, 200, 164, 0.12);
    color: white;
    border-left: 4px solid var(--primary);
}

.main-content {
    flex: 1;
    padding: 2.5rem;
    margin-left: 280px;
    width: calc(100% - 280px);
    min-height: 100vh;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border-left: 6px solid var(--primary);
    box-shadow: 0 4px 6px -1px rgba(78, 96, 112, 0.08);
    transition: transform 0.3s ease;
}

/* UI Components */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    text-align: left;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.table th {
    font-weight: 700;
    color: #64748b;
    background: #f8fafc;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-info {
    background: #e0f2fe;
    color: #0369a1;
}

/* RESPONSIVE TABLE WRAPPER */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
}

/* Modal Responsive */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* AUTH PAGES RESPONSIVENESS */
@media (max-width: 640px) {
    .hero>div {
        padding: 2rem 1.5rem !important;
        margin: 1rem !important;
        border-radius: 15px !important;
    }
}

/* BUTTONS GRID */
.btn-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .btn-grid {
        flex-direction: column;
    }

    .btn-grid .btn-primary,
    .btn-grid .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

.btn-danger {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-family: inherit;
}

/* ALERTS */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-info {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.alert-success {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.alert-danger {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}