/* ============================================
   Toko Sembako Nurbaya - Design System
   Premium Bootstrap 5 Enhancement
   ============================================ */

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

/* ==========================================
   CSS VARIABLES / DESIGN TOKENS
   ========================================== */
:root {
    /* Primary Palette - Crypto Emerald & Indigo */
    --primary: #10B981;
    --primary-light: #34D399;
    --primary-dark: #059669;
    --primary-gradient: linear-gradient(135deg, #10B981 0%, #3B82F6 100%);

    /* Secondary Palette - Gold & Amber */
    --secondary: #F59E0B;
    --secondary-light: #FBBF24;
    --secondary-dark: #D97706;

    /* Dark Slate Neutrals */
    --dark: #0F172A;
    --dark-secondary: #1E293B;
    --dark-tertiary: #334155;
    --gray-50: #0F172A;
    --gray-100: #1E293B;
    --gray-200: #334155;
    --gray-300: #475569;
    --gray-400: #94A3B8;
    --gray-500: #CBD5E1;
    --gray-600: #E2E8F0;
    --gray-700: #F1F5F9;
    --gray-800: #F8FAFC;
    --gray-900: #FFFFFF;

    /* Status Colors */
    --success: #10B981;
    --success-light: rgba(16, 185, 129, 0.15);
    --danger: #EF4444;
    --danger-light: rgba(239, 68, 68, 0.15);
    --warning: #F59E0B;
    --warning-light: rgba(245, 158, 11, 0.15);
    --info: #3B82F6;
    --info-light: rgba(59, 130, 246, 0.15);

    /* Layout */
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
    --navbar-height: 64px;
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --border-radius-lg: 24px;

    /* Shadows & Glass */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.5);
    --shadow-lg: 0 20px 35px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.35);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0F172A !important;
    color: #F8FAFC !important;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.text-muted {
    color: #CBD5E1 !important;
}

/* Global Cards Glassmorphism */
.card, .shop-card, .product-card, .stats-card, .card-body {
    background-color: #1E293B !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 16px !important;
    color: #F8FAFC !important;
    backdrop-filter: blur(16px);
}

.card-header, .card-footer {
    background-color: #0F172A !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #F8FAFC !important;
    font-weight: 700;
}

