:root {
    --score-excellent: #198754;
    --score-acceptable: #0d6efd;
    --score-weak: #fd7e14;
    --score-critical: #dc3545;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.stat-number {
    font-size: clamp(1.4rem, 2vw, 1.95rem);
    font-weight: 700;
}

.score {
    font-weight: 700;
}

.score-excellent {
    color: var(--score-excellent) !important;
}

.score-acceptable {
    color: var(--score-acceptable) !important;
}

.score-weak {
    color: var(--score-weak) !important;
}

.score-critical {
    color: var(--score-critical) !important;
}

.table thead th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.chart-box {
    min-height: 280px;
}

.chart-sm {
    min-height: 220px;
}

.transcript-box {
    max-height: 520px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.evidence-item {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
}

.evidence-timestamp-link {
    text-decoration: underline;
    font-size: inherit;
    line-height: inherit;
    vertical-align: baseline;
}

.transcript-snippet-box {
    max-height: 420px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.transcript-snippet-line {
    padding: 0.15rem 0.35rem;
    border-radius: 0.35rem;
}

.transcript-snippet-line.is-focus {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
}

.dataTable {
    width: 100% !important;
}

.dt-search input,
.dt-length select {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.35rem 0.55rem;
}

.loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.app-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(2px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.app-loading-box {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    min-width: 220px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.2);
}

.app-loading-text {
    font-weight: 600;
    color: #0f172a;
}

.btn[disabled],
.btn.disabled {
    opacity: 0.7;
    pointer-events: none;
}

.spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #bae6fd;
    border-top-color: #0284c7;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
