@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0d9488;
    --primary-hover: #0f766e;
    --primary-light: #ccfbf1;
    --primary-dark: #115e59;
    --secondary: #0ea5e9;
    --secondary-hover: #0369a1;
    --accent: #f43f5e;
    --accent-hover: #be123c;
    
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-dark: #0f172a;
    --bg-nav: rgba(255, 255, 255, 0.85);
    
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-white: #ffffff;
    --text-dark: #0f172a;
    
    --border-color: #e2e8f0;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.04);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-brand svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
}

.nav-item {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-item:hover, .nav-item.active {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
    font-size: 0.95rem;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(13, 148, 136, 0.2);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--text-white);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(14, 165, 233, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-muted);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: rgba(13, 148, 136, 0.05);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--text-white);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(244, 63, 94, 0.2);
}

/* Page Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 40px;
}

/* Mobile & Tablet Responsiveness Rules */
.nav-actions-desktop {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-mobile-controls {
    display: none;
}

.nav-mobile-drawer {
    display: none;
}

/* Custom layout classes to replace inline grids */
.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

.blog-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.prescription-upload-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.admin-order-detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Breakpoint for Mobile and Navigation drawers */
@media (max-width: 992px) {
    .nav-menu, .nav-actions-desktop {
        display: none !important;
    }
    
    .nav-mobile-controls {
        display: flex !important;
        align-items: center;
        gap: 16px;
    }
    
    .navbar {
        padding: 0 20px;
    }
    
    /* Toggle Button Hamburger Animations */
    .nav-toggle.open .toggle-bar:nth-child(1) {
        transform: rotate(45deg) translateY(5.5px) translateX(5.5px);
    }
    
    .nav-toggle.open .toggle-bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.open .toggle-bar:nth-child(3) {
        transform: rotate(-45deg) translateY(-5.5px) translateX(5.5px);
    }
    
    .nav-mobile-drawer {
        display: block !important;
        position: absolute;
        top: 74px;
        left: 0;
        width: 100%;
        background-color: var(--bg-card);
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        padding: 0 24px;
        z-index: 999;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-mobile-drawer.open {
        max-height: calc(100vh - 80px);
        padding: 24px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Spacings and layouts */
    .catalog-layout, .blog-layout, .cart-layout, .checkout-layout, .product-detail-layout, .prescription-upload-layout, .admin-order-detail-layout {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

@media (max-width: 768px) {
    /* Reset Grid Columns */
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    /* Slider mobile styling */
    .hero-slider {
        height: 320px;
    }
    
    .slide-content {
        padding: 0 24px;
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.55) 100%) !important;
    }
    
    .slide-content h1 {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }
    
    .slide-content p {
        font-size: 0.82rem;
        margin-bottom: 15px;
    }

    .slide-content .btn {
        padding: 10px 22px !important;
        font-size: 0.9rem !important;
    }
    
    .slide-image-container {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        border-radius: var(--border-radius-lg) !important;
    }
    
    .slide-bg-img-animated {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        opacity: 0.3 !important;
    }
    
    /* Admin mobile adjustments */
    .admin-layout {
        grid-template-columns: 1fr !important;
    }
    
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 260px;
        height: 100vh;
        z-index: 1000;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .admin-sidebar.open {
        left: 0;
    }
    
    .admin-main {
        padding: 80px 16px 30px !important; /* Leave space for mobile header */
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 30px;
    }
    
    .admin-mobile-bar {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        background-color: var(--bg-dark);
        color: white;
        padding: 0 20px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        z-index: 999;
        box-shadow: var(--shadow-md);
    }

    .admin-sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(15, 23, 42, 0.5);
        z-index: 998;
        display: none;
    }
    
    .admin-sidebar-overlay.open {
        display: block;
    }
}


/* Hero & Slides */
.hero-slider {
    position: relative;
    height: 480px;
    background-color: var(--bg-dark);
    color: var(--text-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideImageZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08);
    }
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
    pointer-events: none;
}

.slide-item.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.slider-indicators {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.indicator-dot.active {
    background-color: var(--primary);
    transform: scale(1.25);
    box-shadow: 0 0 10px rgba(13, 148, 136, 0.5);
}

/* Typewriter cursor styling and animation */
.typewriter-cursor {
    display: inline-block;
    color: #ffffff;
    margin-left: 4px;
    font-weight: 300;
    animation: blink-cursor 0.7s step-end infinite;
}

@keyframes blink-cursor {
    from, to { opacity: 1 }
    50% { opacity: 0 }
}

.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 60%, rgba(15, 23, 42, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8%;
    z-index: 2;
}

.slide-content h1 {
    font-size: 3rem;
    color: var(--text-white);
    max-width: 600px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.slide-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    margin-bottom: 30px;
}

.slide-bg-img {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    z-index: 1;
    border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) 0;
}

/* Falling medicine animation on slide change */
.medicine-rain {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 6;
}

.falling-pill {
    position: absolute;
    top: -72px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
    animation: medicineDrop linear forwards;
    will-change: transform, opacity;
}

@keyframes medicineDrop {
    0% {
        transform: translateY(0) translateX(0) rotate(var(--pill-rotate, 0deg)) scale(0.85);
        opacity: 0;
    }
    6% {
        opacity: 1;
    }
    92% {
        opacity: 0.85;
    }
    100% {
        transform: translateY(var(--fall-distance, 520px)) translateX(var(--pill-sway, 0px)) rotate(calc(var(--pill-rotate, 0deg) + 200deg)) scale(1);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .medicine-rain {
        display: none;
    }
}

/* Cards */
.card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(13, 148, 136, 0.2);
}

.card-img-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: #f1f5f9;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img {
    transform: scale(1.05);
}

