:root {
  --brand: #334D98;
  --brand-dark: #506195;
  --brand-light: rgba(158, 170, 203, .18);
  --brand-mid: #9EAACB;
  --brand-accent: #DECF57;
  --sidebar-w: 260px;
  --topbar-h: 72px;
}
body { font-family: 'DM Sans', system-ui, sans-serif; background: #F7F8FA; color: #2C2C2C; }
a { text-decoration: none; }
.text-brand { color: var(--brand) !important; }
.bg-brand { background: var(--brand) !important; }
.bg-brand-light { background: var(--brand-light) !important; }
.border-brand { border-color: var(--brand) !important; }
.btn-brand { background: var(--brand); color: #fff; border: none; }
.btn-brand:hover { background: var(--brand-dark); color: #fff; }
.btn-brand-outline { border: 1.5px solid var(--brand); color: var(--brand); background: transparent; }
.btn-brand-outline:hover { background: var(--brand); color: #fff; }
.sidebar { width: var(--sidebar-w); height: 100vh; background: #fff; border-right: 1px solid #e2e8f0; position: fixed; top: 0; left: 0; display: flex; flex-direction: column; z-index: 1040; transition: transform .25s ease; }
.sidebar-brand { height: var(--topbar-h); display: flex; align-items: center; padding: 0 1.25rem; border-bottom: 1px solid #e2e8f0; font-weight: 700; font-size: 1.2rem; color: var(--brand); letter-spacing: -.3px; }
.sidebar-brand span { font-weight: 300; color: #475569; }
.sidebar-nav { padding: 1rem 0; flex: 1; overflow-y: auto; }
.sidebar-section { font-size: .7rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .08em; padding: .5rem 1.25rem .25rem; }
.sidebar-link { display: flex; align-items: center; gap: .65rem; padding: .55rem 1.25rem; color: #475569; font-size: .875rem; border-left: 3px solid transparent; transition: all .15s; }
.sidebar-link:hover { background: var(--brand-light); color: var(--brand); }
.sidebar-link.active { background: var(--brand-light); color: var(--brand); border-left-color: var(--brand); font-weight: 500; }
.sidebar-footer { padding: 1rem 1.25rem; border-top: 1px solid #e2e8f0; font-size: .8rem; color: #64748b; }
.topbar { height: var(--topbar-h); background: #fff; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; padding: 0 1.25rem; position: sticky; top: 0; z-index: 1030; }
.main-content { margin-left: var(--sidebar-w); padding: 1.5rem; min-height: 100vh; }
.card { border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; }
.card-header { background: #fff; border-bottom: 1px solid #e2e8f0; font-weight: 600; }
.stat-card { border-radius: 10px; padding: 1.25rem 1.5rem; }
.stat-card .stat-label { font-size: .78rem; color: #64748b; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.stat-card .stat-value { font-size: 2rem; font-weight: 700; line-height: 1.1; margin: .2rem 0 0; }
.stat-card .stat-sub { font-size: .78rem; color: #64748b; margin-top: .25rem; }
.badge-brand { background: var(--brand-light); color: var(--brand); font-weight: 500; }
.badge-hire { background: #dcfce7; color: #15803d; }
.badge-hold { background: #fef9c3; color: #a16207; }
.badge-reject { background: #fee2e2; color: #dc2626; }
.interview-room { background: #0f172a; min-height: 100vh; color: #e2e8f0; }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.video-box { background: #1e293b; border-radius: 12px; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.video-box video { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.video-label { position: absolute; bottom: .75rem; left: .75rem; background: rgba(0,0,0,.55); padding: .2rem .65rem; border-radius: 20px; font-size: .75rem; }
.ai-avatar { width: 80px; height: 80px; border-radius: 50%; background: #ffffff; box-shadow: 0 0 0 3px rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; font-size: 2rem; padding: 10px; }
.ai-avatar.speaking { animation: pulse-ring 1.2s ease-in-out infinite; }
@keyframes pulse-ring { 0%,100%{box-shadow:0 0 0 4px rgba(51,77,152,.25)} 50%{box-shadow:0 0 0 12px rgba(51,77,152,.1)} }
.ctrl-bar { background: #1e293b; border-radius: 50px; padding: .5rem 1.5rem; display: inline-flex; gap: 1rem; align-items: center; }
.ctrl-btn { width: 44px; height: 44px; border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .15s; }
.ctrl-btn-mute { background: #334155; color: #e2e8f0; }
.ctrl-btn-mute.active { background: #dc2626; }
.ctrl-btn-end { background: #dc2626; color: #fff; }
.ctrl-btn-end:hover { background: #b91c1c; }
.psycho-bar { height: 8px; border-radius: 4px; background: #e2e8f0; overflow: hidden; }
.psycho-fill { height: 100%; border-radius: 4px; background: var(--brand); transition: width .8s ease; }
.stage-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .85rem; border-radius: 20px; font-size: .8rem; font-weight: 500; }
.stage-applied,.stage-pending { background: #f1f5f9; color: #475569; }
.stage-interview_scheduled,.stage-screening,.stage-in_progress { background: #eff6ff; color: #1d4ed8; }
.stage-interviewed,.stage-shortlisted { background: #fef9c3; color: #a16207; }
.stage-hired,.stage-offer_sent,.stage-completed,.stage-approved { background: #dcfce7; color: #15803d; }
.stage-rejected,.stage-cancelled { background: #fee2e2; color: #dc2626; }
.form-control:focus,.form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(51,77,152,.15); }
.table thead th { background: #f8fafc; font-size: .8rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: .05em; border-bottom: 2px solid #e2e8f0; }
.table tbody tr:hover { background: var(--brand-light); }
.hero { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 60%, var(--brand-accent) 100%); min-height: 100vh; display: flex; align-items: center; color: #fff; }
.feature-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--brand-light); display: flex; align-items: center; justify-content: center; color: var(--brand); margin-bottom: 1rem; }
.proctor-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; display: inline-block; animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.avatar-circle { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--brand-light); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: .9rem; color: var(--brand); flex-shrink: 0; }
.empty-state { text-align: center; padding: 3rem 1rem; color: #94a3b8; }
.document-action { color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.document-action:hover { color: inherit; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(51,77,152,.12); }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1039; }
.sidebar-overlay.show { display: block; }
.alert-brand { background: var(--brand-light); border-color: var(--brand-mid); color: var(--brand-dark); }
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.show { transform: translateX(0); }
  .main-content { margin-left: 0; padding: 1rem; }
  .video-grid { grid-template-columns: 1fr; }
  .stat-card .stat-value { font-size: 1.5rem; }
}
@media (max-width: 575.98px) {
  .topbar { padding: 0 .75rem; }
  .main-content { padding: .75rem; }
}
