@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');

body { background-color: #f6f8fd; color: #1e293b; font-family: 'Prompt', sans-serif; min-height: 100vh; margin: 0; overflow-x: hidden; position: relative; }
.bg-grid { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -2; pointer-events: none; background-size: 40px 40px; background-image: linear-gradient(to right, rgba(99, 102, 241, 0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(99, 102, 241, 0.05) 1px, transparent 1px); }
.bg-glow-1 { position: fixed; top: -10%; left: -5%; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(167, 139, 250, 0.25) 0%, transparent 60%); z-index: -1; filter: blur(60px); border-radius: 50%; pointer-events: none; }
.bg-glow-2 { position: fixed; top: 30%; right: -10%; width: 55vw; height: 55vw; background: radial-gradient(circle, rgba(96, 165, 250, 0.25) 0%, transparent 60%); z-index: -1; filter: blur(60px); border-radius: 50%; pointer-events: none; }

.app-container { display: flex; min-height: 100vh; width: 100%; position: relative; z-index: 1;}
.sidebar { width: 280px; min-width: 280px; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px); position: fixed; top: 0; bottom: 0; left: 0; z-index: 100; overflow-y: auto; border-right: 1px solid rgba(255,255,255,0.9); box-shadow: 4px 0 20px rgba(0,0,0,0.02); }
.sidebar-logo { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.5px; background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.sidebar .nav-link { color: #64748b; border-radius: 12px; margin-bottom: 8px; font-weight: 500; transition: all 0.3s ease; padding: 0.85rem 1.2rem; }
.sidebar .nav-link:hover { background-color: rgba(99, 102, 241, 0.08); color: #4f46e5; transform: translateX(5px); }
.sidebar .nav-link.active { background: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%); color: #ffffff !important; box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3); }

.main-content { margin-left: 280px; flex-grow: 1; padding: 3rem 4rem; max-width: 1600px; }

/* 🌟 Animations */
.animate-fade-up { animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* 🌟 Dashboard Stat Cards */
.stat-card { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border-radius: 20px; padding: 1.5rem; display: flex; align-items: center; box-shadow: 0 10px 30px rgba(111, 114, 185, 0.06); border: 1px solid rgba(255,255,255,1); transition: transform 0.3s ease; }
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(99, 102, 241, 0.15); }
.stat-icon { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-right: 1.2rem; }

.card-custom { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(15px); border: 1px solid rgba(255,255,255,1); border-radius: 20px; box-shadow: 0 10px 40px rgba(111, 114, 185, 0.06); transition: transform 0.3s ease; }
.card-custom:hover { transform: translateY(-3px); box-shadow: 0 15px 45px rgba(111, 114, 185, 0.1); }

/* 🌟 Buttons */
.btn-primary { background: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%); border: none; border-radius: 12px; font-weight: 600; padding: 0.7rem 1.8rem; box-shadow: 0 6px 15px rgba(99, 102, 241, 0.3); transition: all 0.3s ease; color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4); color: #fff; }
.btn-success { background: linear-gradient(135deg, #10b981 0%, #059669 100%); border-radius: 12px; border:none; font-weight: 600; color: #fff;}
.btn-warning { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); border-radius: 12px; border:none; font-weight: 600; color: #fff; }
.btn-danger { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); border-radius: 12px; border:none; font-weight: 600; color: #fff; }

.form-control, .form-select, .input-group-text { background-color: #f8fafc; border: 1px solid #e2e8f0; color: #1e293b; border-radius: 12px; padding: 0.75rem 1.2rem; font-weight: 400; }
.form-control:focus, .form-select:focus { border-color: #8b5cf6; box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15); background-color: #ffffff; }

/* Select2 Multiple Tags Fix */
.select2-container--bootstrap-5 .select2-selection--multiple { background-color: #f8fafc !important; border: 1px solid #e2e8f0 !important; border-radius: 12px !important; min-height: 48px; }
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice { background: #e0e7ff; color: #4f46e5; border: 1px solid #c7d2fe; border-radius: 8px; font-weight: 600; padding: 4px 10px; margin-top: 6px; }

.badge-soft-primary { background-color: #eef2ff; color: #4f46e5; padding: 0.6em 1em; border-radius: 8px; font-weight: 600; border: 1px solid #e0e7ff;}
.badge-soft-info { background-color: #e0f2fe; color: #0284c7; padding: 0.6em 1em; border-radius: 8px; font-weight: 600; border: 1px solid #bae6fd;}
.badge-soft-success { background-color: #dcfce7; color: #16a34a; padding: 0.6em 1em; border-radius: 8px; font-weight: 600; border: 1px solid #bbf7d0;}
.badge-soft-warning { background-color: #fef3c7; color: #d97706; padding: 0.6em 1em; border-radius: 8px; font-weight: 600; border: 1px solid #fde68a;}
.badge-soft-danger { background-color: #fee2e2; color: #dc2626; padding: 0.6em 1em; border-radius: 8px; font-weight: 600; border: 1px solid #fecaca;}

.text-gradient { background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-primary-custom { color: #4f46e5 !important; }

.custom-modal-backdrop { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(8px); display: none; justify-content: center; align-items: center; z-index: 2000; }
.custom-modal-dialog { background: #ffffff; border-radius: 24px; max-width: 550px; width: 90%; padding: 35px; box-shadow: 0 25px 50px rgba(0,0,0,0.1); }
@media (max-width: 992px) { .sidebar { position: relative; width: 100%; min-width: 100%; height: auto; } .main-content { margin-left: 0; width: 100%; padding: 1.5rem; } .app-container { flex-direction: column; } }

/* Delivery Photo Timestamp Overlay */
.delivery-photo-container { position: relative; display: inline-block; border-radius: 12px; overflow: hidden; border: 2px solid #e2e8f0; }
.delivery-timestamp-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.7); color: #fff; padding: 8px; font-size: 0.8rem; text-align: center; font-weight: 600; backdrop-filter: blur(4px); }