/* ===== ProctorU brand theme ===== */
:root {
    --pu-blue:        #0072b1;
    --pu-blue-dark:   #004165;
    --pu-blue-light:  #e8f4fb;
    --pu-bg:          #f4f6f8;

    --bs-primary:           var(--pu-blue);
    --bs-primary-rgb:       0, 114, 177;
    --bs-link-color:        var(--pu-blue);
    --bs-link-hover-color:  var(--pu-blue-dark);
    --bs-body-font-family:  'Source Sans 3', 'Source Sans Pro', Roboto, Arial, sans-serif;
    --bs-body-bg:           var(--pu-bg);
}

html, body {
    font-family: var(--bs-body-font-family);
    background-color: var(--pu-bg);
}

a, .btn-link {
    color: var(--pu-blue);
}

a:hover {
    color: var(--pu-blue-dark);
}

/* ===== Blue logo header bar ===== */
.pu-header {
    background-color: var(--pu-blue);
    display: flex;
    align-items: center;
    height: 3.5rem;
    position: sticky;
    top: 0;
    z-index: 1001;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.pu-brand {
    text-decoration: none !important;
}

.pu-brand-text {
    font-family: var(--bs-body-font-family);
    font-size: 1.6rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: #fff;
    text-transform: lowercase;
    position: relative;
}

.pu-owl {
    font-size: 0.75rem;
    position: relative;
    top: -0.6rem;
    margin-left: 1px;
    color: #fff;
}

/* ===== White nav bar ===== */
.pu-subnav {
    background-color: #fff;
    border-bottom: 1px solid #dde3ea;
    position: sticky;
    top: 3.5rem;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.pu-subnav .nav-link {
    color: var(--pu-blue);
    font-size: 0.95rem;
    padding: 0.65rem 1rem;
    border-bottom: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.pu-subnav .nav-link:hover {
    color: var(--pu-blue-dark);
    border-bottom-color: var(--pu-blue-light);
}

.pu-subnav .nav-link.active {
    color: var(--pu-blue-dark);
    font-weight: 600;
    border-bottom-color: var(--pu-blue);
}

.pu-subnav .navbar-toggler {
    border-color: var(--pu-blue);
    margin: 0.25rem;
}

/* ===== Main content area ===== */
.main-content {
    min-height: calc(100vh - 7rem);
}

/* ===== Buttons ===== */
.btn-primary {
    color: #fff;
    background-color: var(--pu-blue);
    border-color: var(--pu-blue);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--pu-blue-dark);
    border-color: var(--pu-blue-dark);
}

.btn-outline-primary {
    color: var(--pu-blue);
    border-color: var(--pu-blue);
}

.btn-outline-primary:hover {
    background-color: var(--pu-blue);
    border-color: var(--pu-blue);
    color: #fff;
}

/* ===== ProctorU-style tables ===== */
/* White bold header instead of dark */
.table-dark {
    --bs-table-bg: #fff;
    --bs-table-color: #1a2b3c;
    --bs-table-border-color: #dee2e6;
}

.table-dark th {
    font-weight: 700;
    color: #1a2b3c;
    border-bottom: 2px solid #dee2e6;
}

/* Remove striping */
.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-accent-bg: transparent;
    background-color: transparent;
}

/* Row hover stays subtle */
.table-hover > tbody > tr:hover > * {
    --bs-table-accent-bg: var(--pu-blue-light);
    background-color: var(--pu-blue-light);
}

/* Wrap table-responsive in a white card panel */
.table-responsive {
    background: #fff;
    border: 1px solid #dde3ea;
    border-radius: 6px;
    overflow: hidden;
}

/* Tighten row borders */
.table > :not(caption) > * > * {
    border-bottom-color: #eef0f3;
}


/* ===== Nav tabs ===== */
.nav-tabs .nav-link.active {
    color: var(--pu-blue);
    border-bottom-color: var(--pu-blue);
    font-weight: 600;
}

.nav-tabs .nav-link {
    color: #555;
}

.nav-tabs .nav-link:hover {
    color: var(--pu-blue);
}

/* ===== Cards ===== */
.card {
    background-color: #fff;
    border: 1px solid #dde3ea;
    border-radius: 6px;
}

/* ===== Page headings ===== */
h1, h2, h3, h4, h5, h6 {
    color: #1a2b3c;
}

/* ===== Session detail cards ===== */
.session-card {
    background: #fff;
    border: 1px solid #dde3ea;
    border-radius: 6px;
    overflow: visible;
}

.session-card-header {
    background: #f4f6f8;
    border-bottom: 1px solid #dde3ea;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: #555;
    font-weight: 500;
    border-radius: 6px 6px 0 0;
}

.session-card-body {
    padding: 1.25rem 1rem;
}

.session-field-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1a2b3c;
    margin-bottom: 0.15rem;
}

.session-field-value {
    font-size: 0.9rem;
    color: #333;
}

/* Timeline stats row */
.session-timeline-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.session-stat {
    text-align: center;
    padding: 1rem 0.5rem;
    border-right: 1px solid #dde3ea;
}

.session-stat:last-child {
    border-right: none;
}

.session-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1a2b3c;
    line-height: 1;
}

.session-stat-label {
    font-size: 0.75rem;
    color: #777;
    margin-top: 0.25rem;
}

.session-stat-incidents .session-stat-value {
    color: #c0392b;
}

/* Fake video player */
.session-video-player {
    background: #000;
}

.session-video-screen {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.session-video-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: #111;
    color: #ccc;
    font-size: 0.75rem;
}

.session-vc-speed {
    font-size: 0.7rem;
    color: #aaa;
    min-width: 1.5rem;
}

.session-vc-btn {
    background: none;
    border: none;
    color: #ccc;
    padding: 0;
    cursor: pointer;
    font-size: 0.8rem;
}

.session-vc-progress {
    flex: 1;
    height: 4px;
    background: #444;
    border-radius: 2px;
    position: relative;
}

.session-vc-progress-inner {
    width: 30%;
    height: 100%;
    background: #0ea5e9;
    border-radius: 2px;
}

.session-vc-time {
    font-size: 0.7rem;
    color: #aaa;
    white-space: nowrap;
}

/* Activity panel */
.session-activity-dash {
    font-weight: 700;
    color: #333;
}

.session-activity-tabs {
    display: flex;
    border-bottom: 1px solid #dde3ea;
    background: #fff;
}

.session-activity-tab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
    color: #555;
    cursor: pointer;
    margin-bottom: -1px;
}

.session-activity-tab.active {
    color: var(--pu-blue);
    border-bottom-color: var(--pu-blue);
    font-weight: 600;
}

.session-activity-tab:hover {
    color: var(--pu-blue);
}

.session-activity-body {
    padding: 0.75rem 1rem;
}

.session-activity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #eef0f3;
    font-size: 0.85rem;
}

.session-activity-item:last-child {
    border-bottom: none;
}

.session-activity-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.icon-success {
    background: #d4edda;
    color: #155724;
}

.icon-fail {
    background: #f8d7da;
    color: #721c24;
}

.session-activity-text {
    color: var(--pu-blue);
}
    font-weight: 600;
}

/* ===== BlazoredTypeahead scrollable dropdown ===== */
.blazored-typeahead__results {
    max-height: 220px;
    overflow-y: auto;
}

/* ===== Validation ===== */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

/* ===== Blazor error UI ===== */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

