/* =========================
   Vox-24 Theme
   Midnight + Electric Cyan
   Global App Styles
   ========================= */

:root {
    --bg: #070A12;
    --panel: #0B1220;
    --panel2: #0E172A;
    --border: #1C2A3A;
    --border-soft: rgba(255,255,255,0.07);
    --text: #EAF2FF;
    --muted: #93A4BC;
    --muted2: rgba(147,164,188,0.75);
    --accent: #22D3EE;
    --accent-soft: rgba(34,211,238,0.12);
    --accent-border: rgba(34,211,238,0.35);
    --danger: #FB7185;
    --danger-soft: rgba(251,113,133,0.12);
    --warn: #FBBF24;
    --warn-soft: rgba(251,191,36,0.14);
    --success: #34D399;
    --success-soft: rgba(52,211,153,0.12);
    --shadow: 0 18px 50px rgba(0,0,0,0.35);
    --radius: 18px;
    --radius-lg: 22px;
    --radius-pill: 999px;
    --sidebar-width: 250px;
}

/* =========================
   Base
   ========================= */

html, body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    color: var(--muted);
}

.muted {
    color: var(--muted);
}

/* =========================
   Typography
   ========================= */

h1 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.6rem;
}

/* FocusOnNavigate focuses h1 on load; hide the default focus ring so we don't get a visible outline on refresh */
h1:focus,
h1:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* =========================
   Buttons
   ========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.75rem 1.05rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.95rem;
    border: 1px solid rgba(255,255,255,0.10);
    transition: transform 0.08s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn.primary {
    background: var(--accent);
    color: #041016;
    border-color: transparent;
}

.btn.secondary {
    background: transparent;
    color: var(--text);
}

.btn.ghost {
    background: rgba(255,255,255,0.03);
    color: var(--text);
}

/* =========================
   App Layout
   ========================= */

.app-shell {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh;
}

.main-area {
    padding: 2.2rem 2.4rem;
}

.content-container {
    max-width: 1200px;
}

/* =========================
   Sidebar Nav
   ========================= */

.sidebar {
    background: linear-gradient(180deg, rgba(34,211,238,0.06), rgba(34,211,238,0.00) 40%), rgba(255,255,255,0.02);
    border-right: 1px solid var(--border);
    padding: 1.25rem 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.7rem 1.1rem 0.7rem;
    border-bottom: 1px solid var(--border-soft);
    margin-bottom: 1rem;
}

.brand-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(34,211,238,0.25));
}

.brand-title {
    font-weight: 900;
    letter-spacing: 0.3px;
}

.brand-sub {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.1rem;
}

.nav-section {
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.14em;
    font-weight: 900;
    padding: 0.75rem 0.75rem 0.35rem 0.75rem;
    text-transform: uppercase;
}

.nav-list {
    display: grid;
    gap: 0.25rem;
    padding: 0.25rem;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.75rem;
    border-radius: 14px;
    color: var(--text);
    font-weight: 800;
    opacity: 0.92;
    border: 1px solid transparent;
    transition: background 0.15s ease, transform 0.08s ease;
}

.nav-item a:hover {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.06);
    transform: translateY(-1px);
}

.nav-item a.active {
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    box-shadow: 0 0 0 4px rgba(34,211,238,0.06);
}

.nav-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--accent);
    font-weight: 900;
}

/* =========================
   Shared Cards / UI
   ========================= */

.card {
    border-radius: var(--radius-lg);
    padding: 1.15rem 1.15rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
    box-shadow: var(--shadow);
}

.card-title {
    font-weight: 1000;
    color: var(--text);
    opacity: 0.95;
    margin-bottom: 0.35rem;
}

.card-sub {
    color: var(--muted);
    font-weight: 700;
}

/* Mock card (shared component style) */
.mock-card {
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.2rem 1rem 1.2rem;
    border: 1px solid rgba(255,255,255,0.09);
    background: rgba(255,255,255,0.02);
    box-shadow: var(--shadow);
}

.mock-title {
    font-weight: 1000;
    margin-bottom: 1rem;
}

.mock-row {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mock-label {
    color: var(--muted);
    font-weight: 800;
    min-width: 92px;
}

.mock-value {
    text-align: right;
    font-weight: 900;
    color: var(--text);
}

.mock-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 1000;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text);
}

/* Global landing mock urgency pill states */
.mock-pill.urgent {
    background: rgba(251,113,133,0.12) !important;
    border: 1px solid rgba(251,113,133,0.45) !important;
    color: #FB7185 !important;
}

.mock-pill.soon {
    background: rgba(251,191,36,0.14) !important;
    border: 1px solid rgba(251,191,36,0.40) !important;
    color: #FBBF24 !important;
}

.mock-pill.routine {
    background: rgba(34,211,238,0.12) !important;
    border: 1px solid rgba(34,211,238,0.35) !important;
    color: #22D3EE !important;
}


.mock-footer {
    margin-top: 0.9rem;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 650;
}

/* =========================
   Tables
   ========================= */

.calls {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
}

.calls th, .calls td {
    text-align: left;
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-weight: 750;
}

.calls th {
    color: var(--muted);
    font-weight: 1000;
}

/* Pills */
.pill {
    display: inline-flex;
    padding: 0.18rem 0.6rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 1000;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.03);
    color: var(--text);
}

.pill.urgent {
    border-color: rgba(251,113,133,0.45);
    background: var(--danger-soft);
    color: var(--danger);
}

.pill.soon {
    border-color: rgba(251,191,36,0.40);
    background: var(--warn-soft);
    color: var(--warn);
}

.pill.routine {
    border-color: rgba(34,211,238,0.35);
    background: var(--accent-soft);
    color: var(--accent);
}

.pill.open {
    border-color: rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.03);
    color: var(--text);
}

.pill.handled {
    border-color: rgba(52,211,153,0.35);
    background: var(--success-soft);
    color: var(--success);
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 980px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        height: auto;
    }

    .main-area {
        padding: 1.3rem 1.25rem;
    }
}