/* Global Navbar */
.shop-navbar {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.shop-navbar-brand {
    color: #FFFFFF !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}
.shop-navbar-brand:hover {
    color: #10B981 !important;
    text-decoration: none !important;
}

.btn-outline-secondary, .btn-outline-light, .btn-outline-primary {
    color: #CBD5E1 !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}
.btn-outline-secondary:hover, .btn-outline-light:hover, .btn-outline-primary:hover {
    color: #FFFFFF !important;
    border-color: #10B981 !important;
    background: rgba(16, 185, 129, 0.2) !important;
}

/* Tables & Data Grids */
.table {
    background-color: #1E293B !important;
    color: #F8FAFC !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.table th {
    background-color: #0F172A !important;
    color: #94A3B8 !important; /* Soft Elegant Slate Grey for Table Headers */
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.8px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.12) !important;
}

.table td {
    background-color: #1E293B !important;
    color: #F8FAFC !important; /* Crisp Pure White for Cell Data */
    font-weight: 500 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.table-light, .table-light th, .table-light td {
    background-color: #0F172A !important;
    color: #F8FAFC !important;
}

/* Borderless Info Table (Clean, No Box-in-Box) */
.table-borderless, .table-borderless th, .table-borderless td {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
}

.table-borderless th {
    color: #94A3B8 !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    width: 38%;
}

.table-borderless td {
    color: #FFFFFF !important;
    font-weight: 600 !important;
}

/* Forms & Inputs */
.form-label {
    color: #CBD5E1 !important; /* Soft Clean Light Grey for Form Labels */
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    margin-bottom: 6px !important;
}

/* Seamless Unified Input Group (No Separate Disjointed Boxes!) */
.input-group {
    background-color: #0F172A !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 12px !important;
    overflow: hidden;
    transition: all 0.2s ease;
}

.input-group:focus-within {
    border-color: #10B981 !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.35) !important;
}

.input-group .input-group-text {
    background-color: transparent !important;
    color: #10B981 !important;
    border: none !important;
    padding-left: 14px !important;
    padding-right: 6px !important;
    font-size: 1.1rem;
}

.input-group .form-control {
    background-color: transparent !important;
    border: none !important;
    color: #FFFFFF !important;
}

/* Hide number input spinners */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none !important;
    margin: 0 !important;
}
input[type=number] {
    -moz-appearance: textfield !important;
}

.input-group .form-control:focus {
    box-shadow: none !important;
}

.input-group:not(.qty-stepper) .btn-outline-secondary {
    background-color: transparent !important;
    border: none !important;
    color: #CBD5E1 !important;
    padding-right: 14px !important;
}

.input-group:not(.qty-stepper) .btn-outline-secondary:hover {
    color: #10B981 !important;
}

.form-control, .form-select {
    background-color: #0F172A !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
}

.form-control:focus, .form-select:focus {
    background-color: #0F172A !important;
    color: #FFFFFF !important;
    border-color: #10B981 !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4) !important;
}

.form-control::placeholder {
    color: #94A3B8 !important;
}

/* Global CTA Buttons */
.btn-crypto, .btn-primary-gradient {
    background: linear-gradient(135deg, #10B981 0%, #3B82F6 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 0.75rem 1.8rem !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4) !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}
.btn-crypto:hover, .btn-primary-gradient:hover {
    background: linear-gradient(135deg, #059669 0%, #2563EB 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6) !important;
    transform: translateY(-2px) !important;
}

/* Dropdowns & Modals */
.dropdown-menu, .modal-content {
    background-color: #1E293B !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #F8FAFC !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}

.dropdown-item {
    color: #CBD5E1 !important;
}

.dropdown-item:hover {
    background-color: rgba(16, 185, 129, 0.15) !important;
    color: #10B981 !important;
}

a { text-decoration: none; }

/* ==========================================
   SIDEBAR
   ========================================== */
aside.sidebar, .sidebar {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 280px !important;
    background: #0F172A !important;
    border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
    z-index: 1050 !important;
    transition: var(--transition);
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: block !important;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--dark-tertiary); border-radius: 4px; }

.sidebar-brand {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 20px 24px !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

.sidebar-brand-icon {
    width: 42px !important;
    height: 42px !important;
    background: linear-gradient(135deg, #10B981 0%, #3B82F6 100%) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.3rem !important;
    color: #fff !important;
    flex-shrink: 0 !important;
}

.sidebar-brand-text {
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    line-height: 1.3 !important;
}

.sidebar-brand-text small {
    display: block !important;
    font-size: 0.7rem !important;
    font-weight: 400 !important;
    color: #94A3B8 !important;
    margin-top: 2px !important;
}

aside.sidebar .sidebar-menu, 
.sidebar .sidebar-menu, 
ul.sidebar-menu {
    padding: 16px 12px !important;
    margin: 0 !important;
    list-style: none !important;
    list-style-type: none !important;
}

aside.sidebar .sidebar-menu li, 
.sidebar .sidebar-menu li, 
ul.sidebar-menu li {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 0 3px 0 !important;
}

.sidebar-menu-label {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    color: #94A3B8 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    padding: 16px 12px 6px !important;
    list-style: none !important;
}

.sidebar-menu-item {
    margin-bottom: 3px !important;
    list-style: none !important;
}

.sidebar-menu-item a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 16px !important;
    color: #CBD5E1 !important;
    border-radius: 12px !important;
    transition: all 0.2s ease !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.sidebar-menu-item a:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #FFFFFF !important;
    transform: translateX(4px) !important;
}

.sidebar-menu-item a.active {
    background: linear-gradient(135deg, #10B981 0%, #3B82F6 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4) !important;
}

.sidebar-menu-item a i {
    font-size: 1.15rem !important;
    width: 22px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

/* ==========================================
   NAVBAR & MAIN CONTENT
   ========================================== */
.main-navbar, header.main-navbar {
    position: fixed !important;
    top: 0 !important;
    left: 280px !important;
    right: 0 !important;
    height: 64px !important;
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    z-index: 1040 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 24px !important;
    transition: var(--transition);
}

.navbar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF !important;
}

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

.navbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 50px;
    background: #1E293B !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    cursor: pointer;
    transition: var(--transition-fast);
}

.navbar-user:hover { border-color: #10B981 !important; }

.navbar-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-user-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #FFFFFF !important;
    line-height: 1.2;
}

.navbar-user-role {
    font-size: 0.7rem;
    color: #CBD5E1 !important;
}

.main-content {
    margin-left: var(--sidebar-width);
    padding: 84px 24px 24px;
    min-height: 100vh;
    background-color: #0F172A !important;
    transition: var(--transition);
}

.navbar-user-info {
    line-height: 1.3;
}

.navbar-user-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-800);
}

.navbar-user-role {
    font-size: 0.68rem;
    color: var(--gray-500);
    text-transform: capitalize;
}

/* Mobile Toggle */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--gray-600);
    cursor: pointer;
    padding: 6px;
}

/* ==========================================
   MAIN CONTENT
   ========================================== */
.main-content, main.main-content {
    margin-left: 280px !important;
    padding-top: 64px !important;
    min-height: 100vh !important;
    transition: var(--transition);
}

.content-wrapper {
    padding: 24px;
}

/* ==========================================
   CARDS
   ========================================== */
.card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 20px;
    font-weight: 600;
}

.card-body { padding: 20px; }

/* Stats Cards */
.stats-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.stats-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stats-card:hover::before { transform: scaleX(1); }

.stats-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 14px;
}

