:root {
    --bs-primary: #5547d7;
    --bs-primary-rgb: 85, 71, 215;
    --bligbus-navy: #0b1427;
    --bligbus-blue: #3b82f6;
    --bligbus-orange: #ff6b35;
}

body { font-family: "DM Sans", sans-serif; color: #14213d; }
h1, h2, h3, h4, h5, h6, .fw-bold { font-family: "Manrope", sans-serif; }
.min-w-0 { min-width: 0; }
.btn-primary { --bs-btn-bg: var(--bligbus-orange); --bs-btn-border-color: var(--bligbus-orange); --bs-btn-hover-bg: #ed5b28; --bs-btn-hover-border-color: #ed5b28; --bs-btn-active-bg: #dc5222; --bs-btn-active-border-color: #dc5222; }
.btn-outline-primary { --bs-btn-color: #5547d7; --bs-btn-border-color: #5547d7; --bs-btn-hover-bg: #5547d7; --bs-btn-hover-border-color: #5547d7; }
.form-control:focus, .form-select:focus { border-color: #9d96eb; box-shadow: 0 0 0 .25rem rgba(85, 71, 215, .14); }

.brand { display: flex; align-items: center; gap: .7rem; }
.brand-mark { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid rgba(147, 197, 253, .24); border-radius: .78rem; background: linear-gradient(145deg, #3b82f6, #1d4ed8); box-shadow: 0 .55rem 1.4rem rgba(0, 0, 0, .24), inset 0 1px rgba(255, 255, 255, .22); color: #fff; font: 800 1.18rem "Manrope", sans-serif; }
.brand strong { display: block; font: 800 1.2rem "Manrope", sans-serif; }
.brand small { display: block; color: #8992a9; font-size: .6rem; letter-spacing: .1rem; text-transform: uppercase; }
.brand-copy em { padding: .14rem .3rem; border: 1px solid rgba(147, 197, 253, .2); border-radius: .28rem; background: rgba(59, 130, 246, .1); color: #7db4ff; font: normal 700 .45rem "DM Sans", sans-serif; letter-spacing: .06rem; }
.eyebrow { display: block; color: var(--bligbus-orange); font-size: .58rem; font-weight: 700; letter-spacing: .12rem; margin-bottom: .3rem; }

.admin-sidebar { --bs-offcanvas-width: 272px; display: flex; flex-direction: column; width: 272px; height: 100vh; max-height: 100vh; min-height: 0; position: relative; overflow: hidden; background: radial-gradient(circle at 12% -5%, rgba(59, 130, 246, .2), transparent 27%), radial-gradient(circle at 100% 70%, rgba(37, 99, 235, .08), transparent 33%), linear-gradient(180deg, #0b1427 0%, #101a2f 48%, #0a1324 100%); border-right: 1px solid rgba(148, 163, 184, .1); box-shadow: .8rem 0 2.8rem rgba(15, 23, 42, .1); }
.admin-sidebar::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(148, 163, 184, .024) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .024) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(to bottom, #000, transparent 52%); pointer-events: none; }
.admin-sidebar::after { content: ""; position: absolute; width: 11rem; height: 11rem; right: -8rem; top: 31%; border: 1px solid rgba(96, 165, 250, .1); border-radius: 50%; box-shadow: 0 0 0 2.3rem rgba(59, 130, 246, .022); pointer-events: none; }
.admin-sidebar .offcanvas-header { flex: 0 0 auto; min-height: 91px; padding: 1.45rem 1.25rem; position: relative; z-index: 1; border-bottom: 1px solid rgba(148, 163, 184, .1); }
.admin-sidebar .offcanvas-body { position: relative; z-index: 1; flex: 1 1 0; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: rgba(96, 165, 250, .42) rgba(15, 23, 42, .3); }
.admin-sidebar .offcanvas-body::-webkit-scrollbar { width: .38rem; }
.admin-sidebar .offcanvas-body::-webkit-scrollbar-track { background: rgba(15, 23, 42, .3); }
.admin-sidebar .offcanvas-body::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(96, 165, 250, .42); }
.admin-sidebar .offcanvas-body::-webkit-scrollbar-thumb:hover { background: rgba(96, 165, 250, .62); }
.admin-sidebar .brand small { color: #667791; letter-spacing: .075rem; }
.sidebar-nav { flex: 0 0 auto; gap: .28rem; padding-right: .2rem; }
.admin-sidebar .nav-link { position: relative; min-height: 2.8rem; color: #8c9bb2; display: flex; align-items: center; gap: .72rem; border: 1px solid transparent; border-radius: .68rem; font-size: .82rem; font-weight: 600; padding: .38rem .45rem; text-align: left; transition: color .16s ease, background-color .16s ease, border-color .16s ease, transform .16s ease; }
.admin-sidebar .nav-link:hover { color: #dce8f9; background: rgba(148, 163, 184, .065); border-color: rgba(148, 163, 184, .06); }
.admin-sidebar .nav-link.active { color: #f8fbff; background: linear-gradient(90deg, rgba(37, 99, 235, .22), rgba(37, 99, 235, .08)); border-color: rgba(96, 165, 250, .18); box-shadow: inset 3px 0 #3b82f6, 0 .4rem 1.2rem rgba(0, 0, 0, .1); }
.admin-sidebar .nav-link.active .nav-symbol { color: #93c5fd; background: rgba(59, 130, 246, .18); border-color: rgba(96, 165, 250, .18); }
.admin-sidebar .nav-link.disabled { color: #536178; opacity: 1; }
.admin-sidebar button.nav-link { border: 1px solid transparent; background-color: transparent; }
.nav-symbol { width: 2rem; height: 2rem; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(148, 163, 184, .07); border-radius: .52rem; background: rgba(148, 163, 184, .045); color: #75869f; transition: color .16s ease, background-color .16s ease; }
.nav-svg { display: block; width: 1.05rem; height: 1.05rem; }
.settings-chevron { width: .82rem; height: .82rem; color: #586a84; transition: transform .2s ease; }
.admin-sidebar button[aria-expanded="true"] .settings-chevron { transform: rotate(90deg); }
.settings-submenu { position: relative; border-left: 1px solid rgba(96, 165, 250, .15); }
.admin-sidebar .settings-submenu .nav-link { min-height: 2rem; padding: .35rem .65rem .35rem 1rem; color: #71829b; font-size: .74rem; font-weight: 500; }
.admin-sidebar .settings-submenu .nav-link > span { position: absolute; left: -.26rem; width: .45rem; height: .45rem; border: 2px solid #17233a; border-radius: 50%; background: #52627b; }
.admin-sidebar .settings-submenu .nav-link.active { color: #bfdbfe; background: rgba(37, 99, 235, .08); border-color: transparent; box-shadow: none; }
.admin-sidebar .settings-submenu .nav-link.active > span { background: #60a5fa; box-shadow: 0 0 0 .18rem rgba(59, 130, 246, .12); }
.sidebar-label { color: #52627a; font-size: .52rem; font-weight: 700; letter-spacing: .11rem; }
.module-badge { padding: .16rem .34rem; border: 1px solid rgba(148, 163, 184, .08); border-radius: .28rem; background: rgba(148, 163, 184, .04); color: #4e5d73; font-size: .45rem; letter-spacing: .05rem; }
.sidebar-profile { flex: 0 0 auto; padding: .7rem; border: 1px solid rgba(148, 163, 184, .1); border-radius: .8rem; background: linear-gradient(135deg, rgba(30, 41, 59, .78), rgba(15, 23, 42, .58)); box-shadow: inset 0 1px rgba(255, 255, 255, .025), 0 .6rem 1.4rem rgba(0, 0, 0, .1); }
.sidebar-profile strong { color: #dce6f4; font-size: .74rem; font-weight: 600; }
.sidebar-profile small { color: #65758d; font-size: .61rem; margin-top: .14rem; }
.profile-avatar { position: relative; flex: 0 0 auto; }
.profile-avatar > span { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; border: 1px solid rgba(96, 165, 250, .2); border-radius: .62rem; background: linear-gradient(145deg, #234785, #1d3460); color: #dbeafe; font-weight: 700; }
.profile-avatar i { position: absolute; width: .52rem; height: .52rem; right: -.1rem; bottom: -.08rem; border: 2px solid #101a2f; border-radius: 50%; background: #34d399; }
.profile-action { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; padding: 0; border: 1px solid rgba(148, 163, 184, .1); border-radius: .52rem; background: rgba(148, 163, 184, .04); color: #71829b; transition: color .15s ease, background-color .15s ease; }
.profile-action:hover { color: #e2e8f0; background: rgba(148, 163, 184, .1); }
.profile-action .nav-svg { width: .9rem; height: .9rem; }
.admin-main { max-width: 100%; }
.admin-main > .navbar { min-height: 88px; }
.mobile-menu .nav-svg { width: 1.15rem; height: 1.15rem; }

.avatar { display: inline-grid; place-items: center; width: 2.15rem; height: 2.15rem; flex: 0 0 auto; border-radius: .65rem; background: var(--bligbus-orange); color: #fff; font-weight: 700; }
.avatar-soft { background: #ebeafe; color: #5547d7; }
.welcome-banner { background: linear-gradient(110deg, #222c68, #4246a5 70%, #5146c9); }
.welcome-banner .card-body::after { content: ""; position: absolute; width: 18rem; height: 18rem; border: 4rem solid rgba(255,255,255,.06); border-radius: 50%; right: -2rem; top: -9rem; }
.bus-art { z-index: 1; width: 10.5rem; height: 5.3rem; margin-right: 1.5rem; border: 2px solid rgba(255,255,255,.25); border-radius: 1.8rem .6rem .6rem .6rem; place-items: center; color: #aeb4ee; font: 800 1rem "Manrope", sans-serif; letter-spacing: .25rem; }
.bus-art i { position: absolute; bottom: -.75rem; color: #111831; letter-spacing: 5rem; padding-left: 5rem; font-style: normal; }
.stat-card { transition: transform .15s ease, box-shadow .15s ease; }
.stat-card:hover { transform: translateY(-2px); }
.stat-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex: 0 0 auto; border-radius: .7rem; font-weight: 800; }
.stat-indigo { background: #eeeefe; color: #5547d7; }
.stat-green { background: #e7f8f2; color: #17a673; }
.stat-amber { background: #fff3e2; color: #d77b10; }
.stat-blue { background: #e8f4ff; color: #2578ba; }
.table th { color: #7d8595; font-size: .65rem; letter-spacing: .05rem; text-transform: uppercase; white-space: nowrap; }
.table td { color: #4f5668; font-size: .78rem; padding-top: .85rem; padding-bottom: .85rem; }

.auth-visual { position: relative; overflow: hidden; background: linear-gradient(140deg, #131c34, #242d61 62%, #4c44a1); }
.auth-visual::before, .auth-visual::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; }
.auth-visual::before { width: 34rem; height: 34rem; left: -12rem; bottom: -14rem; }
.auth-visual::after { width: 22rem; height: 22rem; right: -11rem; top: 3rem; }
.auth-message { z-index: 1; max-width: 34rem; }
.auth-message h1 { letter-spacing: -.15rem; }
.route-rule { height: 1px; width: 5.5rem; background: #65708e; }
.auth-card { max-width: 430px; border-radius: 1rem; }
.otp-input { letter-spacing: .75rem; font-weight: 700; }
.status-option small { white-space: normal; opacity: .75; }
.user-form { max-width: 960px; }
.settings-form { max-width: 760px; }
.user-card { transition: transform .18s ease, box-shadow .18s ease; overflow: hidden; }
.user-card:hover { transform: translateY(-3px); box-shadow: 0 .8rem 2rem rgba(30, 64, 175, .12) !important; }
.user-card-avatar { width: 3rem; height: 3rem; border-radius: .9rem; background: linear-gradient(145deg, #e9edff, #dce4ff); color: #3155c6; font-size: 1.05rem; }
.user-meta > div { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.user-meta-icon { display: grid; place-items: center; width: 2rem; height: 2rem; flex: 0 0 auto; border-radius: .55rem; background: #f3f5fb; color: #6472a0; }
.user-meta span:last-child { min-width: 0; }
.user-meta small, .user-meta strong { display: block; }
.user-meta small { color: #9299a8; font-size: .66rem; margin-bottom: .08rem; }
.user-meta strong { color: #3f4758; font-size: .78rem; font-weight: 600; }
.recent-user-card { transition: border-color .15s ease, transform .15s ease; }
.recent-user-card:hover { transform: translateY(-2px); }
.setting-card-avatar, .vehicle-card-avatar { width: 3rem; height: 3rem; border-radius: .9rem; background: linear-gradient(145deg, #e8f1ff, #dbe8ff); color: #2b5cb8; font-size: 1rem; }
.vehicle-card-avatar { background: linear-gradient(145deg, #e9edff, #dfe3ff); color: #5145bd; }
.setting-card-label { display: block; color: #8c95a7; font-size: .57rem; font-weight: 700; letter-spacing: .07rem; text-transform: uppercase; }
.setting-directory-card, .vehicle-directory-card { border-top: 2px solid transparent !important; }
.setting-directory-card:hover { border-top-color: #3b82f6 !important; }
.vehicle-directory-card:hover { border-top-color: #6366f1 !important; }
.vendor-card { border-top: 2px solid transparent !important; }
.vendor-card:hover { border-top-color: #2563eb !important; }
.vendor-card-avatar { width: 3rem; height: 3rem; border-radius: .9rem; background: linear-gradient(145deg, #e1edff, #d5e4ff); color: #2453a6; font-size: 1rem; }
.customer-card { border-top: 2px solid transparent !important; }
.customer-card:hover { border-top-color: #4f46e5 !important; }
.customer-address { line-height: 1.45; white-space: normal; }
.booking-card { border-top: 2px solid transparent !important; }
.booking-card:hover { border-top-color: #0ea5e9 !important; }
.booking-status { background: #fef3c7; color: #92400e; }
.booking-status-confirmed { background: #dcfce7; color: #166534; }
.booking-status-cancelled { background: #fee2e2; color: #991b1b; }
.booking-customer { border: 1px solid #e6eaf2; border-radius: .8rem; background: linear-gradient(120deg, #f8fbff, #f4f7ff); }
.booking-availability { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid #dbe5f3; border-radius: .8rem; background: #f8fbff; }
.booking-availability > div { padding: .9rem 1rem; border-right: 1px solid #dbe5f3; }
.booking-availability > div:last-child { border-right: 0; background: #ecfdf5; }
.booking-availability small, .booking-availability strong { display: block; }
.booking-availability small { color: #7a8498; font-size: .62rem; font-weight: 700; text-transform: uppercase; }
.booking-availability strong { color: #26324b; font: 800 1.25rem "Manrope", sans-serif; }
.driver-card { border-top: 2px solid transparent !important; }
.driver-card:hover { border-top-color: #10b981 !important; }
.driver-card-avatar { width: 3rem; height: 3rem; border-radius: .9rem; background: linear-gradient(145deg, #dcfce7, #d1fae5); color: #047857; font-size: 1rem; }
.route-card { border-top: 2px solid transparent !important; }
.route-card:hover { border-top-color: #8b5cf6 !important; }
.route-card-avatar { width: 3rem; height: 3rem; border-radius: .9rem; background: linear-gradient(145deg, #ede9fe, #ddd6fe); color: #6d28d9; }
.route-path { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .65rem; align-items: center; padding: .75rem; border: 1px dashed #d9d7eb; border-radius: .7rem; background: #faf9ff; color: #4c4965; font-size: .72rem; }
.route-path strong:last-child { text-align: right; }
.route-path span { color: #8b5cf6; font-size: 1rem; }
.route-stop-card { border-left: 3px solid #8b5cf6 !important; }
.trip-card { border-top: 2px solid transparent !important; }
.trip-card:hover { border-top-color: #f97316 !important; }
.trip-date { display: grid; place-items: center; flex: 0 0 3.25rem; min-height: 3.25rem; border-radius: .85rem; background: linear-gradient(145deg, #fff1e8, #ffdfcc); color: #c2410c; line-height: 1; }
.trip-date strong { font: 800 1.2rem "Manrope", sans-serif; }
.trip-date small { font-size: .55rem; font-weight: 800; letter-spacing: .08rem; }
.trip-status { background: #eef2ff; color: #4f46e5; }
.trip-status-boarding, .trip-status-started, .trip-status-in_transit { background: #e0f2fe; color: #0369a1; }
.trip-status-delayed { background: #fff7ed; color: #c2410c; }
.trip-status-completed { background: #ecfdf5; color: #047857; }
.trip-status-cancelled { background: #fef2f2; color: #b91c1c; }
.commission-priority { overflow: hidden; border-left: 3px solid #5547d7 !important; background: linear-gradient(110deg, #fff, #f5f4ff); }
.priority-step { display: inline-grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: .42rem; background: #5547d7; color: #fff; font-size: .68rem; }
.commission-card { border-top: 2px solid transparent !important; }
.commission-card:hover { border-top-color: #ff6b35 !important; }
.commission-card-avatar { width: 3rem; height: 3rem; border-radius: .9rem; background: linear-gradient(145deg, #fff0e9, #ffe0d2); color: #d94f1f; font-size: 1.05rem; }
.commission-value-panel { padding: .8rem 1rem; border: 1px solid #ebeaf4; border-radius: .7rem; background: #f8f8fc; }
.commission-value-panel small, .commission-value-panel strong { display: block; }
.commission-value-panel small, .global-target-note small { color: #9299a8; font-size: .58rem; font-weight: 700; letter-spacing: .08rem; }
.commission-value-panel strong { color: #242b4d; font: 800 1.3rem "Manrope", sans-serif; }
.global-target-note { display: flex; flex-direction: column; justify-content: center; padding: .75rem 1rem; border: 1px dashed #b8b4e8; border-radius: .6rem; background: #f7f6ff; }
.global-target-note strong { color: #4c4884; font-size: .78rem; }
.commission-context-card { max-width: 100%; border-top: 2px solid #5547d7 !important; }
.vendor-vehicle-card { border-left: 3px solid #dfe5f3 !important; }
.vendor-vehicle-card + .commission-context-card { margin-top: .75rem !important; border-top-color: #ff6b35 !important; }
.vendor-vehicle-thumb { width: 3.5rem; height: 3.5rem; flex: 0 0 auto; border-radius: .8rem; object-fit: cover; background: #eef1f7; }
.vendor-vehicle-form { max-width: 1100px; }
.vehicle-image-tile { overflow: hidden; padding: .4rem; border: 1px solid #e4e7ef; border-radius: .7rem; background: #f8f9fc; }
.vehicle-image-tile img { display: block; width: 100%; aspect-ratio: 4 / 3; margin-bottom: .45rem; border-radius: .45rem; object-fit: cover; }
.amenity-card-avatar { display: inline-grid; place-items: center; flex: 0 0 2.75rem; width: 2.75rem; height: 2.75rem; border-radius: .85rem; color: #fff; font-weight: 800; background: linear-gradient(145deg, #3155c6, #6d5ce7); box-shadow: 0 .45rem 1rem rgba(49, 85, 198, .22); }
.amenity-option label { cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.amenity-option label:hover { border-color: #8da2e8 !important; box-shadow: 0 .35rem .9rem rgba(49, 85, 198, .1); transform: translateY(-1px); }
.amenity-option label:has(input:checked) { border-color: #4f6ed7 !important; background: #f4f6ff !important; box-shadow: 0 0 0 .18rem rgba(79, 110, 215, .1); }
.sticky-form-actions { position: sticky; bottom: 1rem; z-index: 10; border: 1px solid rgba(222, 226, 235, .9); border-radius: .8rem; background: rgba(255, 255, 255, .94); box-shadow: 0 .8rem 2rem rgba(29, 41, 75, .12); backdrop-filter: blur(10px); }
.location-tabs { display: inline-flex; padding: .3rem; border: 1px solid #e5e7ef; border-radius: .75rem; background: #fff; box-shadow: 0 .25rem .8rem rgba(35, 45, 80, .05); }
.location-tabs .nav-link { color: #687089; font-size: .78rem; font-weight: 600; }
.location-tabs .nav-link.active { background: #5547d7; color: #fff; }
.status-dot { width: .55rem; height: .55rem; flex: 0 0 auto; margin-top: .25rem; border-radius: 50%; background: #cbd1dc; }
.status-dot.active { background: #22c55e; box-shadow: 0 0 0 .2rem rgba(34, 197, 94, .12); }
.amenity-card { border-top: 2px solid transparent !important; }
.amenity-card:hover { border-top-color: #14b8a6 !important; }
.amenity-card-avatar { width: 3rem; height: 3rem; border-radius: .9rem; background: linear-gradient(145deg, #dcfdf7, #ccfbf1); color: #0f766e; }
.amenity-option { display: block; height: 100%; padding: .8rem; border: 1px solid #e5e7ef; border-radius: .65rem; background: #fff; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.amenity-option:has(input:checked) { border-color: #6d60db; background: #f5f3ff; }
.amenity-option strong { font-size: .78rem; }
.amenity-option small { display: block; color: #8a92a3; font-size: .65rem; }
.seat-designer-shell { overflow: hidden; border: 1px solid #dbe3ef; border-radius: .9rem; background: #f8fafc; }
.seat-designer-toolbar { display: flex; flex-wrap: wrap; gap: .45rem; padding: .8rem; border-bottom: 1px solid #dbe3ef; background: #fff; }
.toolbar-divider { width: 1px; margin: 0 .2rem; background: #dbe3ef; }
.seat-designer-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 190px; min-height: 360px; }
.seat-stage-scroll { overflow: auto; padding: .65rem; }
.seat-inspector { padding: 1rem; border-left: 1px solid #dbe3ef; background: #fff; }
.seat-layout-legend { display: flex; flex-wrap: wrap; gap: 1rem; padding: .75rem 1rem; border-top: 1px solid #dbe3ef; background: #fff; color: #64748b; font-size: .7rem; }
.seat-layout-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.seat-layout-legend i { width: .72rem; height: .72rem; border-radius: .2rem; }
.legend-available { background: #4f46e5; }.legend-women { background: #db2777; }.legend-crew { background: #d97706; }.legend-booked { background: #64748b; }
.booking-seat-map { overflow: auto; padding: .75rem; border: 1px solid #dbe3ef; border-radius: .8rem; background: #f8fafc; }
@media (max-width: 767.98px) { .seat-designer-workspace { grid-template-columns: 1fr; }.seat-inspector { border-top: 1px solid #dbe3ef; border-left: 0; } }

@media (min-width: 992px) {
    .admin-sidebar { position: sticky; top: 0; flex: 0 0 272px; }
}

@media (max-width: 991.98px) {
    .admin-main > .navbar { min-height: 74px; }
}

@media (max-width: 575.98px) {
    .booking-availability { grid-template-columns: 1fr; }
    .booking-availability > div { border-right: 0; border-bottom: 1px solid #dbe5f3; }
    .booking-availability > div:last-child { border-bottom: 0; }
}
