/* ═══════════════════════════════════════════════════════
   MediLink — dashboard.css
   Page-specific styles for: Provider Dashboard (dashboard.html)
   ═══════════════════════════════════════════════════════ */

/* ── Page Background ───────────────────────────────────── */
.dashboard-section {
    background: #0A0A0A;
    border-top: 1px solid var(--border);
    min-height: calc(100vh - 68px);
}

/* ── Dashboard Header ──────────────────────────────────── */
.dash-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.dash-greeting   { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }


.dash-provider   { font-size: 28px; font-weight: 700; }
.dash-subtitle  { font-size: 14px; color: var(--text-muted); }
/* ── Stats Grid (4 cards) ──────────────────────────────── */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

/* ── Single Stat Card ──────────────────────────────────── */
.dash-stat {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    transition: border-color 0.2s;
}

.dash-stat:hover { border-color: rgba(255, 255, 255, 0.12); }

.dash-stat-icon {
    font-size: 22px;
    margin-bottom: 12px;
}

.dash-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dash-stat-num {
    font-size: 30px;
    font-weight: 800;
}

.dash-stat-change {
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Main Dashboard Grid ───────────────────────────────── */
.dash-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}

/* ── Table Card ────────────────────────────────────────── */
.table-card {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.table-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-title { font-size: 15px; font-weight: 700; }

/* ── Data Table ────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; }

th {
    text-align: left;
    padding: 12px 24px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

td {
    padding: 14px 24px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

tr:last-child td { border-bottom: none; }

tbody tr { transition: background 0.15s; }
tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }

td code {
    font-size: 11px;
    color: var(--text-muted);
    font-family: monospace;
}

/* ── Fleet List Panel ──────────────────────────────────── */
.fleet-list { padding: 8px 0; }

.fleet-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.fleet-item:last-child { border-bottom: none; }
.fleet-item:hover { background: rgba(255, 255, 255, 0.02); }

.fleet-plate { font-size: 13px; font-weight: 600; }
.fleet-info  { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ── Mini Chart Bar (decorative) ───────────────────────── */
.chart-bar-row {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 60px;
    margin: 16px 0 8px;
}

.chart-bar {
    flex: 1;
    background: rgba(232, 39, 42, 0.2);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: background 0.2s;
    cursor: pointer;
}

.chart-bar:hover { background: rgba(232, 39, 42, 0.5); }
.chart-bar.active { background: var(--red); }

.chart-labels {
    display: flex;
    gap: 6px;
    font-size: 10px;
    color: var(--text-muted);
}

.chart-labels span { flex: 1; text-align: center; }

/* ── Activity Feed ─────────────────────────────────────── */
.activity-feed { display: flex; flex-direction: column; gap: 0; }

.activity-item {
    display: flex;
    gap: 14px;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s;
}

.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: rgba(255, 255, 255, 0.02); }

.activity-dot-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 4px;
}

.activity-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.activity-line {
    width: 2px;
    flex: 1;
    background: var(--border);
    margin-top: 4px;
}

.activity-text  { font-size: 13px; line-height: 1.5; }
.activity-time  { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1100px) {
    .dash-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .dash-grid  { grid-template-columns: 1fr 1fr; }
    .dash-main  { grid-template-columns: 1fr; }
    .dash-header-row { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 500px) {
    .dash-grid { grid-template-columns: 1fr; }
}