/* ─── UmaCabs Admin Panel CSS ─────────────────── */
:root {
  --admin-sidebar-w: 250px;
  --admin-topbar-h: 60px;
}
.admin-body { background: #f0f4f8; margin: 0; overflow-x: hidden; }
.admin-layout { display: flex; min-height: 100vh; }

/* SIDEBAR */
.admin-sidebar { width: var(--admin-sidebar-w); background: linear-gradient(180deg, #0D2137 0%, #1a3a5c 100%); position: fixed; top: 0; left: 0; height: 100vh; z-index: 200; display: flex; flex-direction: column; transition: width .3s, transform .3s; overflow: hidden; }
.admin-sidebar.collapsed { width: 60px; }
.sidebar-brand { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,.08); min-height: 60px; }
.brand-icon { font-size: 1.3rem; color: #FDB813; flex-shrink: 0; }
.brand-text { color: #fff; font-weight: 800; font-size: 1.1rem; white-space: nowrap; overflow: hidden; }
.sidebar-label-badge { white-space: nowrap; overflow: hidden; transition: opacity .2s; }
.admin-sidebar.collapsed .brand-text, .admin-sidebar.collapsed .sidebar-label-badge { opacity: 0; width: 0; overflow: hidden; }
.sidebar-nav { padding: .75rem .5rem; flex: 1; overflow-y: auto; overflow-x: hidden; }
.nav-section-label { font-size: .62rem; text-transform: uppercase; letter-spacing: 1.2px; color: rgba(255,255,255,.35); font-weight: 700; padding: .75rem .75rem .3rem; white-space: nowrap; overflow: hidden; }
.admin-sidebar.collapsed .nav-section-label { opacity: 0; }
.sidebar-nav .nav-item { display: flex; align-items: center; gap: .75rem; padding: .65rem .9rem; border-radius: 10px; color: rgba(255,255,255,.7); text-decoration: none; font-size: .87rem; font-weight: 600; transition: all .2s; position: relative; white-space: nowrap; margin-bottom: 2px; }
.sidebar-nav .nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar-nav .nav-item.active { background: #FDB813; color: #0D2137; }
.sidebar-nav .nav-item.active i { color: #0D2137; }
.sidebar-nav .nav-item i { font-size: 1rem; flex-shrink: 0; width: 18px; text-align: center; }
.sidebar-nav .nav-item span { overflow: hidden; transition: opacity .2s; }
.admin-sidebar.collapsed .nav-item span { opacity: 0; width: 0; }
.nav-badge { background: #ef4444; color: #fff; font-size: .65rem; font-weight: 700; padding: .15rem .45rem; border-radius: 50px; margin-left: auto; }
.sidebar-nav .nav-item.danger:hover { background: rgba(239,68,68,.15); color: #ef4444; }

/* MAIN */
.admin-main { margin-left: var(--admin-sidebar-w); flex: 1; display: flex; flex-direction: column; min-width: 0; transition: margin-left .3s; }
.admin-main.expanded { margin-left: 60px; }

/* TOPBAR */
.admin-topbar { height: var(--admin-topbar-h); background: #fff; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; padding: 0 1.25rem; gap: 1rem; position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 8px rgba(0,0,0,.06); }
.sidebar-toggle-btn { background: none; border: 1px solid #e2e8f0; border-radius: 8px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #64748b; transition: all .2s; flex-shrink: 0; }
.sidebar-toggle-btn:hover { background: #f1f5f9; }
.topbar-title { font-weight: 700; font-size: 1rem; color: #0D2137; flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: .5rem; }

/* CONTENT */
.admin-content { padding: 1.5rem; flex: 1; }

/* STAT CARDS */
.stat-card { background: #fff; border-radius: 14px; padding: 1.1rem 1.25rem; display: flex; align-items: center; gap: 1rem; box-shadow: 0 2px 12px rgba(0,0,0,.06); border: 1px solid #f1f5f9; transition: box-shadow .2s; }
.stat-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); }
.stat-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff; flex-shrink: 0; }
.stat-icon.bg-teal { background: #0d9488; }
.stat-icon.bg-purple { background: #7c3aed; }
.stat-icon.bg-orange { background: #ea580c; }
.stat-value { font-size: 1.4rem; font-weight: 800; color: #0D2137; line-height: 1; }
.stat-label { font-size: .75rem; color: #64748b; font-weight: 600; margin-top: .2rem; }

/* ADMIN CARD */
.admin-card { background: #fff; border-radius: 14px; box-shadow: 0 2px 12px rgba(0,0,0,.06); border: 1px solid #f1f5f9; overflow: hidden; }
.admin-card-header { padding: .85rem 1.25rem; background: #f8fafc; border-bottom: 1px solid #e2e8f0; font-weight: 700; font-size: .9rem; color: #0D2137; display: flex; align-items: center; justify-content: space-between; }
.admin-card-body { padding: 1.25rem; }

/* TABLE */
.admin-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.admin-table thead tr { border-bottom: 2px solid #e2e8f0; }
.admin-table th { padding: .75rem 1rem; font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; color: #64748b; background: #f8fafc; white-space: nowrap; }
.admin-table td { padding: .75rem 1rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.admin-table tbody tr:hover { background: #fafbff; }
.admin-table tbody tr:last-child td { border-bottom: none; }

/* DRIVER QUICK LIST */
.driver-quick-list { padding: .5rem; }
.driver-quick-item { display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem; border-radius: 10px; transition: background .15s; }
.driver-quick-item:hover { background: #f8fafc; }
.dqi-avatar { width: 38px; height: 38px; background: #0D2137; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #FDB813; font-size: .85rem; flex-shrink: 0; }
.dqi-name { font-weight: 700; font-size: .87rem; }
.dqi-meta { font-size: .72rem; color: #64748b; }
.quick-stat { display: flex; justify-content: space-between; align-items: center; padding: .5rem 0; border-bottom: 1px solid #f1f5f9; font-size: .85rem; }
.quick-stat:last-child { border-bottom: none; }

/* CAB THUMB */
.cab-thumb-icon { width: 40px; height: 32px; background: #0D2137; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #FDB813; font-size: .9rem; }

/* MOBILE */
@media (max-width: 991px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar:not(.collapsed) { transform: translateX(0); }
  .admin-main { margin-left: 0 !important; }
  .admin-content { padding: 1rem; }
}
@media (max-width: 576px) {
  .admin-topbar .topbar-title { font-size: .85rem; }
}
