/* =====================================================================
   Driver Partner System — public + dashboard helpers
   Lightweight extension only; reuses home/admin Bootstrap foundations.
   ===================================================================== */

.driver-hero-section {
    background:
        radial-gradient(circle at 12% 18%, rgba(245,185,66,.16), transparent 34%),
        linear-gradient(135deg, #0b0b0b 0%, #121212 56%, #080808 100%);
    padding-top: clamp(120px, 14vw, 170px);
}
.driver-hero-title {
    font-family: "Playfair Display", Georgia, serif;
    color: #fff;
    font-size: clamp(2.6rem, 5vw, 4.9rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -.04em;
    margin: 0 0 1rem;
}
.driver-hero-sub {
    color: var(--home-text-soft, #a3a3a3);
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    line-height: 1.75;
    max-width: 720px;
}
.driver-hero-card,
.driver-application-card {
    background: linear-gradient(180deg, rgba(30,30,30,.94), rgba(17,17,17,.96));
    border: 1px solid rgba(245,185,66,.18);
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(0,0,0,.45);
}
.driver-hero-card { padding: clamp(1.6rem, 3vw, 2.4rem); }
.driver-hero-card > i { color: var(--home-accent, #f5b942); font-size: 3rem; }
.driver-hero-card h2 { color: #fff; font-size: 1.45rem; margin: 1rem 0 .6rem; }
.driver-hero-card p,
.driver-hero-card li { color: var(--home-text-soft, #b8b8b8); }
.driver-hero-card ul { margin: 1rem 0 0; padding-left: 1.15rem; }
.driver-requirements { background: linear-gradient(180deg, #0c0c0c, #111); }
.driver-requirement-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.driver-pill {
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    color: #fff;
    border-radius: 999px;
    padding: .85rem 1rem;
    font-weight: 700;
}
.driver-pill i { color: var(--home-accent, #f5b942); margin-right: .5rem; }
.driver-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1rem;
}
.driver-vehicle-card {
    min-height: 128px;
    border-radius: 22px;
    background: linear-gradient(180deg, #1c1c1c, #151515);
    border: 1px solid rgba(255,255,255,.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    color: #fff;
    font-weight: 800;
    transition: transform .25s ease, border-color .25s ease;
}
.driver-vehicle-card:hover { transform: translateY(-5px); border-color: rgba(245,185,66,.38); }
.driver-vehicle-card i { color: var(--home-accent, #f5b942); font-size: 2rem; }
.driver-apply-section { background: #0a0a0a; }
.driver-application-card { padding: clamp(1.3rem, 3vw, 2.25rem); }
.driver-form-step {
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}
.driver-step-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.4rem;
}
.driver-step-head > span {
    width: 42px; height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--home-accent, #f5b942);
    color: #111;
    font-weight: 900;
    flex: 0 0 auto;
}
.driver-step-head h3 { color: #fff; margin: 0 0 .2rem; font-size: 1.25rem; }
.driver-step-head p { margin: 0; color: var(--home-text-soft, #a3a3a3); }
.driver-application-card .form-label { color: #cfcfcf; font-weight: 700; font-size: .85rem; }
.driver-application-card .form-control,
.driver-application-card .form-select,
.driver-application-card textarea,
.driver-application-card input:not([type="checkbox"]),
.driver-application-card select {
    background: #0f0f0f;
    border: 1px solid rgba(255,255,255,.1);
    color: #fff;
    border-radius: 12px;
    min-height: 46px;
}
.driver-application-card textarea { padding: .85rem 1rem; }
.driver-application-card .form-control:focus,
.driver-application-card .form-select:focus,
.driver-application-card input:focus,
.driver-application-card select:focus,
.driver-application-card textarea:focus {
    border-color: var(--home-accent, #f5b942);
    box-shadow: 0 0 0 .2rem rgba(245,185,66,.16);
}
.driver-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}
.driver-check-grid label,
.driver-terms {
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.035);
    border-radius: 14px;
    padding: .8rem .9rem;
    color: #e8e8e8;
    display: flex;
    align-items: center;
    gap: .65rem;
}
.driver-check-grid input,
.driver-terms input { accent-color: var(--home-accent, #f5b942); }
.driver-upload-note {
    border: 1px dashed rgba(245,185,66,.35);
    background: rgba(245,185,66,.08);
    color: #e9d3a3;
    border-radius: 18px;
    padding: 1rem 1.1rem;
}
.driver-upload-note i { color: var(--home-accent, #f5b942); margin-right: .45rem; }
.driver-terms { margin: 0 0 1rem; }

/* Dashboard helpers */
.driver-status-dot {
    width: .72rem;
    height: .72rem;
    border-radius: 50%;
    display: inline-block;
    margin-right: .45rem;
}
.driver-status-dot.available { background: #16a34a; }
.driver-status-dot.busy { background: #f59e0b; }
.driver-status-dot.offline { background: #64748b; }
.driver-doc-card { border: 1px solid rgba(0,0,0,.06); border-radius: 16px; }
.driver-doc-card .doc-icon { font-size: 1.6rem; color: #b88518; }
.driver-assignment-actions .btn { white-space: nowrap; }

@media (max-width: 991.98px) {
    .driver-vehicle-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .driver-requirement-grid,
    .driver-check-grid { grid-template-columns: 1fr; }
    .driver-vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .driver-application-card { border-radius: 22px; }
}

/* --------- Phase 2: dashboard widgets, timeline, sparkline --------- */
.driver-stat-card {
    border: 1px solid rgba(0,0,0,.05);
    border-radius: 14px;
    background: #fff;
    padding: 1rem 1.2rem;
    box-shadow: 0 4px 18px rgba(0,0,0,.04);
}
.driver-stat-card .stat-label {
    font-size: .82rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.driver-stat-card .stat-value {
    font-size: 1.55rem;
    font-weight: 700;
    color: #111;
}
.driver-stat-card .stat-sub {
    font-size: .82rem;
    color: #6b7280;
}

.driver-timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .5rem;
    position: relative;
}
.driver-timeline::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 6%;
    right: 6%;
    height: 2px;
    background: rgba(0,0,0,.08);
    z-index: 0;
}
.driver-timeline-step {
    position: relative;
    text-align: center;
    z-index: 1;
}
.driver-timeline-dot {
    width: 24px;
    height: 24px;
    background: #e5e7eb;
    border-radius: 50%;
    display: inline-block;
    margin-bottom: .4rem;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px rgba(0,0,0,.05);
}
.driver-timeline-step.is-reached .driver-timeline-dot { background: #16a34a; }
.driver-timeline-step.is-current .driver-timeline-dot {
    background: #f5b942;
    box-shadow: 0 0 0 4px rgba(245,185,66,.25);
}
@media (max-width: 575.98px) {
    .driver-timeline { grid-template-columns: repeat(3, 1fr); }
    .driver-timeline::before { display: none; }
}

.driver-sparkline {
    width: 100%;
    height: 70px;
    display: block;
}
.driver-sparkline .area { fill: rgba(22,163,74,.12); }
.driver-sparkline .line { stroke: #16a34a; stroke-width: 2; fill: none; }
.driver-sparkline .dot  { fill: #16a34a; }

.driver-notif-item {
    border: 0;
    border-bottom: 1px solid rgba(0,0,0,.05);
    padding: .85rem 1rem;
    transition: background-color .15s ease;
}
.driver-notif-item:hover { background: rgba(245,185,66,.05); }
.driver-notif-item.is-unread { background: rgba(22,163,74,.04); }
.driver-notif-badge {
    width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: .5rem;
    background: #16a34a;
}
.driver-notif-item .small.text-muted { font-size: .78rem; }

.driver-rating-bar { background: #f3f4f6; border-radius: 999px; height: 8px; overflow: hidden; }
.driver-rating-bar > span { display: block; height: 100%; background: linear-gradient(90deg,#f59e0b,#f5b942); }

.driver-expiry-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .15rem .55rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
}
.driver-expiry-pill.is-expired { background: rgba(220,38,38,.1); color: #b91c1c; }
.driver-expiry-pill.is-warning { background: rgba(245,158,11,.15); color: #92400e; }
.driver-expiry-pill.is-ok      { background: rgba(22,163,74,.12); color: #166534; }
