/* Modern Dark Botanical Theme */
:root {
    --primary: #10b981;
    /* Keep Mint for contrast */
    --primary-dark: #059669;
    --secondary: #fbbf24;
    /* Gold/Amber for premium accented text */

    /* Parrot Green Accent */
    --parrot: #76ff03;

    /* Dark Theme Colors */
    --dark-bg: #000000;
    --glass-dark: rgba(20, 20, 20, 0.85);
    /* Darker cards for readability */
    --glass-border: rgba(255, 255, 255, 0.15);

    --text-main: #f9fafb;
    --text-muted: #d1d5db;

    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);

    --font-main: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7)), url('../images/theme_bg.jpg');
    background-size: cover;
    background-attachment: scroll;
    background-position: center;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-secondary {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 50px;
    background: transparent;
    border: 2px solid var(--glass-border);
    color: var(--text-muted);
    font-weight: 500;
    transition: 0.3s;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(16, 185, 129, 0.1);
}

/* Glassmorphism Cards */
.card,
.menu-card,
.login-card,
.table-container,
.stat-card {
    background: var(--glass-dark);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    color: var(--text-main);
}

/* Navbar */
.navbar {
    background: rgba(0, 0, 0, 0.9);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    transition: 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 3rem;
    position: relative;
    /* Hero is transparent now to show body bg, or we can add a specific gradient */
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

/* Menu Section */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-main);
}

.section-title p {
    color: var(--text-muted);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
}

.menu-card {
    overflow: hidden;
    transition: 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.menu-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.menu-img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    background: #2a2a2a;
    /* Dark placeholder */
    border-bottom: 1px solid var(--glass-border);
}

.menu-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.menu-info h4 {
    color: var(--text-main);
}

.menu-info p {
    color: var(--text-muted);
    flex-grow: 1;
    margin-bottom: 1rem;
}

.menu-price {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Admin Styles */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: rgba(0, 0, 0, 0.95);
    border-right: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 2rem;
    position: fixed;
    height: 100%;
    overflow-y: auto;
}

.sidebar-logo {
    margin-bottom: 3rem;
}

.sidebar-menu li {
    margin-bottom: 1rem;
}

.sidebar-menu a {
    display: block;
    padding: 12px 15px;
    border-radius: 10px;
    transition: 0.3s;
    color: var(--text-muted);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: var(--glass-border);
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.2);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    /* Dark inputs */
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    border-radius: 10px;
    outline: none;
    transition: 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.5);
}

/* Date Picker Icon White */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* SPECIAL SEARCH BAR DESIGN - White + Parrot */
/* SPECIAL SEARCH BAR DESIGN - Dark Glass + Parrot Border */
#adminSearch,
#menuSearch {
    background-color: rgba(0, 0, 0, 0.6) !important;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff !important;
    border: 2px solid var(--parrot) !important;
    font-weight: 500;
    border-radius: 50px;
}

#adminSearch::placeholder,
#menuSearch::placeholder {
    color: #cccccc !important;
    font-weight: 400;
}

#adminSearch:focus,
#menuSearch:focus {
    box-shadow: 0 0 15px var(--parrot) !important;
    border-color: var(--parrot) !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
    outline: none;
}

/* Custom Dropdown Styling */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    cursor: pointer;
}

.custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 48px;
    /* Match form control height approx */
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--parrot);
    border-radius: 50px;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s;
}

.custom-select-trigger:hover {
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 10px rgba(118, 255, 3, 0.3);
}

.custom-select-wrapper.open .custom-select-trigger {
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    background: rgba(0, 0, 0, 0.9);
}

.custom-options {
    position: absolute;
    display: block;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid var(--parrot);
    border-top: none;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    max-height: 250px;
    overflow-y: auto;
}

.custom-select-wrapper.open .custom-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
}

.custom-option {
    padding: 12px 20px;
    color: var(--text-muted);
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background: var(--primary);
    color: white;
    padding-left: 25px;
    /* Slight movement effect */
}

.custom-option.selected {
    background: rgba(16, 185, 129, 0.2);
    color: var(--primary);
    font-weight: 600;
}

/* Target icons next to the search input if possible via sibling selector or global override for that specific icon container context */
/* Since inline styles are used in PHP, we use !important */

/* Tables */
.table-container {
    overflow: hidden;
    margin-bottom: 2rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-muted);
}

.table th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: var(--text-main);
}