.stats-card-icon.primary { background: rgba(79,70,229,0.1); color: var(--primary); }
.stats-card-icon.success { background: rgba(16,185,129,0.1); color: var(--success); }
.stats-card-icon.warning { background: rgba(245,158,11,0.1); color: var(--warning); }
.stats-card-icon.danger { background: rgba(239,68,68,0.1); color: var(--danger); }
.stats-card-icon.info { background: rgba(59,130,246,0.1); color: var(--info); }

.stats-card-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gray-800);
    line-height: 1;
    margin-bottom: 4px;
}

.stats-card-label {
    font-size: 0.78rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn-primary-gradient {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(79,70,229,0.3);
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79,70,229,0.4);
    color: #fff;
}

.btn { border-radius: var(--border-radius-sm); font-weight: 500; font-size: 0.875rem; transition: var(--transition-fast); }
.btn:hover { transform: translateY(-1px); }

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
}

/* ==========================================
   TABLES
   ========================================== */
.table-wrapper {
    background: #fff;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.table {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.table thead th {
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    white-space: nowrap;
}

.table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    border-color: var(--gray-100);
}

.table tbody tr { transition: var(--transition-fast); }
.table tbody tr:hover { background: var(--gray-50); }

/* ==========================================
   STATUS BADGES
   ========================================== */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
}

.badge-status.pending { background: rgba(245, 158, 11, 0.2) !important; color: #FBBF24 !important; border: 1px solid rgba(245, 158, 11, 0.4) !important; }
.badge-status.confirmed { background: rgba(59, 130, 246, 0.2) !important; color: #60A5FA !important; border: 1px solid rgba(59, 130, 246, 0.4) !important; }
.badge-status.processing { background: rgba(168, 85, 247, 0.2) !important; color: #C084FC !important; border: 1px solid rgba(168, 85, 247, 0.4) !important; }
.badge-status.shipped { background: rgba(6, 182, 212, 0.2) !important; color: #22D3EE !important; border: 1px solid rgba(6, 182, 212, 0.4) !important; }
.badge-status.completed { background: rgba(16, 185, 129, 0.2) !important; color: #34D399 !important; border: 1px solid rgba(16, 185, 129, 0.4) !important; }
.badge-status.cancelled { background: rgba(239, 68, 68, 0.2) !important; color: #F87171 !important; border: 1px solid rgba(239, 68, 68, 0.4) !important; }

/* ==========================================
   FORMS
   ========================================== */
.form-control, .form-select {
    border-radius: var(--border-radius-sm);
    border-color: var(--gray-300);
    padding: 10px 14px;
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.form-label {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--gray-700);
    margin-bottom: 6px;
}

/* ==========================================
   SEARCH BAR
   ========================================== */
.search-box, .search-container, .shop-search {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input, .search-container input, .shop-search input, input.search-input {
    padding-left: 44px !important;
    border-radius: 50px !important;
    background: #0F172A !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #FFFFFF !important;
}

.search-box input:focus, .search-container input:focus, .shop-search input:focus {
    background: #0F172A !important;
    border-color: #10B981 !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.35) !important;
}

.search-box i, .search-container i, .shop-search i, .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #10B981 !important;
    font-size: 1.05rem;
    pointer-events: none;
    z-index: 10;
}

/* ==========================================
   PAGINATION
   ========================================== */
.pagination .page-link {
    background-color: #1E293B !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #FFFFFF !important; /* Crisp Pure White Numbers */
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    padding: 8px 14px !important;
    border-radius: 10px !important;
    margin: 0 3px !important;
    transition: var(--transition-fast) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #10B981 0%, #3B82F6 100%) !important;
    border-color: transparent !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4) !important;
}

.pagination .page-link:hover {
    background-color: #334155 !important;
    border-color: #10B981 !important;
    color: #10B981 !important;
}

/* ==========================================
   BREADCRUMB
   ========================================== */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
    font-size: 0.8rem;
}

.breadcrumb-item a { color: var(--primary); font-weight: 500; }
.breadcrumb-item.active { color: var(--gray-500); }

/* ==========================================
   EMPTY STATE
   ========================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 3.5rem;
    color: var(--gray-300);
    margin-bottom: 16px;
}

.empty-state-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.empty-state-text {
    font-size: 0.85rem;
    color: var(--gray-400);
}

/* ==========================================
   LOADING SKELETON
   ========================================== */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    border-radius: var(--border-radius-sm);
}

@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================
   PRODUCT CARDS (SHOP)
   ========================================== */
.product-card {
    background: #fff;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: var(--transition);
}

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

.product-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--gray-100);
}

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

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

.product-card-body {
    padding: 16px;
}

.product-card-category {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
}

.product-card-stock {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.product-card-actions {
    padding: 0 16px 16px;
    display: flex;
    gap: 8px;
}

/* ==========================================
   AUTH PAGES
   ========================================== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0F172A !important;
    background-image:
        radial-gradient(ellipse at 20% 80%, rgba(16,185,129,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(59,130,246,0.15) 0%, transparent 50%) !important;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: #1E293B !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 24px !important;
    padding: 36px 32px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(20px);
}

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

.auth-logo-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #10B981 0%, #3B82F6 100%) !important;
    border-radius: 18px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 16px;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4) !important;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF !important;
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: #CBD5E1 !important;
}

.auth-card .form-label {
    color: #CBD5E1 !important;
    font-weight: 500;
}

/* Seamless Unified Input Bar */
.auth-card .input-group {
    background-color: #0F172A !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 12px !important;
    overflow: hidden;
}

.auth-card .input-group:focus-within {
    border-color: #10B981 !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.35) !important;
}

.auth-card .input-group-text {
    background-color: transparent !important;
    color: #10B981 !important;
    border: none !important;
    padding-left: 14px !important;
    padding-right: 6px !important;
}

.auth-card .form-control {
    background-color: transparent !important;
    border: none !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
}

.auth-card .btn-outline-secondary {
    background-color: transparent !important;
    color: #CBD5E1 !important;
    border: none !important;
}

.auth-card .btn-outline-secondary:hover {
    color: #10B981 !important;
}

/* Chrome / Edge Autofill Fix (Prevents Autofill from Turning Input White) */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-text-fill-color: #FFFFFF !important;
    -webkit-box-shadow: 0 0 0px 1000px #0F172A inset !important;
    box-shadow: 0 0 0px 1000px #0F172A inset !important;
    transition: background-color 5000s ease-in-out 0s !important;
    background-color: #0F172A !important;
}

/* ==========================================
   MODALS
   ========================================== */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 20px;
}