.card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* Product Card Specifics */
.rx-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--accent);
    color: var(--text-white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
}

.price-tag {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-dark);
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    border: 1.5px solid var(--border-color);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    background-color: var(--bg-card);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
}

/* Table Style */
.table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
    background-color: var(--bg-card);
    margin-bottom: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
}

th {
    background-color: #f8fafc;
    font-weight: 700;
    color: #475569;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: rgba(13, 148, 136, 0.02);
}

/* Admin Dashboard Elements */
.admin-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background-color: #090d16;
    color: var(--text-white);
    padding: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.sidebar-brand {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
    transition: var(--transition);
}

.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-item a:hover {
    color: var(--text-white);
    background-color: rgba(255, 255, 255, 0.04);
    transform: translateX(4px);
}

.sidebar-item.active a {
    color: var(--text-white);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.2);
}

.sidebar-item.active .sidebar-icon {
    transform: scale(1.1);
}

.admin-main {
    background-color: #f3f4f6;
    padding: 35px 40px;
    overflow-y: auto;
}

.admin-header {
    margin-bottom: 35px;
}

/* Sidebar section labels */
.sidebar-section-label {
    padding: 14px 18px 5px;
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    user-select: none;
    cursor: default;
}

/* Mobile admin topbar — hidden on desktop */
.admin-mobile-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background-color: #090d16;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    z-index: 200;
}

/* Sidebar overlay backdrop */
.admin-sidebar-overlay {
    display: block;
    pointer-events: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    z-index: 149;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-sidebar-overlay.open {
    pointer-events: auto;
    opacity: 1;
}

/* ── Admin Responsive (tablet) ── */
@media (max-width: 1024px) {
    .admin-layout {
        grid-template-columns: 240px 1fr;
    }
    .admin-main {
        padding: 25px 28px;
    }
}

/* ── Admin Responsive (mobile) ── */
@media (max-width: 768px) {
    /* Switch to single column — sidebar lives off-canvas */
    .admin-layout {
        grid-template-columns: 1fr;
    }

    /* Show the mobile top bar */
    .admin-mobile-bar {
        display: flex;
    }

    /* Sidebar becomes a fixed off-canvas drawer */
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        z-index: 150;
        transform: translateX(-100%);
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    /* Main content fills full width, no left margin */
    .admin-main {
        padding: 20px 16px;
        min-height: 100vh;
    }

    /* Header topbar stacks on mobile */
    .admin-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 16px !important;
        margin-bottom: 20px;
    }

    /* Stats grid: 2 columns on mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
        margin-bottom: 24px;
    }

    .stat-card {
        padding: 18px 16px;
    }

    .stat-value {
        font-size: 1.7rem;
    }

    /* Table horizontal scroll */
    .table-wrapper {
        border-radius: 12px;
    }

    th, td {
        padding: 12px 14px;
        font-size: 0.82rem;
    }

    /* Search bar wrap */
    .search-container {
        flex-wrap: wrap;
    }
}

/* ── Admin Responsive (small mobile) ── */
@media (max-width: 480px) {
    .admin-main {
        padding: 14px 12px;
    }
}



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

.stat-card {
    background-color: var(--bg-card);
    padding: 26px 30px;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(13, 148, 136, 0.15);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0.7;
}

.stat-value {
    font-size: 2.3rem;
    font-weight: 800;
    color: #0f172a;
    margin: 6px 0;
    letter-spacing: -0.5px;
}