.table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Status Badges */
.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-pending {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-preparing {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-completed {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-cancelled {
    background: rgba(107, 114, 128, 0.2);
    color: #d1d5db;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.8) !important;
    border-top: 1px solid var(--glass-border);
}

/* Heading/Text Overrides for visibility */
h1,
h2,
h3,
h4,
h5 {
    color: var(--text-main) !important;
}

/* Toast Notification */
#toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: var(--primary);
    color: #fff;
    text-align: center;
    border-radius: 50px;
    padding: 16px;
    position: fixed;
    z-index: 2000;
    left: 50%;
    bottom: 30px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.5s, bottom 0.5s;
}

#toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

/* Badge */
/* Badge */
.badge {
    position: absolute;
    top: -8px;
    right: -12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--glass-border);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Variant Radio Group Styling */
.variant-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 1rem;
}

.variant-radio {
    position: relative;
    cursor: pointer;
}

.variant-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-label {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    /* Glass Background */
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-weight: 500;
    height: 100%;
}

.radio-label small {
    display: block;
    font-size: 0.75rem;
    margin-top: 3px;
    color: var(--secondary);
    /* Gold price */
}

/* Checked State - Button Style */
.variant-radio input:checked+.radio-label {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
    font-weight: 700;
}

.variant-radio:hover .radio-label {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--glass-border);
}

/* OOS Styles */
.disabled-option {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.2);
    /* Darker background for disabled */
}

.disabled-option .radio-label {
    border-style: dashed;
    color: #999;
}

.oos-tag {
    background: #ef4444;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    margin-left: 5px;
    vertical-align: middle;
    text-transform: uppercase;
    font-weight: bold;
}


/* Cart Pulse Animation */
@keyframes cartPulse {
    0% {
        transform: scale(1);
        color: inherit;
    }

    50% {
        transform: scale(1.4);
        color: #10b981;
        text-shadow: 0 0 15px #10b981;
    }

    100% {
        transform: scale(1);
        color: inherit;
    }
}

.cart-animate {
    animation: cartPulse 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.badge.has-items {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
    border-color: #ef4444;
}

/* Badge Pulse Animation */
@keyframes badgePop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5);
        background-color: #ff2222;
        box-shadow: 0 0 15px rgba(255, 50, 50, 0.8);
    }

    100% {
        transform: scale(1);
    }
}

.badge-animate {
    animation: badgePop 0.5s ease-out;
}

/* Swiper Custom Styling */
.swiper-button-next, .swiper-button-prev {
    color: var(--primary) !important;
    background: rgba(0, 0, 0, 0.5);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
}
.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 1.5rem !important;
    font-weight: bold;
}
.swiper-pagination-bullet {
    background: #fff !important;
    opacity: 0.5;
}
.swiper-pagination-bullet-active {
    background: var(--primary) !important;
    opacity: 1;
    width: 25px !important;
    border-radius: 10px !important;
}

/* ========================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ======================================== */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 1.5rem;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.mobile-menu-toggle:hover {
    background: var(--primary);
    color: #fff;
}