.modal-title { font-weight: 700; font-size: 1rem; }
.modal-body { padding: 20px; }
.modal-footer { border-top: 1px solid var(--gray-200); padding: 12px 20px; }

/* ==========================================
   SHOP LAYOUT (Pelanggan)
   ========================================== */
.shop-navbar {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1050;
}

.shop-navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--primary);
    font-size: 1.1rem;
}

.shop-navbar-brand i { font-size: 1.4rem; }

.shop-hero {
    background: var(--primary-gradient);
    color: #fff;
    padding: 48px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.shop-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.shop-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.shop-hero p { font-size: 1rem; opacity: 0.9; }

.shop-footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: 32px 0;
    margin-top: 60px;
    text-align: center;
    font-size: 0.85rem;
}

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

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-fade-in { animation: fadeIn 0.5s ease forwards; }
.animate-slide-in { animation: slideInRight 0.4s ease forwards; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1045;
        display: none;
    }

    .sidebar-overlay.show { display: block; }

    .main-navbar {
        left: 0;
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: block;
    }
}

@media (max-width: 767.98px) {
    .content-wrapper { padding: 16px; }
    .stats-card-value { font-size: 1.3rem; }
    .auth-card { padding: 28px; }
    .shop-hero { padding: 32px 0; }
    .shop-hero h1 { font-size: 1.5rem; }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary { background: var(--primary-gradient); }
.rounded-xl { border-radius: var(--border-radius); }
.rounded-2xl { border-radius: var(--border-radius-lg); }

.fw-800 { font-weight: 800; }
.fs-sm { font-size: 0.875rem; }
.fs-xs { font-size: 0.75rem; }

.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

/* ==========================================
   GLOBAL BULLETPROOF CTA BUTTONS & AUTOFILL FIX
   ========================================== */
.btn-crypto, 
a.btn-crypto, 
button.btn-crypto, 
.btn-primary-gradient,
a.btn-primary-gradient,
button.btn-primary-gradient {
    background: linear-gradient(135deg, #10B981 0%, #3B82F6 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 0.8rem 1.8rem !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.45) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    cursor: pointer !important;
}

.btn-crypto:hover, 
a.btn-crypto:hover, 
button.btn-crypto:hover, 
.btn-primary-gradient:hover,
a.btn-primary-gradient:hover,
button.btn-primary-gradient:hover {
    background: linear-gradient(135deg, #059669 0%, #2563EB 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.65) !important;
    transform: translateY(-2px) !important;
}

/* Universal Autofill Fix for Dark Slate Theme */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
select:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px #0F172A inset !important;
    -webkit-text-fill-color: #FFFFFF !important;
    caret-color: #FFFFFF !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

form .form-control, 
form textarea.form-control, 
form input.form-control {
    background-color: #0F172A !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}
