/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ===== VARIABLES & BASE STYLES - MODERN GLASSMORPHIC THEME ===== */
:root {
    /* Primary Colors (Brand Identity) */
    --primary: #6A4CFF;
    --primary-royal-purple: #6A4CFF;
    --primary-dark: #5032E6;
    --primary-deep-indigo: #5032E6;
    --primary-light: #EDE8FF;
    --primary-soft-lavender: #EDE8FF;
    
    /* Accent Colors (Industry + Tech vibe) */
    --accent-neon-aqua: #00E0A4;
    --accent-electric-blue: #0099FF;
    --accent-hot-pink: #FF4FC3;
    --accent-neon-violet: #A86CFF;
    
    /* Status Colors */
    --status-completed: #00E0A4;
    --status-pending: #FFC93D;
    --status-delayed: #FF5A5A;
    
    /* Legacy support aliases */
    --secondary: #A86CFF;
    --secondary-light: #A86CFF;
    --secondary-dark: #6A4CFF;
    --accent: #FF4FC3;
    --accent-light: #FF4FC3;
    --accent-dark: #FF4FC3;
    --success: #00E0A4;
    --success-light: #00E0A4;
    --warning: #FFC93D;
    --warning-light: #FFC93D;
    --info: #0099FF;
    --info-light: #0099FF;
    --danger-color: #FF5A5A;
    --danger-light: #FF5A5A;
    
    /* Modern color palette */
    --bg-primary: linear-gradient(135deg, #6A4CFF 0%, #5032E6 50%, #A86CFF 100%);
    --bg-secondary: linear-gradient(90deg, #FF4FC3 0%, #A86CFF 100%);
    --bg-tertiary: linear-gradient(135deg, #0099FF 0%, #00E0A4 100%);
    --bg-success: linear-gradient(135deg, #00E0A4 0%, #00E0A4 100%);
    --bg-warning: linear-gradient(135deg, #FFC93D 0%, #FFC93D 100%);
    --bg-info: linear-gradient(135deg, #0099FF 0%, #0099FF 100%);
    --bg-danger: linear-gradient(135deg, #FF5A5A 0%, #FF5A5A 100%);
    
    /* Gradients for components */
    --gradient-primary: linear-gradient(90deg, #6A4CFF, #5032E6);
    --gradient-primary-hover: linear-gradient(90deg, #7B59FF, #5A3FE6);
    --gradient-secondary: linear-gradient(135deg, #A86CFF 0%, #6A4CFF 100%);
    --gradient-success: linear-gradient(135deg, #00E0A4 0%, #00E0A4 100%);
    --gradient-warning: linear-gradient(135deg, #FFC93D 0%, #FFC93D 100%);
    --gradient-danger: linear-gradient(135deg, #FF5A5A 0%, #FF5A5A 100%);
    --gradient-info: linear-gradient(135deg, #0099FF 0%, #0099FF 100%);
    --gradient-garments: linear-gradient(135deg, #6A4CFF 0%, #5032E6 50%, #A86CFF 100%);
    --gradient-garments-accent: linear-gradient(90deg, #FF4FC3, #A86CFF);
    --gradient-nav-border: linear-gradient(90deg, rgba(106, 76, 255, 0.2), rgba(0, 153, 255, 0.2));
    
    /* Glass effect backdrop */
    --glass-backdrop: blur(14px) saturate(180%);
    
    /* Neon Glow Shadows */
    --glow-neon-aqua: 0 0 20px #00E0A4;
    --glow-electric-blue: 0 0 20px #0099FF;
    --glow-hot-pink: 0 0 20px #FF4FC3;
    --glow-neon-violet: 0 0 20px #A86CFF;
}

/* ===== NIGHT MODE (DEFAULT) - IMPROVED CONTRAST ===== */
body:not(.day-mode) {
    /* Neutral Colors - Dark Mode (Better contrast) */
    --neutral-gunmetal: #F0F0F0;
    --neutral-warm-gray: #B8B8B8;
    --neutral-mist-gray: #121212;
    --neutral-pure-white: #0a0a0a;
    
    /* Glassmorphic backgrounds - Dark Mode (Improved opacity) */
    --glass-white: rgba(25, 25, 30, 0.85);
    --glass-light: rgba(25, 25, 30, 0.75);
    --glass-medium: rgba(25, 25, 30, 0.65);
    --glass-dark: rgba(0, 0, 0, 0.4);
    
    /* Text colors - Dark Mode (Better contrast) */
    --text: #E8E8E8;
    --text-light: #AAAAAA;
    --text-dark: #FFFFFF;
    
    /* Borders - Dark Mode */
    --border: rgba(106, 76, 255, 0.4);
    --border-light: rgba(255, 255, 255, 0.15);
    
    /* Shadows with glass effect - Dark Mode */
    --shadow-glass-sm: 0 4px 6px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-glass-md: 0 8px 16px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-glass-lg: 0 20px 40px rgba(0, 0, 0, 0.5), 0 10px 20px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(106, 76, 255, 0.5), 0 0 60px rgba(106, 76, 255, 0.3);
}

/* ===== DAY MODE ===== */
body.day-mode {
    /* Neutral Colors - Light Mode */
    --neutral-gunmetal: #1A1A1A;
    --neutral-warm-gray: #5C5C5C;
    --neutral-mist-gray: #F8F9FA;
    --neutral-pure-white: #FFFFFF;
    
    /* Glassmorphic backgrounds - Light Mode */
    --glass-white: rgba(255, 255, 255, 0.85);
    --glass-light: rgba(255, 255, 255, 0.75);
    --glass-medium: rgba(255, 255, 255, 0.65);
    --glass-dark: rgba(0, 0, 0, 0.08);
    
    /* Text colors - Light Mode */
    --text: #1A1A1A;
    --text-light: #5C5C5C;
    --text-dark: #1A1A1A;
    
    /* Borders - Light Mode */
    --border: rgba(106, 76, 255, 0.25);
    --border-light: rgba(255, 255, 255, 0.5);
    
    /* Shadows with glass effect - Light Mode */
    --shadow-glass-sm: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.03);
    --shadow-glass-md: 0 8px 16px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.05);
    --shadow-glass-lg: 0 20px 40px rgba(80, 50, 230, 0.15), 0 10px 20px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(106, 76, 255, 0.3), 0 0 60px rgba(106, 76, 255, 0.15);
}

/* Base Styles with Glassmorphic Effect */
body {
    background: var(--neutral-mist-gray);
    font-family: 'Inter', 'Manrope', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    min-height: 100vh;
    position: relative;
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(106, 76, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 153, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 79, 195, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ===== LAYOUT COMPONENTS WITH GLASS EFFECT ===== */
.navbar {
    background: var(--glass-white) !important;
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    backdrop-filter: blur(14px) saturate(180%);
    box-shadow: var(--shadow-glass-md), 0 0 30px rgba(106, 76, 255, 0.15);
    border-bottom: 1px solid var(--gradient-nav-border);
    border-radius: 0 0 16px 16px;
    padding-left: 15px !important;
    padding-right: 15px !important;
    position: relative;
    overflow: hidden;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(106, 76, 255, 0.2), rgba(0, 153, 255, 0.2), rgba(106, 76, 255, 0.2));
    background-size: 200% 100%;
    animation: gradientFlow 3s linear infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.navbar-brand {
    font-weight: 700;
    font-size: 0.9rem !important;
    font-family: 'Poppins', 'DM Sans', 'Inter', sans-serif;
    color: var(--text) !important;
    text-shadow: 0 2px 4px rgba(106, 76, 255, 0.15);
    margin-right: auto !important;
    padding: 0.5rem 0 !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand .d-flex {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.company-sub {
    font-weight: 800;
    font-size: 0.85rem;
    font-family: 'Poppins', 'DM Sans', sans-serif;
    color: var(--text) !important;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(106, 76, 255, 0.15);
    letter-spacing: 0.3px;
    white-space: normal;
    word-wrap: break-word;
    overflow: visible;
}

.navbar-container {
    padding-left: 0 !important;
}

.navbar-toggler {
    border: 2px solid #6b46c1 !important;
    background: rgba(107, 70, 193, 0.1) !important;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%236b46c1' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 1.5em;
    height: 1.5em;
}

.navbar-nav .nav-link {
    color: var(--text) !important;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 0.2rem;
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--accent-hot-pink);
    box-shadow: var(--glow-hot-pink);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::before {
    opacity: 0.15;
}

.navbar-nav .nav-link.active::before {
    opacity: 0.15;
}

.navbar-nav .nav-link.active::after {
    width: 70%;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-electric-blue) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glass-sm);
}

.navbar-nav .nav-link i {
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover i {
    color: var(--accent-neon-aqua);
    filter: drop-shadow(var(--glow-neon-aqua));
}

/* ===== CARD COMPONENTS WITH GLASSMORPHISM ===== */
.garments-card {
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    backdrop-filter: blur(14px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(80, 50, 230, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.garments-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #6A4CFF, #0099FF, #00E0A4, #FF4FC3);
    background-size: 200% 100%;
    animation: gradientFlow 3s linear infinite;
}

.garments-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 6px 24px rgba(106, 76, 255, 0.5), var(--shadow-glass-lg);
    border-color: rgba(255, 255, 255, 0.6);
}

.stat-card {
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    backdrop-filter: blur(14px) saturate(180%);
    border-radius: 20px;
    box-shadow: var(--shadow-glass-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(106, 76, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 6px 24px rgba(106, 76, 255, 0.5), var(--shadow-glass-md);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Neon Icon Styles with Glow Auras */
.stat-icon.shipments-icon {
    background: var(--accent-neon-aqua);
    box-shadow: var(--glow-neon-aqua);
}

.stat-icon.products-icon {
    background: var(--accent-neon-violet);
    box-shadow: var(--glow-neon-violet);
}

.stat-icon.active-icon {
    background: var(--accent-electric-blue);
    box-shadow: var(--glow-electric-blue);
}

.stat-icon.sales-icon {
    background: var(--accent-hot-pink);
    box-shadow: var(--glow-hot-pink);
}

.stat-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-icon:hover::before {
    opacity: 1;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Inter', 'Manrope', sans-serif;
}

.stat-icon {
    color: white !important;
}

.action-card {
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    backdrop-filter: blur(14px) saturate(180%);
    border-radius: 20px;
    box-shadow: var(--shadow-glass-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.45);
    text-align: center;
    padding: 1.5rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-card:hover::before {
    opacity: 0.95;
}

.action-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 24px rgba(106, 76, 255, 0.5), var(--shadow-glass-lg);
}

.action-card:hover * {
    color: white !important;
}

.action-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    color: white;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 20px rgba(106, 76, 255, 0.4);
}

.action-card:hover .action-icon {
    background: white;
    color: var(--primary);
    transform: scale(1.1) rotate(5deg);
}

/* ===== TABLE STYLES WITH GLASS EFFECT ===== */
.table {
    color: var(--text);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    backdrop-filter: blur(14px) saturate(180%);
    box-shadow: var(--shadow-glass-md);
}

.table th {
    background: var(--primary-soft-lavender);
    color: var(--neutral-gunmetal) !important;
    font-weight: 700;
    border: none;
    padding: 1.2rem 1rem;
    font-size: 0.9rem;
    font-family: 'Poppins', 'DM Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table th * {
    color: var(--neutral-gunmetal) !important;
}

.table td {
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    backdrop-filter: blur(14px) saturate(180%);
    border-color: rgba(255, 255, 255, 0.3);
    padding: 1.1rem 1rem;
    vertical-align: middle;
    color: var(--text) !important;
    font-family: 'Inter', 'Manrope', sans-serif;
}

.table td strong {
    color: inherit !important;
}

.table td .text-success {
    color: #00E0A4 !important;
}

.table td .text-danger {
    color: #FF5A5A !important;
}

.table td .text-primary {
    color: #6A4CFF !important;
}

.table td .text-warning {
    color: #FFC93D !important;
}

.table td .text-info {
    color: #0099FF !important;
}

.table td .text-muted {
    color: #5C5C5C !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(106, 76, 255, 0.07);
}

.table-hover tbody tr {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.table-hover tbody tr:hover {
    background: rgba(106, 76, 255, 0.07);
    transform: scale(1.005);
    box-shadow: 0 4px 12px rgba(106, 76, 255, 0.1);
}

/* ===== NIGHT MODE TABLE FIXES ===== */
body:not(.day-mode) .table {
    background: rgba(25, 25, 30, 0.85) !important;
    color: var(--text);
    border-color: rgba(106, 76, 255, 0.3);
}

body:not(.day-mode) .table th {
    background: rgba(106, 76, 255, 0.25) !important;
    color: #E8E8E8 !important;
    border-color: rgba(106, 76, 255, 0.3);
}

body:not(.day-mode) .table th * {
    color: #E8E8E8 !important;
}

body:not(.day-mode) .table td {
    background: rgba(25, 25, 30, 0.8) !important;
    color: #E8E8E8 !important;
    border-color: rgba(106, 76, 255, 0.15);
}

body:not(.day-mode) .table td strong,
body:not(.day-mode) .table td .text-dark {
    color: #FFFFFF !important;
}

body:not(.day-mode) .table td .text-muted {
    color: #B8B8B8 !important;
}

body:not(.day-mode) .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(106, 76, 255, 0.1) !important;
}

body:not(.day-mode) .table-hover tbody tr:hover {
    background: rgba(106, 76, 255, 0.15) !important;
}

/* Night mode navbar fixes */
body:not(.day-mode) .navbar {
    background: rgba(20, 20, 25, 0.9) !important;
    border-bottom: 1px solid rgba(106, 76, 255, 0.3);
}

body:not(.day-mode) .navbar-brand,
body:not(.day-mode) .company-sub {
    color: #E8E8E8 !important;
    text-shadow: 0 2px 4px rgba(106, 76, 255, 0.2);
}

/* Night mode badge fixes */
body:not(.day-mode) .badge.bg-secondary {
    background: rgba(168, 108, 255, 0.8) !important;
    color: #FFFFFF !important;
}

body:not(.day-mode) .badge.bg-info {
    background: rgba(0, 153, 255, 0.8) !important;
    color: #FFFFFF !important;
}

body:not(.day-mode) .badge.bg-light {
    background: rgba(80, 80, 90, 0.8) !important;
    color: #E8E8E8 !important;
}

body:not(.day-mode) .color-text-badge {
    background: rgba(106, 76, 255, 0.3) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(106, 76, 255, 0.5);
}

/* Day mode badge fixes - ensure proper contrast */
body.day-mode .badge.bg-secondary {
    background: #6c757d !important;
    color: #FFFFFF !important;
}

body.day-mode .badge.bg-info {
    background: #0dcaf0 !important;
    color: #000000 !important;
}

body.day-mode .badge.bg-warning {
    background: #ffc107 !important;
    color: #000000 !important;
}

body.day-mode .badge.bg-light {
    background: #f8f9fa !important;
    color: #000000 !important;
}

body.day-mode .color-text-badge {
    background: rgba(106, 76, 255, 0.15) !important;
    color: #2A2A2A !important;
    border: 1px solid rgba(106, 76, 255, 0.3);
}

body:not(.day-mode) .text-gradient {
    background: linear-gradient(135deg, #A86CFF 0%, #00E0A4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Night mode card fixes */
body:not(.day-mode) .garments-card {
    background: rgba(25, 25, 30, 0.85) !important;
    border-color: rgba(106, 76, 255, 0.3);
    color: #E8E8E8 !important;
}

body:not(.day-mode) .stat-card {
    background: rgba(25, 25, 30, 0.85) !important;
    border-color: rgba(106, 76, 255, 0.3);
    color: #E8E8E8 !important;
}

body:not(.day-mode) .action-card {
    background: rgba(25, 25, 30, 0.85) !important;
    border-color: rgba(106, 76, 255, 0.3);
    color: #E8E8E8 !important;
}

body:not(.day-mode) .stat-label {
    color: #B8B8B8 !important;
}

/* Night mode form controls */
body:not(.day-mode) .form-control,
body:not(.day-mode) .form-select {
    background: rgba(25, 25, 30, 0.9) !important;
    border-color: rgba(106, 76, 255, 0.4) !important;
    color: #E8E8E8 !important;
}

body:not(.day-mode) .form-control::placeholder {
    color: #A3A3A3 !important;
}

body:not(.day-mode) .form-control:focus,
body:not(.day-mode) .form-select:focus {
    background: rgba(25, 25, 30, 0.95) !important;
    border-color: var(--primary) !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 0 4px rgba(106, 76, 255, 0.15), var(--shadow-glass-md);
}

body:not(.day-mode) .form-label {
    color: #E8E8E8 !important;
}

/* Night mode dropdowns (autocomplete/product search) */
body:not(.day-mode) .dropdown-menu {
    background: rgba(25, 25, 30, 0.95) !important;
    backdrop-filter: blur(10px) saturate(180%);
    border-color: rgba(106, 76, 255, 0.3) !important;
    color: #EAEAEA !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

body:not(.day-mode) .dropdown-item {
    color: #E8E8E8 !important;
    background: transparent !important;
}

body:not(.day-mode) .dropdown-item:hover,
body:not(.day-mode) .dropdown-item:focus,
body:not(.day-mode) .dropdown-item.active {
    background: rgba(106, 76, 255, 0.25) !important;
    color: #FFFFFF !important;
}

/* Ensure product datalist/auto-complete suggestions stay visible */
body:not(.day-mode) .dropdown-menu.show,
body:not(.day-mode) .dropdown-menu .dropdown-item,
body:not(.day-mode) .dropdown-menu .dropdown-item span,
body:not(.day-mode) .dropdown-menu .dropdown-item small {
    color: #E8E8E8 !important;
}

/* Night mode product dropdown styling */
body:not(.day-mode) .product-dropdown-list {
    background: rgba(25, 25, 30, 0.95) !important;
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    backdrop-filter: blur(10px) saturate(180%);
    border-color: rgba(106, 76, 255, 0.4) !important;
    color: #E8E8E8 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

body:not(.day-mode) .product-dropdown-item {
    background: rgba(40, 40, 45, 0.9) !important;
    color: #E8E8E8 !important;
    border-color: rgba(106, 76, 255, 0.2) !important;
    transition: all 0.2s ease;
}

body:not(.day-mode) .product-dropdown-item:hover {
    background: rgba(106, 76, 255, 0.25) !important;
    color: #FFFFFF !important;
}

/* Day mode product dropdown */
body.day-mode .product-dropdown-list {
    background: #ffffff !important;
    border-color: #dee2e6 !important;
    color: #333 !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

body.day-mode .product-dropdown-item {
    background: #f9f9f9 !important;
    color: #333 !important;
    border-color: #eee !important;
}

body.day-mode .product-dropdown-item:hover {
    background: #f0f0f0 !important;
}

/* Force print/view receipt text (including totals) to dark on white */
body:not(.day-mode) #viewShipmentModal #printableShipment,
body:not(.day-mode) #viewShipmentModal #printableShipment *,
body:not(.day-mode) #printableShipment,
body:not(.day-mode) #printableShipment * {
    color: #111827 !important;
}

/* Shipment receipt modal readability in night mode */
body:not(.day-mode) #viewShipmentModal .receipt-container,
body:not(.day-mode) #viewShipmentModal .receipt-container table,
body:not(.day-mode) #viewShipmentModal .receipt-container table td,
body:not(.day-mode) #viewShipmentModal .receipt-container table th,
body:not(.day-mode) #viewShipmentModal .receipt-container table tfoot td,
body:not(.day-mode) #viewShipmentModal .receipt-container table thead th {
    background: #ffffff !important;
    color: #111827 !important;
    border-color: #e5e7eb !important;
}

/* Night mode input-group buttons (e.g., clear search) */
body:not(.day-mode) .btn-outline-secondary {
    color: #E8E8E8 !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

body:not(.day-mode) .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #FFFFFF !important;
}

/* Night mode tables: keep dark backgrounds and readable text */
body:not(.day-mode) .table,
body:not(.day-mode) .table td,
body:not(.day-mode) .table th {
    background: rgba(25, 25, 30, 0.85) !important;
    color: #E8E8E8 !important;
    border-color: rgba(106, 76, 255, 0.15) !important;
}

body:not(.day-mode) .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(106, 76, 255, 0.1) !important;
}

body:not(.day-mode) .table thead th,
body:not(.day-mode) .table thead {
    background: linear-gradient(135deg, #3b2f86 0%, #1f1b3a 100%) !important;
    color: #F3F4F6 !important;
}

body:not(.day-mode) .table .text-primary { color: #cbd5ff !important; }
body:not(.day-mode) .table .text-success { color: #bbf7d0 !important; }
body:not(.day-mode) .table .text-danger { color: #fecdd3 !important; }
body:not(.day-mode) .table .text-warning { color: #fde68a !important; }

/* Keep receipt tables readable in night mode (white background + dark text) */
body:not(.day-mode) .receipt-container table,
body:not(.day-mode) .receipt-container table td,
body:not(.day-mode) .receipt-container table th,
body:not(.day-mode) .receipt-container table tfoot td,
body:not(.day-mode) .receipt-container table thead th {
    background: #ffffff !important;
    color: #111827 !important;
    border-color: #e5e7eb !important;
}

/* Night mode modal fixes */
body:not(.day-mode) .modal-content {
    background: rgba(25, 25, 30, 0.95) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-color: rgba(106, 76, 255, 0.4);
}

/* Exception for receipt modal - keep it light for readability */
body:not(.day-mode) #receiptModal .modal-body {
    background: #ffffff !important;
    color: #2A2A2A !important;
}

/* Receipt modal text contrast in night mode */
body:not(.day-mode) #receiptModal .receipt-container,
body:not(.day-mode) #receiptModal .receipt-container *:not(.table-dark):not(.btn):not(.badge) {
    color: #1f2937 !important;
}

body:not(.day-mode) #receiptModal .receipt-table td,
body:not(.day-mode) #receiptModal .receipt-table tfoot td,
body:not(.day-mode) #receiptModal .receipt-table tbody td {
    color: #1f2937 !important;
    background-color: #ffffff !important;
}

body:not(.day-mode) #receiptModal .receipt-table thead.table-dark th {
    color: #ffffff !important;
}

body:not(.day-mode) .modal-header {
    border-color: rgba(106, 76, 255, 0.3);
}

body:not(.day-mode) .modal-footer {
    border-color: rgba(106, 76, 255, 0.3);
}

body:not(.day-mode) .modal-title {
    color: #FFFFFF !important;
}

body:not(.day-mode) .close,
body:not(.day-mode) .btn-close {
    filter: invert(1);
}

/* ===== BUTTON STYLES WITH GLOSSY EFFECT ===== */
.btn {
    border-radius: 12px;
    font-weight: 700;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    padding: 0.75rem 1.8rem;
    font-size: 1rem;
    font-family: 'Inter', 'Manrope', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-glass-sm);
}

.btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.btn:hover::before {
    top: -10%;
    left: 110%;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.5), transparent, rgba(255,255,255,0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.8;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(106, 76, 255, 0.5);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(90deg, #6A4CFF, #5032E6);
    color: white !important;
    box-shadow: 0 4px 20px rgba(106, 76, 255, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(90deg, #7B59FF, #5A3FE6);
    box-shadow: 0 6px 24px rgba(106, 76, 255, 0.5);
    transform: translateY(-2px);
    color: white !important;
}

.btn-success {
    background: var(--gradient-success);
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 224, 164, 0.3);
}

.btn-success:hover {
    box-shadow: 0 8px 25px rgba(0, 224, 164, 0.5);
    filter: brightness(1.1);
    color: white !important;
}

.btn-warning {
    background: var(--gradient-warning);
    color: var(--neutral-gunmetal) !important;
    box-shadow: 0 4px 15px rgba(255, 201, 61, 0.3);
}

.btn-warning:hover {
    box-shadow: 0 8px 25px rgba(255, 201, 61, 0.5);
    filter: brightness(1.1);
    color: var(--neutral-gunmetal) !important;
}

.btn-danger {
    background: var(--gradient-danger);
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 90, 90, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 8px 25px rgba(255, 90, 90, 0.5);
    filter: brightness(1.1);
    color: white !important;
}

.btn-info {
    background: var(--gradient-info);
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 153, 255, 0.3);
}

.btn-info:hover {
    box-shadow: 0 8px 25px rgba(0, 153, 255, 0.5);
    filter: brightness(1.1);
    color: white !important;
}

.btn-outline-primary {
    border: 3px solid var(--primary);
    color: var(--primary) !important;
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    backdrop-filter: blur(14px) saturate(180%);
    font-weight: 700;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    color: white !important;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(168, 108, 255, 0.6);
}

.btn-outline-danger {
    border: 3px solid var(--danger-color);
    color: var(--danger-color) !important;
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    backdrop-filter: blur(14px) saturate(180%);
    font-weight: 700;
}

.btn-outline-danger:hover {
    background: var(--gradient-danger);
    color: white !important;
    border-color: transparent;
}

/* Night mode button fixes */
body:not(.day-mode) .btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    background: rgba(25, 25, 30, 0.8) !important;
}

body:not(.day-mode) .btn-outline-primary:hover {
    background: var(--gradient-primary) !important;
    color: white !important;
    border-color: transparent !important;
}

/* ===== FORM STYLES WITH GLASS EFFECT ===== */
.form-control, .form-select {
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    backdrop-filter: blur(14px) saturate(180%);
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 12px;
    color: var(--text) !important;
    padding: 0.85rem 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-glass-sm);
    font-family: 'Inter', 'Manrope', sans-serif;
}

.form-control:focus, .form-select:focus {
    background: white;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(106, 76, 255, 0.15), var(--shadow-glass-md);
    color: var(--text) !important;
    transform: translateY(-2px);
}

.form-label {
    color: var(--text) !important;
    font-weight: 600;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    font-family: 'Poppins', 'DM Sans', sans-serif;
}

/* ===== STATUS & BADGES ===== */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}

.status-delivered, .status-completed {
    background: var(--status-completed);
    color: white !important;
    box-shadow: var(--glow-neon-aqua);
}

.status-shipped, .status-pending {
    background: var(--status-pending);
    color: var(--neutral-gunmetal) !important;
}

.status-ordered {
    background: var(--gradient-info);
    color: white !important;
    box-shadow: var(--glow-electric-blue);
}

.status-delayed {
    background: var(--status-delayed);
    color: white !important;
}

.status-arrived {
    background: var(--gradient-garments);
    color: white !important;
}

.badge {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border: none;
}

.bg-primary { background: var(--gradient-garments) !important; color: white !important; }
.bg-success { background: var(--gradient-success) !important; color: white !important; }
.bg-warning { background: var(--gradient-warning) !important; color: var(--neutral-gunmetal) !important; }
.bg-danger { background: var(--gradient-danger) !important; color: white !important; }
.bg-info { background: var(--gradient-info) !important; color: white !important; }
.bg-secondary { background: var(--gray-700) !important; color: white !important; }

/* ===== UTILITY CLASSES ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'DM Sans', sans-serif;
    font-weight: 700;
}

h1 { font-weight: 800; }
h2, h3 { font-weight: 700; }

body {
    font-family: 'Inter', 'Manrope', sans-serif;
}

.text-gradient {
    background: var(--gradient-garments-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.glow {
    box-shadow: var(--glow);
}

.page-transition {
    animation: fadeInUp 0.6s ease-out;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(236, 72, 153, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(236, 72, 153, 0.8);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    50% {
        transform: translate(-50%, -52%) rotate(2deg);
    }
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--garments-accent) }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

.pulse-glow {
    animation: pulseGlow 2s infinite;
}

.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--garments-accent);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

/* ===== PRODUCT SPECIFIC STYLES ===== */
.product-images-preview {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.product-image-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.product-image-thumb:hover {
    transform: scale(1.1);
    border-color: var(--primary);
}

.image-placeholder-small {
    width: 50px;
    height: 50px;
    background: var(--gradient-secondary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.image-placeholder-medium {
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.more-images-badge {
    width: 50px;
    height: 50px;
    background: var(--gray-600);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.color-badges {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}

.color-badge, .color-badge-large {
    border-radius: 50%;
    border: 2px solid var(--border);
    cursor: pointer;
}

.color-badge {
    width: 20px;
    height: 20px;
}

.color-badge-large {
    width: 30px;
    height: 30px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

/* Color Text Badges - Show Full Color Names */
.color-text-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    border: 2px solid rgba(139, 92, 246, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
    text-transform: capitalize;
    white-space: nowrap;
}

.color-text-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.color-text-badge-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    border: 3px solid rgba(139, 92, 246, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    text-transform: capitalize;
}

.color-text-badge-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.size-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.color-variant-card {
    transition: all 0.3s ease;
    background: var(--light-gray);
}

.color-variant-card:hover {
    background-color: #e2e8f0;
    transform: translateY(-2px);
}

.variant-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
}

.variant-image:hover {
    transform: scale(1.05);
}

.size-card {
    background: #ffffff;
    transition: all 0.3s ease;
}

.size-card:hover {
    background: var(--light-gray);
    transform: scale(1.02);
}

.stats-card {
    border-left: 4px solid var(--primary);
}

/* Night mode stats card fix */
body:not(.day-mode) .stats-card {
    background: rgba(25, 25, 30, 0.85) !important;
    border-color: rgba(106, 76, 255, 0.3);
    color: #E8E8E8 !important;
}

body:not(.day-mode) .stats-card h5,
body:not(.day-mode) .stats-card small,
body:not(.day-mode) .stats-card .text-primary,
body:not(.day-mode) .stats-card .text-success,
body:not(.day-mode) .stats-card .text-info {
    color: #E8E8E8 !important;
}

.color-variant-group {
    background-color: var(--light-gray);
    border-left: 4px solid var(--primary) !important;
}

.size-quantity-row {
    padding: 8px;
    background-color: #f8fafc;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.color-input {
    text-transform: capitalize;
}

.remove-color-btn, .remove-size-btn, .add-size-btn {
    transition: all 0.3s ease;
}

.remove-color-btn:hover, .remove-size-btn:hover {
    transform: scale(1.05);
}

.add-size-btn:hover {
    transform: translateY(-2px);
}

/* ===== MODAL STYLES WITH GLASSMORPHISM ===== */
.modal-content {
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    backdrop-filter: blur(14px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 24px;
    box-shadow: var(--shadow-glass-lg);
}

.modal-header {
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    background: var(--gradient-garments);
    border-radius: 24px 24px 0 0;
    color: white !important;
    padding: 1.5rem;
}

.modal-header * {
    color: white !important;
}

.modal-title {
    color: white !important;
    font-weight: 700;
    font-size: 1.3rem;
    font-family: 'Poppins', 'DM Sans', sans-serif;
}

.modal-footer {
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.5);
}

/* Night mode modal fixes */
body:not(.day-mode) .modal-header {
    background: rgba(106, 76, 255, 0.3) !important;
    border-bottom: 1px solid rgba(106, 76, 255, 0.4);
}

body:not(.day-mode) .modal-title {
    color: #FFFFFF !important;
}

body:not(.day-mode) .modal-body {
    color: #E8E8E8 !important;
}

/* ===== DASHBOARD SPECIFIC WITH GLASS ===== */
.dashboard-header {
    background: linear-gradient(135deg, #6A4CFF 0%, #5032E6 50%, #A86CFF 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-glass-lg);
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.05) 10px, rgba(255, 255, 255, 0.05) 20px),
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    animation: textilePattern 20s linear infinite;
}

.dashboard-header::after {
    content: '👑';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    opacity: 0.1;
    z-index: 0;
}

.dashboard-header h1, .dashboard-header p {
    position: relative;
    z-index: 1;
    font-family: 'Poppins', 'DM Sans', sans-serif;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: white !important;
}

.dashboard-header p {
    font-weight: 500;
}

@keyframes textilePattern {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

.manufacturing-stat {
    text-align: center;
    padding: 1.8rem;
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    backdrop-filter: blur(14px) saturate(180%);
    border-radius: 18px;
    box-shadow: var(--shadow-glass-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.manufacturing-stat:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 24px rgba(106, 76, 255, 0.5), var(--shadow-glass-lg);
}

.search-controls {
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    backdrop-filter: blur(14px) saturate(180%);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-glass-md);
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-garments);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--garments-accent);
    border: 2px solid white;
    box-shadow: 0 0 0 3px var(--garments-accent);
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.timeline-content {
    background: var(--light);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

/* ===== PROGRESS BARS ===== */
.garments-progress {
    height: 10px;
    border-radius: 10px;
    background-color: var(--border);
    overflow: hidden;
}

.garments-progress-bar {
    height: 100%;
    border-radius: 10px;
    background: var(--gradient-garments-accent);
    transition: width 0.6s ease;
}

.animated-progress {
    background: linear-gradient(90deg, var(--garments-accent), var(--primary-light), var(--garments-accent));
    background-size: 200% 100%;
    animation: gradientShift 2s ease-in-out infinite;
}

/* ===== LOADING & INTERACTION ===== */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3e8ff;
    border-top: 4px solid var(--garments-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* ===== LOGO & BRANDING ===== */
.transparent-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    opacity: 0.06;
    z-index: -1;
    pointer-events: none;
    animation: gentleFloat 8s ease-in-out infinite;
    filter: brightness(0.8) contrast(1.1) hue-rotate(270deg);
}

/* Hide background logo in night mode */
body:not(.day-mode) .transparent-logo {
    opacity: 0.01;
}

.logo-watermark {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.logo-watermark:hover {
    opacity: 1;
    transform: scale(1.1);
}

.navbar-logo {
    height: 60px;
    width: 60px;
    margin-right: 5px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.navbar-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.dashboard-logo-corner {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    opacity: 0.15;
    z-index: 0;
    filter: brightness(0.7);
}

.stat-card-logo {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    opacity: 0.15;
    filter: brightness(0.7);
}

.card-logo-bg {
    position: relative;
    overflow: hidden;
}

/* Static background logo removed - only animated floating logos remain */

/* ===== ALERTS & NOTIFICATIONS ===== */
.alert {
    border-radius: 12px;
    border: none;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.alert-success {
    background: var(--gradient-success);
    color: white;
}

.alert-danger {
    background: var(--gradient-danger);
    color: white;
}

.alert-info {
    background: var(--gradient-info);
    color: white;
}

.alert-warning {
    background: var(--gradient-warning);
    color: var(--text);
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
    border-left: 4px solid var(--primary);
}

.info-card h6 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    background: var(--gradient-garments);
    color: white !important;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(106, 76, 255, 0.3);
}

.section-header h2, .section-header h3, .section-header h4 {
    color: white !important;
    margin: 0;
    font-family: 'Poppins', 'DM Sans', sans-serif;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header i {
    font-size: 1.2em;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    color: white !important;
}

.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: skewX(-20deg);
}

/* Night mode section header fix */
body:not(.day-mode) .section-header {
    background: rgba(106, 76, 255, 0.3) !important;
    border: 1px solid rgba(106, 76, 255, 0.4);
}

body:not(.day-mode) .section-header h2,
body:not(.day-mode) .section-header h3,
body:not(.day-mode) .section-header h4 {
    color: #E8E8E8 !important;
}

/* ===== COMPANY & RECEIPT STYLES ===== */
.company-main {
    font-weight: 800;
    font-size: 3.0em;
    color: white;
}

.company-sub {
    font-weight: 600;
    font-size: 1.5em;
    color: rgba(255, 255, 255, 0.9);
}

.receipt-container {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
}

/* Night mode receipt fixes - ensure visibility */
body:not(.day-mode) .receipt-container {
    background: #ffffff !important;
    color: #000000 !important;
}

body:not(.day-mode) .receipt-container * {
    color: #000000 !important;
}

body:not(.day-mode) .receipt-container .company-name {
    background: linear-gradient(135deg, #6A4CFF, #5032E6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body:not(.day-mode) .receipt-container .receipt-table th {
    background: #343a40 !important;
    color: #FFFFFF !important;
}

body:not(.day-mode) .receipt-container .receipt-table td {
    background: #ffffff !important;
    color: #000000 !important;
}

body:not(.day-mode) .receipt-container .text-muted {
    color: #6c757d !important;
}

body:not(.day-mode) .receipt-container .badge {
    color: #FFFFFF !important;
}

.receipt-logo {
    height: 80px;
    width: auto;
    filter: brightness(0.9);
}

.company-name {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
}

@supports (-webkit-background-clip: text) {
    .company-name {
        background: linear-gradient(135deg, var(--primary), var(--garments-dark));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

/* Ensure English company name is visible in receipt modal (day mode) */
body.day-mode #receiptModal .company-english {
    color: #0f172a !important;
    -webkit-text-fill-color: initial !important;
    background: none !important;
}

.company-arabic {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
}

body:not(.day-mode) .receipt-container .company-arabic {
    color: #000000 !important;
}

.company-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
}

body:not(.day-mode) .receipt-container .company-subtitle {
    color: #6c757d !important;
}

.company-tagline {
    color: var(--garments-accent);
    font-size: 1rem;
}

body:not(.day-mode) .receipt-container .company-tagline {
    color: #6A4CFF !important;
}

.receipt-title {
    color: var(--text);
    font-weight: 700;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 15px;
    position: relative;
}

body:not(.day-mode) .receipt-container .receipt-title {
    color: #000000 !important;
}

.receipt-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--garments-accent);
}

.contact-section {
    background: linear-gradient(135deg, #f0f4ff 0%, var(--light-gray) 100%);
    border: 1px solid var(--border);
    border-left: 5px solid var(--primary);
}

.receipt-sale-info {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--border) 100%);
    border: 1px solid #cbd5e1;
}

body:not(.day-mode) .receipt-container .receipt-sale-info {
    background: #f8f9fa !important;
    color: #000000 !important;
}

body:not(.day-mode) .receipt-container .receipt-sale-info * {
    color: #000000 !important;
}

.receipt-table th {
    background: var(--gradient-garments) !important;
    color: white;
    border: none;
    font-weight: 600;
    padding: 15px 10px;
}

.receipt-table td {
    padding: 12px 10px;
    border: 1px solid var(--border);
    vertical-align: middle;
    background: #ffffff;
}

.signature-line {
    height: 1px;
    background: #000;
    margin: 40px auto 10px;
    width: 250px;
}

.signature-box {
    padding: 20px;
}

.receipt-footer {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--border) 100%);
    border-radius: 10px;
    border-left: 4px solid var(--success-green);
}

body:not(.day-mode) .receipt-container .receipt-footer {
    background: #f8f9fa !important;
    color: #000000 !important;
}

body:not(.day-mode) .receipt-container .receipt-footer * {
    color: #000000 !important;
}

.contact-footer {
    background: rgba(99, 102, 241, 0.1);
    padding: 10px;
    border-radius: 8px;
}

body:not(.day-mode) .receipt-container .contact-footer {
    background: rgba(99, 102, 241, 0.15) !important;
}

body:not(.day-mode) .receipt-container .contact-footer * {
    color: #000000 !important;
}

/* ===== UTILITY CLASSES ===== */
.profit-high { color: var(--secondary); font-weight: 700; }
.profit-medium { color: var(--warning); font-weight: 700; }
.profit-low { color: var(--accent); font-weight: 700; }

.property-details {
    color: var(--gray-700);
}

.footer-logo {
    width: 30px;
    height: 30px;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-garments);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--garments-accent);
}

/* ===== PARTICLE BACKGROUND ===== */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background: var(--gradient-garments-accent);
    border-radius: 50%;
    animation: floatParticle 20s infinite linear;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .stat-card, .action-card, .manufacturing-stat {
        margin-bottom: 1rem;
    }
    
    .navbar {
        padding: 0.5rem 1rem !important;
    }
    
    .navbar-logo {
        height: 40px;
        width: 40px;
        margin-right: 8px;
        flex-shrink: 0;
    }
    
    .navbar-brand {
        font-size: 0.75rem !important;
        margin-right: 0.5rem !important;
        line-height: 1.2 !important;
        display: flex !important;
        align-items: center !important;
        padding: 0.5rem 0 !important;
        max-width: 68% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        flex-wrap: nowrap !important;
        overflow: visible !important;
    }
    
    .navbar-brand .d-flex {
        flex-shrink: 1;
        min-width: 0;
        overflow: visible;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
        flex-shrink: 0;
        border: 2px solid #6b46c1 !important;
        background: rgba(107, 70, 193, 0.1) !important;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%236b46c1' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
    
    .company-main {
        font-size: 1.2rem !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
    }
    
    .company-sub {
        font-size: 0.68rem !important;
        font-weight: 700 !important;
        font-family: 'Poppins', 'DM Sans', sans-serif !important;
        color: var(--text) !important;
        line-height: 1.35 !important;
        display: block;
        word-wrap: break-word;
        white-space: normal;
        overflow: visible !important;
        max-width: 100%;
    }
    
    .navbar-nav {
        margin-top: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .table-responsive {
        border-radius: 12px;
    }
    
    .product-image-thumb, .image-placeholder-small {
        width: 40px;
        height: 40px;
    }
    
    .status-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .product-image-large {
        width: 120px;
        height: 120px;
    }
    
    .image-placeholder {
        width: 120px;
        height: 120px;
    }
    
    .contact-header-bar .contact-info {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
        font-size: 0.75rem;
    }
    
    .contact-header-bar .text-end {
        text-align: left !important;
        margin-top: 0.5rem;
    }
    
    .contact-header-bar {
        font-size: 0.8rem;
    }
    
    .dashboard-header h1 {
        font-size: 1.5rem !important;
    }
    
    .dashboard-header p {
        font-size: 0.9rem !important;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .transparent-logo {
        width: 250px;
        height: 250px;
        opacity: 0.10;
    }
}

@media (max-width: 576px) {
    .navbar-logo {
        height: 35px;
        width: 35px;
        margin-right: 6px;
        flex-shrink: 0;
    }
    
    .navbar-brand {
        font-size: 0.6rem !important;
        max-width: 72% !important;
        padding: 0.25rem 0 !important;
        flex: 1;
        overflow: visible !important;
    }
    
    .company-main {
        font-size: 1rem !important;
    }
    
    .company-sub {
        font-size: 0.62rem !important;
        font-weight: 700 !important;
        font-family: 'Poppins', 'DM Sans', sans-serif !important;
        color: var(--text) !important;
        line-height: 1.4 !important;
        word-wrap: break-word;
        white-space: normal;
        max-width: 100%;
        overflow: visible !important;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
        border: 2px solid #6b46c1 !important;
        background: rgba(107, 70, 193, 0.1) !important;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%236b46c1' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
    
    .contact-header-bar {
        font-size: 0.7rem;
        padding: 0.5rem 0 !important;
    }
    
    .contact-header-bar span {
        font-size: 0.7rem;
        display: block;
        margin-bottom: 0.25rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    /* Force light background and dark text for printing */
    body {
        background: white !important;
        color: black !important;
    }
    
    .receipt-container {
        box-shadow: none;
        border: 1px solid #ddd;
        padding: 20px;
        background: white !important;
        color: black !important;
    }
    
    .no-print {
        display: none !important;
    }
    
    .contact-section {
        background: #f8f9fa !important;
        color: black !important;
    }
    
    .receipt-table {
        background: white !important;
        color: black !important;
    }
    
    .receipt-table th {
        background: #343a40 !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .receipt-table td {
        color: black !important;
        background: white !important;
    }
    
    /* Ensure all text elements are visible */
    * {
        color: black !important;
        text-shadow: none !important;
    }
    
    /* Preserve specific backgrounds and colors for table headers */
    th {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .text-white, .text-light {
        color: black !important;
    }
    
    /* Make badges visible in print */
    .badge {
        border: 1px solid #333 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ===== OUTLET BANNER STYLES ===== */
.landscape-banner-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.landscape-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(0.3px) brightness(0.7);
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4));
    padding: 2rem;
    color: white;
}

.banner-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
}

.banner-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Mobile responsive banner */
@media (max-width: 768px) {
    .landscape-banner-container {
        height: 300px;
    }
    
    .banner-overlay {
        padding: 1.5rem 1rem;
    }
    
    .banner-title {
        font-size: 1.5rem;
    }
    
    .banner-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .landscape-banner-container {
        height: 250px;
    }
    
    .banner-overlay {
        padding: 1rem 0.75rem;
    }
    
    .banner-title {
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
    }
    
    .banner-subtitle {
        font-size: 0.8rem;
    }
}

/* ===== OUTLET PRODUCT IMAGE STYLES ===== */
.product-image-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: var(--light-gray);
}

.product-image-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-image-main:hover {
    transform: scale(1.05);
}

.image-placeholder-large {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    color: var(--text-light);
}

.color-thumbnails {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    z-index: 10;
}

.color-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.color-thumbnail:hover {
    transform: scale(1.1);
    border-color: var(--primary);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.more-colors-badge {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    border: 2px solid white;
}

/* Mobile specific banner styles */
@media (max-width: 768px) {
    .landscape-banner-container {
        height: 250px;
        border-radius: 12px;
    }
    
    .banner-overlay {
        padding: 1rem;
    }
    
    .banner-title {
        font-size: 1.3rem;
        font-weight: 700;
        line-height: 1.3;
    }
    
    .banner-subtitle {
        font-size: 0.85rem;
        line-height: 1.3;
    }
}

@media (max-width: 576px) {
    .landscape-banner-container {
        height: 200px;
        border-radius: 10px;
    }

    .banner-overlay {
        padding: 0.75rem;
    }

    .banner-title {
        font-size: 1.1rem;
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 0.25rem;
    }

    .banner-subtitle {
        font-size: 0.75rem;
        line-height: 1.2;
    }
}

/* ===== STUNNING WHOLESALE HERO SECTION ===== */
.wholesale-hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.2);
    margin-bottom: 3rem;
}

.hero-background {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #7c3aed 100%);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 60% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.badge-shine {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 2px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-title {
    color: white;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.gradient-text {
    font-size: 3.5rem;
    background: linear-gradient(to right, #fff, #fde047, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s infinite;
}

.hero-subtitle {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
    letter-spacing: 1px;
}

.hero-tagline {
    color: white;
    font-size: 1.3rem;
    font-weight: 500;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-tagline .fa-star {
    animation: pulse 2s ease-in-out infinite;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem 2rem;
    border-radius: 16px;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-item i {
    font-size: 1.5rem;
    color: #fde047;
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-background {
        padding: 3rem 1.5rem;
    }
    
    .gradient-text {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .hero-features {
        gap: 1rem;
    }
    
    .feature-item {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-background {
        padding: 2rem 1rem;
    }
    
    .gradient-text {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }
    
    .feature-item {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .feature-item i {
        font-size: 1.2rem;
    }
}

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background: var(--glass-medium);
    border-radius: 30px;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    padding: 3px;
    box-shadow: var(--shadow-glass-sm);
    -webkit-backdrop-filter: var(--glass-backdrop);
    backdrop-filter: var(--glass-backdrop);
}

.theme-toggle:hover {
    box-shadow: var(--shadow-glass-md);
    border-color: var(--primary);
}

.theme-toggle-slider {
    position: absolute;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--primary), var(--accent-electric-blue));
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(106, 76, 255, 0.4);
}

.theme-toggle-slider i {
    color: white;
    font-size: 0.7rem;
}

body.day-mode .theme-toggle-slider {
    transform: translateX(30px);
    background: linear-gradient(135deg, #FFC93D, #FF9800);
    box-shadow: 0 2px 8px rgba(255, 201, 61, 0.4);
}

.theme-toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.theme-toggle-label:hover {
    background: var(--glass-medium);
}

.theme-toggle-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    display: none;
}

@media (min-width: 992px) {
    .theme-toggle-text {
        display: inline;
    }
}

/* Smooth and visible scrollbar styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
    border: 3px solid var(--bg-light);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Add Product Button Styling in Sales Modal */
#addProductBtn {
    padding: 10px 16px;
    font-weight: 600;
    border: 2px solid var(--primary);
    color: var(--primary);
    transition: all 0.3s ease;
    margin-top: 10px;
}

#addProductBtn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(106, 76, 255, 0.3);
}