/* TowBook Web Dashboard */
body { background: #f4f6f9; font-family: 'Segoe UI', system-ui, sans-serif; }

/* Sidebar */
#sidebar { position: fixed; top: 0; left: 0; z-index: 100; transition: transform 0.3s; }
#sidebar .nav-link { padding: 10px 16px; border-radius: 6px; margin: 2px 0; font-size: 14px; }
#sidebar .nav-link:hover { background: rgba(255,255,255,0.1); }
#sidebar .nav-link i { width: 20px; margin-right: 8px; }
#wrapper > .flex-grow-1 { margin-left: 250px; }

/* Stat cards */
.stat-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); transition: transform 0.2s; }
.stat-card:hover { transform: translateY(-2px); }
.stat-card .icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.stat-card .value { font-size: 28px; font-weight: 700; }
.stat-card .label { color: #6c757d; font-size: 13px; }

/* Status badges */
.badge-pending { background: #fff3cd; color: #856404; }
.badge-dispatched { background: #cce5ff; color: #004085; }
.badge-en_route { background: #e8daef; color: #6c3483; }
.badge-on_scene { background: #d6eaf8; color: #1b4f72; }
.badge-hooked, .badge-in_transit { background: #d1f2eb; color: #0e6251; }
.badge-delivered { background: #d4efdf; color: #1e8449; }
.badge-completed { background: #e5e7eb; color: #4b5563; }
.badge-canceled { background: #fadbd8; color: #922b21; }
.badge-draft { background: #e5e7eb; color: #4b5563; }
.badge-sent { background: #cce5ff; color: #004085; }
.badge-paid { background: #d4efdf; color: #1e8449; }
.badge-partial { background: #fff3cd; color: #856404; }
.badge-overdue { background: #fadbd8; color: #922b21; }
.badge-stored { background: #fff3cd; color: #856404; }
.badge-released { background: #d4efdf; color: #1e8449; }
.badge-pass { background: #d4efdf; color: #1e8449; }
.badge-fail { background: #fadbd8; color: #922b21; }
.badge-needs_attention { background: #fff3cd; color: #856404; }
.status-badge { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }

/* Tables */
.table th { font-size: 13px; text-transform: uppercase; color: #6c757d; border-bottom-width: 1px; }
.table td { vertical-align: middle; }
.table-hover tbody tr:hover { background: #f8f9fa; }

/* Cards */
.content-card { background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }

/* Priority */
.priority-urgent { color: #dc3545; font-weight: 600; }
.priority-high { color: #fd7e14; font-weight: 600; }
.priority-normal { color: #6c757d; }
.priority-low { color: #adb5bd; }

/* Login page */
.login-container { max-width: 420px; margin: 80px auto; }
.login-card { background: #fff; border-radius: 16px; padding: 40px; box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.login-logo { font-size: 48px; color: #0d6efd; }

/* Quick action button */
.quick-action { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border-radius: 10px; text-decoration: none; color: #212529; box-shadow: 0 1px 4px rgba(0,0,0,0.04); transition: all 0.2s; }
.quick-action:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.08); color: #212529; }

/* Map */
#driver-map { height: 600px; border-radius: 12px; }

/* Responsive */
@media (max-width: 768px) {
    #sidebar { transform: translateX(-100%); }
    #sidebar.show { transform: translateX(0); }
    #wrapper > .flex-grow-1 { margin-left: 0; }
}