.stat-title {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.75px;
}

/* Alert Boxes */
.alert {
    padding: 14px 20px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    border: 1px solid transparent;
}

.alert-success {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-color: var(--primary);
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

/* Cart & Checkout Specifics */
.cart-summary {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-row:last-of-type {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-dark);
}

.checkout-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.checkout-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.step-item {
    position: relative;
    z-index: 2;
    background-color: var(--bg-main);
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.step-item.active .step-num {
    background-color: var(--primary);
    color: var(--text-white);
}

.step-item.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

/* Search bar styling */
.search-container {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    background-color: var(--bg-card);
    padding: 16px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.search-input {
    flex-grow: 1;
}

/* Badge styling */
.badge {
    display: inline-flex;
    padding: 5px 12px !important;
    border-radius: 9999px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pending { background-color: #fef3c7 !important; color: #d97706 !important; }
.badge-confirmed { background-color: #e0f2fe !important; color: #0284c7 !important; }
.badge-shipped { background-color: #f3e8ff !important; color: #7e22ce !important; }
.badge-delivered { background-color: #d1fae5 !important; color: #059669 !important; }
.badge-cancelled { background-color: #fee2e2 !important; color: #dc2626 !important; }
.badge-paid { background-color: #d1fae5 !important; color: #059669 !important; }
.badge-failed { background-color: #fee2e2 !important; color: #dc2626 !important; }

/* Welcome Blog Card Styles */
.welcome-blog-card {
    display: flex;
    flex-direction: row;
    height: 220px;
    align-items: stretch;
}

@media (max-width: 768px) {
    .welcome-blog-card {
        flex-direction: column !important;
        height: auto !important;
    }
    .welcome-blog-card > div:first-child {
        width: 100% !important;
        height: 120px !important;
        padding: 20px 0 !important;
    }
    .welcome-blog-card > div:last-child {
        width: 100% !important;
        padding: 20px !important;
    }
}

/* Customer Order Confirmation Page Grid Styles */
.checkout-show-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    border-top: 1.5px solid var(--border-color);
    padding-top: 30px;
    margin-bottom: 30px;
}

.delivery-info-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .checkout-show-grid, .delivery-info-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* Keyframes for Hero Slide Zoom Animation */
@keyframes slideImageZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08);
    }
}

.desktop-sidebar-toggle {
    display: none !important;
}

/* ──────────────────────────────────────────────────────────────────────────
   Admin Layout Redesign (Fixed Sidebar & Top Header Navbar + Profile Dropdown)
   ────────────────────────────────────────────────────────────────────────── */

@media (min-width: 769px) {
    .desktop-sidebar-toggle {
        display: flex !important;
    }
    .admin-layout {
        display: block !important;
        min-height: 100vh;
    }

    .admin-sidebar {
        position: fixed !important;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px !important;
        height: 100vh !important;
        z-index: 100 !important;
        overflow-y: auto;
        border-right: 1px solid rgba(255, 255, 255, 0.04);
        transform: none !important;
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .admin-header {
        position: fixed !important;
        top: 0;
        left: 280px;
        right: 0;
        height: 80px;
        z-index: 99 !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: var(--bg-card) !important;
        padding: 0 40px !important;
        border-radius: 0 !important;
        border: none !important;
        border-bottom: 1px solid var(--border-color) !important;
        box-shadow: var(--shadow-sm) !important;
        margin-bottom: 0 !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .admin-main {
        margin-left: 280px !important;
        padding-top: 115px !important; /* Spacing below the fixed header */
        padding-left: 40px !important;
        padding-right: 40px !important;
        background-color: #f8fafc !important;
        min-height: 100vh;
        transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Minimized Sidebar Layout */
    .admin-layout.sidebar-minimized .admin-sidebar {
        width: 70px !important;
        overflow: hidden;
    }

    .admin-layout.sidebar-minimized .admin-header {
        left: 70px !important;
    }

    .admin-layout.sidebar-minimized .admin-main {
        margin-left: 70px !important;
    }

    .admin-layout.sidebar-minimized .admin-sidebar .brand-text {
        display: none !important;
    }

    .admin-layout.sidebar-minimized .admin-sidebar .sidebar-brand {
        justify-content: center !important;
        padding: 24px 0 !important;
        gap: 0 !important;
    }

    .admin-layout.sidebar-minimized .admin-sidebar .sidebar-item span {
        display: none !important;
    }

    .admin-layout.sidebar-minimized .admin-sidebar .sidebar-item a {
        justify-content: center !important;
        padding: 12px 0 !important;
        gap: 0 !important;
    }

    .admin-layout.sidebar-minimized .admin-sidebar .sidebar-icon {
        margin-right: 0 !important;
    }

    .admin-layout.sidebar-minimized .admin-sidebar .sidebar-section-label {
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        margin: 12px 0;
        padding: 0 !important;
        height: 1px;
        overflow: hidden;
        display: block !important;
        font-size: 0;
    }
}

/* Admin Profile Dropdown Navigation Styles */
.profile-dropdown-wrapper {
    position: relative;
    user-select: none;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px 6px 8px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.profile-trigger:hover, .profile-dropdown-wrapper.active .profile-trigger {
    background-color: #f1f5f9;
    border-color: rgba(226, 232, 240, 0.8);
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.profile-dropdown-wrapper.active .profile-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 16px 20px;
    background-color: #f8fafc;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-header-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-header-email {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.2;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-header-role {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-menu-list {
    list-style: none;
    padding: 6px 0;
    margin: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s ease;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.dropdown-item:hover {
    color: var(--primary);
    background-color: rgba(13, 148, 136, 0.05);
}

.dropdown-item svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 6px 0;
}

/* Adjustments for dropdown confirmation logout button styling */
.dropdown-item.logout-btn-confirm {
    color: #ef4444;
}

.dropdown-item.logout-btn-confirm:hover {
    color: #ffffff;
    background-color: #ef4444;
}

/* Mobile layout modifications and header/dropdown overrides */
@media (max-width: 768px) {
    /* Prevent content from hiding under fixed mobile top bar */
    .admin-main {
        padding-top: 85px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        padding-bottom: 40px !important;
        margin-left: 0 !important;
    }

    /* Stack order adjustments for mobile drawer and mobile header */
    .admin-mobile-bar {
        z-index: 900 !important;
    }

    .admin-sidebar-overlay {
        z-index: 950 !important;
    }

    .admin-sidebar {
        z-index: 1000 !important;
    }

    /* Hide desktop header dropdown and desktop notification dropdown on mobile */
    .admin-header #profile-dropdown,
    .admin-header #notifications-dropdown {
        display: none !important;
    }
    
    /* Make the content header transparent and borderless on mobile */
    .admin-header {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-bottom: 20px !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    /* Adjust mobile dropdown color palette in dark bar */
    #mobile-profile-dropdown .profile-dropdown-menu {
        background-color: #090d16 !important;
        border-color: rgba(255, 255, 255, 0.08) !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
    }
    
    #mobile-profile-dropdown .dropdown-header {
        background-color: #0d1525 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }
    
    #mobile-profile-dropdown .dropdown-header-name {
        color: #ffffff !important;
    }
    
    #mobile-profile-dropdown .dropdown-header-email {
        color: rgba(255, 255, 255, 0.5) !important;
    }
    
    #mobile-profile-dropdown .dropdown-divider {
        background-color: rgba(255, 255, 255, 0.08) !important;
    }
    
    #mobile-profile-dropdown .dropdown-item {
        color: rgba(255, 255, 255, 0.6) !important;
    }
    
    #mobile-profile-dropdown .dropdown-item:hover {
        color: #ffffff !important;
        background-color: rgba(255, 255, 255, 0.04) !important;
    }
}

/* Global Table Responsiveness wrapper to prevent mobile layout stretching */
.table-responsive, .table-wrapper {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    /* Set minimum width for tables in scrollable wrappers on mobile to prevent squishing text columns */
    .table-wrapper table, .table-responsive table {
        min-width: 850px !important;
    }
}

@media (max-width: 600px) {
    /* Collapse dashboard stats cards into 1 column on small/medium phones */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

@media (max-width: 768px) {
    /* Make slide write up container 100% transparent on mobile to capture beauty of the slide */
    .slide-content {
        background: transparent !important;
        display: flex !important;
    }
    
    /* Add text shadow on mobile for readability against raw image */
    .slide-content h1 {
        text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.8), 0px 4px 16px rgba(0, 0, 0, 0.5) !important;
    }
    
    /* Give the smaller text paragraph a background for better readability */
    .slide-content p {
        background: rgba(15, 23, 42, 0.65) !important;
        padding: 8px 12px !important;
        border-radius: 6px !important;
        text-shadow: none !important; /* Remove shadow if it has a solid background */
    }
    
    /* Remove the blue cover (gradient) and make image show normally without opacity */
    .slide-image-container {
        background: transparent !important;
    }
    
    .slide-bg-img-animated {
        opacity: 1 !important;
    }
}
