/* ═══════════════════════════════════════════════════════
   BASE
═══════════════════════════════════════════════════════ */
html, body {
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* ═══════════════════════════════════════════════════════
   SIDEBAR NAV — dark theme overrides
═══════════════════════════════════════════════════════ */

/* Section labels above nav groups */
.nav-section-label {
    color: rgba(255,255,255,0.28);
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 4px 8px 6px;
}

/* All nav links in the sidebar */
.sd-nav .mud-nav-link {
    color: rgba(255,255,255,0.65) !important;
    border-radius: 8px !important;
    margin-bottom: 2px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    padding: 10px 12px !important;
    transition: background 0.15s, color 0.15s !important;
}

/* Nav link icons */
.sd-nav .mud-nav-link .mud-nav-link-icon {
    color: rgba(255,255,255,0.45) !important;
    font-size: 1.15rem !important;
}

/* Hover state */
.sd-nav .mud-nav-link:hover {
    background: rgba(255,255,255,0.07) !important;
    color: rgba(255,255,255,0.9) !important;
}

.sd-nav .mud-nav-link:hover .mud-nav-link-icon {
    color: rgba(255,255,255,0.8) !important;
}

/* Active / current page */
.sd-nav .mud-nav-link.active,
.sd-nav .mud-nav-link[aria-current="page"] {
    background: rgba(92,107,192,0.25) !important;
    color: #A5B4FC !important;
}

.sd-nav .mud-nav-link.active .mud-nav-link-icon,
.sd-nav .mud-nav-link[aria-current="page"] .mud-nav-link-icon {
    color: #A5B4FC !important;
}

/* ═══════════════════════════════════════════════════════
   DASHBOARD STAT CARDS
═══════════════════════════════════════════════════════ */
.stat-card {
    border-radius: 14px !important;
    background: white !important;
    border: 1px solid #E8EAED !important;
    transition: box-shadow 0.2s, transform 0.2s;
}

.stat-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
    transform: translateY(-2px);
}

.stat-card-inner {
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-label {
    font-size: 0.78rem;
    color: #6B7280;
    font-weight: 500;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #1A2332;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -1px;
}

.stat-change {
    font-size: 0.75rem;
    font-weight: 500;
}

.stat-change.positive { color: #10B981; }
.stat-change.negative { color: #F59E0B; }

.stat-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   CONTENT CARDS (table card, breakdown cards)
═══════════════════════════════════════════════════════ */
.content-card {
    border-radius: 14px !important;
    background: white !important;
    border: 1px solid #E8EAED !important;
    overflow: hidden;
}

.card-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ═══════════════════════════════════════════════════════
   TABLE
═══════════════════════════════════════════════════════ */
.table-header {
    color: #9CA3AF !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
}

/* ═══════════════════════════════════════════════════════
   INLINE BADGE (priority / status chips)
═══════════════════════════════════════════════════════ */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════
   TICKET DETAIL — INFO SIDEBAR ROWS
═══════════════════════════════════════════════════════ */
.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #F3F4F6;
}

.info-label {
    font-size: 0.78rem;
    color: #9CA3AF;
    font-weight: 500;
}

.info-value {
    font-size: 0.82rem;
    color: #374151;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   AGENT CARDS
═══════════════════════════════════════════════════════ */
.agent-card {
    transition: box-shadow 0.2s, transform 0.2s;
}

.agent-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════
   UTILITY
═══════════════════════════════════════════════════════ */
.mb-4  { margin-bottom: 16px !important; }
.mb-6  { margin-bottom: 24px !important; }

/* ═══════════════════════════════════════════════════════
   BLAZOR ERROR UI
═══════════════════════════════════════════════════════ */
.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An unhandled error has occurred.";
}
