/* ============================================================
   B LINE ADMIN PANEL — style.css
   ============================================================ */

:root {
    --blue-primary: #35c2ff;
    --blue-hover:   #2a96c4;
    --blue-light:   #EFF9FF;
    --sidebar-w:    220px;
    --topbar-h:     64px;
    --bg-page:      #F4F6FA;
    --card-bg:      #FFFFFF;
    --text-main:    #1A1D23;
    --text-muted:   #6B7280;
    --border:       #E5E7EB;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-page);
    color: var(--text-main);
}


/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
    width: var(--sidebar-w);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    z-index: 100;
}

.sidebar-logo {
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
}

.logo-icon {
    width: 36px; height: 36px;
    background: var(--blue-primary);
    border-radius: 8px;
    color: white;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}

.logo-text .name { font-weight: 700; font-size: 14px; line-height: 1.2; }
.logo-text .sub  { font-size: 10px; color: var(--text-muted); letter-spacing: .5px; }

.sidebar-nav {
    padding: 16px 12px;
    flex: 1;
    overflow-y: auto;
}

.nav-item {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: all .18s;
    margin-bottom: 2px;
    cursor: pointer;
}

.nav-item:hover {
    background: #F0F9FF;
    color: var(--blue-primary);
}

.nav-item.active {
    background: var(--blue-primary);
    color: #fff;
}

.nav-item i { font-size: 16px; width: 18px; text-align: center; }

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.logout-btn {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    transition: all .18s;
    margin-bottom: 12px;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
}

.logout-btn:hover { background: #FEF2F2; color: #EF4444; }

.avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--blue-primary);
    color: white;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.admin-info .admin-name  { font-size: 13px; font-weight: 600; }
.admin-info .admin-email { font-size: 11px; color: var(--text-muted); }

.main-wrap {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
}


/* ============================================================
   TOPBAR
   ============================================================ */

.topbar {
    height: var(--topbar-h);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0;
    z-index: 90;
    gap: 16px;
}

.topbar-title .page-title { font-size: 20px; font-weight: 700; line-height: 1.2; }
.topbar-title .page-sub   { font-size: 12px; color: var(--text-muted); }

.search-box {
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 14px;
    gap: 8px;
    flex: 1;
    max-width: 320px;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    color: var(--text-main);
    width: 100%;
}

.search-box input::placeholder { color: var(--text-muted); }
.search-box i { color: var(--text-muted); font-size: 14px; }

.notif-btn {
    position: relative;
    width: 38px; height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 16px;
}

.notif-dot {
    position: absolute;
    top: 7px; right: 7px;
    width: 8px; height: 8px;
    background: #EF4444;
    border-radius: 50%;
    border: 2px solid #fff;
}

.date-badge {
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
}


/* ============================================================
   HERO BANNER
   ============================================================ */

.hero-banner {
    border-radius: 16px;
    overflow: hidden;
    background: #1A1D23;
    position: relative;
    min-height: 160px;
    margin-bottom: 24px;
}

.hero-banner-img {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?w=900&auto=format&fit=crop&q=60') center/cover no-repeat;
    opacity: .35;
}

.hero-banner-content {
    position: relative;
    z-index: 2;
    padding: 28px 32px;
    flex: 1;
}

