/*
 * Rob Wiley, P.C. consult dashboard styles.
 * Matches the approved mockup: clean, flat surfaces, sentence-cased
 * section labels, serif title bubble.
 */

:root {
    --bg-page: #f7f6f2;
    --bg-card: #ffffff;
    --bg-secondary: #f1efe8;
    --text-primary: #1a1a1a;
    --text-secondary: #5f5e5a;
    --text-tertiary: #888780;
    --border: rgba(0, 0, 0, 0.10);
    --accent: #0F6E56;
    --accent-bg: #f1efe8;
    --warn: #993C1D;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
                 Helvetica, Arial, sans-serif;
    --font-serif: Georgia, "Times New Roman", serif;
    --radius: 12px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg-page);
    font-family: var(--font-sans);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.45;
}

.dashboard {
    max-width: 720px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 2rem;
}

/* ---------------- Title bubble ---------------- */
.title-card {
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.title-card h1 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 0;
}

.mock-banner {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 500;
    color: var(--warn);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------------- Next STA banner ---------------- */
.next-sta-banner {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent);
}

.next-sta-banner.empty {
    border-left-color: var(--text-tertiary);
}

.next-sta-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.next-sta-content {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.next-sta-name {
    font-size: 22px;
    font-weight: 500;
    color: var(--text-primary);
}

.next-sta-time {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
}

/* ---------------- Section labels ---------------- */
.section-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0 0 8px 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-sublabel {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-tertiary);
}

.office-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-tertiary);
    margin: 0 0 6px 4px;
}

/* ---------------- List cards ---------------- */
.card {
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.list-card {
    margin-bottom: 1.25rem;
}

.list-card:last-of-type {
    margin-bottom: 1rem;
}

.attorney-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 14px 1.25rem;
    border-bottom: 0.5px solid var(--border);
    align-items: center;
}

.attorney-row.last {
    border-bottom: none;
}

.attorney-name {
    font-size: 15px;
    font-weight: 500;
}

.attorney-date {
    font-size: 14px;
    color: var(--text-secondary);
}

.attorney-time {
    font-size: 15px;
    font-weight: 500;
    text-align: right;
}

.attorney-warn {
    color: var(--warn);
    font-weight: 400;
}

.attorney-error {
    color: var(--warn);
    font-style: italic;
}

.loading {
    padding: 14px 1.25rem;
    color: var(--text-tertiary);
    font-size: 14px;
}

/* ---------------- Footer ---------------- */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-tertiary);
    padding: 0 4px;
    margin-top: 0.5rem;
}

/* ---------------- Mobile responsive ---------------- */
@media (max-width: 480px) {
    .attorney-row {
        grid-template-columns: 1fr 1fr;
        row-gap: 4px;
    }
    .attorney-name { grid-column: 1 / 3; }
    .attorney-date { font-size: 13px; }
    .next-sta-name { font-size: 18px; }
    .next-sta-time { font-size: 16px; }
    .title-card h1 { font-size: 18px; }
}