/* Admin Sidebar Toggle */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: var(--primary);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ========================================
   TABLET & BELOW (max-width: 1024px)
   ======================================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    /* Admin Layout Adjustments */
    .sidebar {
        width: 220px;
    }

    .main-content {
        margin-left: 220px;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* ========================================
   MOBILE & TABLET (max-width: 1024px)
   ======================================== */
@media (max-width: 1024px) {

    /* Typography Scaling */
    body {
        font-size: 14px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    /* Navigation - Mobile Menu */
    .navbar {
        padding: 0.8rem 0;
    }

    .nav-content {
        position: relative;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        padding: 80px 20px 20px;
        gap: 0;
        transition: right 0.3s ease;
        border-left: 1px solid var(--glass-border);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin-bottom: 0;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links a {
        display: block;
        padding: 15px 10px;
        font-size: 1.1rem;
    }

    /* Close button for mobile menu */
    .nav-links::before {
        content: '\f00d';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 1.8rem;
        color: var(--primary);
        cursor: pointer;
    }

    /* Hero Section */
    .hero {
        height: 60vh;
        padding: 20px;
    }

    /* Menu Grid - Single Column */
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Search & Filter Controls */
    .section-title>div {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .custom-select-wrapper {
        flex: 1 !important;
        min-width: 100% !important;
    }

    /* Buttons */
    .btn {
        padding: 12px 20px;
        font-size: 1rem;
    }

    /* Admin Layout - Mobile */
    .admin-layout {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        left: -280px;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        padding: 80px 20px 20px;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-toggle {
        display: block;
    }

    .main-content {
        margin-left: 0;
        padding: 70px 15px 15px;
        width: 100%;
    }

    /* Stats Grid - Stack */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Tables - Horizontal Scroll */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table {
        min-width: 600px;
    }

    .table th,
    .table td {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }

    /* Forms */
    .form-control {
        font-size: 16px;
        /* Prevents zoom on iOS */
        padding: 14px;
    }

    /* Cards */
    .card,
    .menu-card,
    .stat-card {
        border-radius: 15px;
    }

    /* Footer */
    footer {
        padding: 2rem 0 !important;
    }

    footer img {
        height: 60px !important;
    }
}

/* ========================================
   SMALL MOBILE (max-width: 480px)
   ======================================== */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero {
        height: 50vh;
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .menu-price {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .variant-group {
        grid-template-columns: 1fr;
    }

    .nav-links {
        width: 100%;
        right: -100%;
    }

    .nav-links.active {
        right: 0;
    }
}

/* ========================================
   TV / LARGE SCREENS (min-width: 1920px)
   ======================================== */
@media (min-width: 1920px) {
    html {
        font-size: 18px;
    }

    .container {
        max-width: 1600px;
    }

    .hero h1 {
        font-size: 5rem;
    }

    .hero p {
        font-size: 1.5rem;
    }

    .section-title h2 {
        font-size: 3rem;
    }

    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }

    .btn {
        padding: 14px 32px;
        font-size: 1.1rem;
    }

    /* Admin adjustments for large screens */
    .sidebar {
        width: 300px;
    }

    .main-content {
        margin-left: 300px;
        padding: 3rem;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* ========================================
   LANDSCAPE MOBILE (orientation)
   ======================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

/* ========================================
   MOBILE CART & MODAL STYLES
   ======================================== */
.mobile-cart-icon {
    display: none;
    position: relative;
    color: var(--text-main);
    font-size: 1.5rem;
    margin-right: 15px;
    text-decoration: none;
}

.mobile-cart-icon .badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
    display: none;
}

.mobile-cart-icon .badge.has-items {
    display: block;
}

/* Navbar Flex Adjustments for Mobile/Tablet */
@media (max-width: 1024px) {

    /* Navbar content is flex row. Order: Logo, Spacer, Cart, Toggle */
    .nav-content {
        justify-content: space-between;
        /* Ensures logo left, others right */
    }

    .mobile-cart-icon {
        display: block;
        margin-left: auto;
        /* Push to right of logo */
    }

    .mobile-menu-toggle {
        margin-left: 20px;
        /* Space between cart and toggle */
    }

    /* Hide the standard cart link inside the collapsible menu */
    .desktop-only-cart {
        display: none !important;
    }
}

/* Success Modal Overlay */
.cart-modal-overlay {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

.cart-modal-overlay.active {
    display: flex;
}

.cart-modal {
    background: white;
    /* Use glass effect if supported, otherwise white */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2.5rem;
    border-radius: 25px;
    text-align: center;
    max-width: 90%;
    width: 380px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.cart-modal-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.cart-modal h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.cart-modal p {
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.cart-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-modal-actions .btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
}

.btn-continue {
    background: transparent;
    border: 2px solid #e5e7eb;
    color: #4b5563;
}

.btn-continue:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* ========================================
   ADMIN RESPONSIVE UTILITIES
   ======================================== */
.admin-grid-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-top: 2rem;
}

.setting-toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

@media (max-width: 1024px) {
    .admin-grid-layout {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .setting-toggle-group {
        flex-direction: row;
        /* Keep row for small switches but ensure wrapping if needed */
        flex-wrap: wrap;
        gap: 1rem;
    }

    .setting-toggle-group div:first-child {
        width: 100%;
        /* Text takes full width */
        margin-bottom: 0.5rem;
    }

    .setting-toggle-group label.switch {
        margin-left: auto;
        /* Push switch to right */
    }
}

/* FORCE MOBILE ADMIN LAYOUT FIXES */
@media (max-width: 991px) {

    /* 1. Reset Main Content Margins completely */
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding-top: 80px !important;
        /* Space for top mobile navbar toggle */
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* 2. Sidebar Overlay Behavior */
    .sidebar {
        position: fixed !important;
        top: 0;
        left: -300px !important;
        /* Start hidden */
        width: 280px !important;
        height: 100vh !important;
        z-index: 10000 !important;
        transition: left 0.3s ease-in-out;
        box-shadow: none;
    }

    /* 3. Active Sidebar State */
    .sidebar.active {
        left: 0 !important;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    }

    /* 4. Fix Stats Grid and Tables */
    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    /* Ensure forms inside cards don't overflow */
    .card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
}

.disabled-option {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
    border-style: dashed;
}

.disabled-option .radio-label {
    background: transparent;
    color: var(--text-muted);
    font-style: italic;
    border-color: rgba(255, 255, 255, 0.1);
}