.hero-badge {
    display: inline-block;
    background: var(--blue-primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.hero-banner h2 { color: #fff; font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.hero-banner p  { color: rgba(255,255,255,.65); font-size: 13px; max-width: 420px; line-height: 1.5; }

.hero-btn {
    background: var(--blue-primary);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.18s ease;
}

.hero-btn:hover {
    background: var(--blue-hover);
    transform: translateY(-1px);
}


/* ============================================================
   CHART SECTION
   ============================================================ */

.chart-row { display: grid; grid-template-columns: 1fr 320px; gap: 20px; margin-bottom: 24px; }

.chart-card {
    background: var(--card-bg);
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: 20px 24px;
}

.chart-card-header { margin-bottom: 4px; }
.chart-card-title  { font-size: 15px; font-weight: 700; }
.chart-card-sub    { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }

.period-tabs { display: flex; gap: 4px; }

.period-tab {
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text-muted);
    transition: all .18s;
}

.period-tab.active { background: var(--blue-primary); color: white; }
.period-tab:hover:not(.active) { background: var(--bg-page); }

/* Donut chart */
.donut-wrap {
    position: relative;
    margin: 8px 0 16px;
}

.donut-center {
    position: absolute;
    text-align: center;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.donut-center .dval { font-size: 28px; font-weight: 700; line-height: 1; }
.donut-center .dlbl { font-size: 11px; color: var(--text-muted); }

.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.legend-pct { font-weight: 700; font-size: 13px; }


/* ============================================================
   PAGE CONTENT
   ============================================================ */

.page-content { padding: 24px 28px; }


/* ============================================================
   SHARED — Status pills, view-all, action buttons
   ============================================================ */

.status-badge, .status-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 20px;
    font-size: 12px; font-weight: 600; white-space: nowrap;
}

.status-pill .dot, .act-dot {
    width: 6px; height: 6px;
    border-radius: 50%; background: currentColor;
}

.s-active     { background: #DCFCE7; color: #16A34A; }
.s-completed  { background: #dfd9ff; color: #7C3AED; }
.s-offline    { background: #F3F4F6; color: #6B7280; }
.s-verified   { background: #F0FDF4; color: #15803D; }
.s-pending    { background: #FEF3C7; color: #D97706; }
.s-inprogress { background: #DBEAFE; color: #2563EB; }
.s-cancelled  { background: #FEE2E2; color: #DC2626; }

.view-all {
    color: var(--blue-primary);
    font-size: 13px; font-weight: 600;
    text-decoration: none;
}
.view-all:hover { color: var(--blue-hover); }

.action-btn {
    border: none; background: none;
    color: var(--text-muted); font-size: 18px;
    cursor: pointer; padding: 2px 6px;
    border-radius: 6px; transition: background .15s;
}
.action-btn:hover { background: var(--bg-page); }

.act-icon {
    width: 32px; height: 32px; border-radius: 8px;
    font-size: 15px; flex-shrink: 0;
}

.act-name { font-weight: 600; }


/* ============================================================
   STAT CARDS
   ============================================================ */

.stat-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.stat-value { font-size: 24px; font-weight: 700; line-height: 1.2; margin-bottom: 4px; }
.stat-sub   { font-size: 12px; color: var(--text-muted); }
.badge-up   { background: #DCFCE7 !important; color: #16A34A !important; }
.badge-down { background: #FEE2E2 !important; color: #DC2626 !important; }


/* ============================================================
   ORDERS — Toolbar, table, pagination
   ============================================================ */

.btn-create {
    background: var(--blue-primary);
    color: #fff; border: none;
    border-radius: 10px; padding: 10px 20px;
    font-size: 13px; font-weight: 700;
    cursor: pointer; transition: all .18s; white-space: nowrap;
    box-shadow: 0 4px 14px rgba(53,194,255,.35);
}
.btn-create:hover {
    background: var(--blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(53,194,255,.45);
}

.icon-btn {
    width: 38px; height: 38px; border-radius: 10px;
    border: 1px solid var(--border); background: #fff;
    font-size: 16px; color: var(--text-muted);
    transition: all .18s; flex-shrink: 0;
    cursor: pointer;
}
.icon-btn:hover { background: var(--bg-page); color: var(--text-main); }

.filter-tabs-bar {
    background: #fff; border: 1px solid var(--border);
    border-radius: 12px; padding: 5px; gap: 4px;
}
.filter-tab {
    padding: 8px 20px; border-radius: 8px;
    font-size: 13px; font-weight: 600;
    cursor: pointer; border: none; background: transparent;
    color: var(--text-muted); transition: all .18s; white-space: nowrap;
}
.filter-tab.active {
    background: var(--blue-primary); color: #fff;
    box-shadow: 0 3px 10px rgba(53,194,255,.3);
}
.filter-tab:hover:not(.active) { background: var(--bg-page); color: var(--text-main); }

.orders-search {
    background: #fff; border: 1px solid var(--border);
    border-radius: 10px; padding: 9px 14px; gap: 8px; width: 280px;
}
.orders-search input {
    border: none; background: transparent;
    outline: none; font-size: 13px; color: var(--text-main); width: 100%;
}
.orders-search input::placeholder { color: var(--text-muted); }
.orders-search i { color: var(--text-muted); font-size: 14px; flex-shrink: 0; }

.ord-id { font-weight: 700; color: var(--blue-primary); font-size: 13px; white-space: nowrap; }

.cust-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    font-size: 13px; font-weight: 700; flex-shrink: 0; color: #fff;
}
.cust-name  { font-weight: 600; font-size: 13px; line-height: 1.3; }
.cust-email { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

.ws-cell i { color: var(--text-muted); font-size: 13px; }
.veh-model { font-weight: 600; font-size: 13px; }
.veh-plate { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.date-cell { font-size: 12px; color: var(--text-muted); white-space: nowrap; line-height: 1.6; }
.price-cell { font-weight: 700; font-size: 13px; white-space: nowrap; }
.price-dash { color: var(--text-muted); }
.sortable { cursor: pointer; }
.sortable:hover { color: var(--blue-primary); }

.act-btn {
    border: none; background: none;
    color: var(--text-muted); font-size: 18px;
    cursor: pointer; padding: 4px 6px;
    border-radius: 6px; transition: background .15s;
}
.act-btn:hover { background: var(--bg-page); color: var(--text-main); }

.page-btn {
    width: 32px; height: 32px; border-radius: 8px;
    border: 1px solid var(--border); background: #fff;
    font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all .15s; color: var(--text-muted);
}
.page-btn.active { background: var(--blue-primary); color: #fff; border-color: var(--blue-primary); }
.page-btn:hover:not(.active) { background: var(--bg-page); color: var(--text-main); }