/* ========================================
   CALL CENTER MONITOR — BLACK HACKER THEME
   Incognito + Glassmorphism + Neon Matrix
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #030308;
  --bg-secondary: #08081a;
  --bg-card: rgba(8, 8, 30, 0.9);
  --bg-card-hover: rgba(14, 14, 42, 0.95);
  --bg-input: rgba(6, 6, 20, 0.95);
  --border: rgba(0, 255, 136, 0.07);
  --border-hover: rgba(0, 255, 136, 0.3);
  --glass: rgba(0, 255, 136, 0.02);
  --glass-hover: rgba(0, 255, 136, 0.05);
  --accent: #00ff88;
  --accent-dim: rgba(0, 255, 136, 0.12);
  --accent-glow: 0 0 25px rgba(0, 255, 136, 0.35);
  --cyan: #00e5ff;
  --cyan-dim: rgba(0, 229, 255, 0.12);
  --purple: #b44aff;
  --purple-dim: rgba(180, 74, 255, 0.12);
  --red: #ff3366;
  --red-dim: rgba(255, 51, 102, 0.12);
  --orange: #ff9900;
  --orange-dim: rgba(255, 153, 0, 0.12);
  --text: #d8d8e8;
  --text-dim: #6a6a88;
  --text-muted: #3a3a55;
  --sidebar-w: 240px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-sans: 'Inter', -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============ MATRIX RAIN BACKGROUND ============ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 255, 136, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 229, 255, 0.02) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(180, 74, 255, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Scanlines */
.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 255, 136, 0.015) 2px, rgba(0, 255, 136, 0.015) 4px);
  pointer-events: none;
  z-index: 9999;
  animation: scanMove 8s linear infinite;
}
@keyframes scanMove {
  0% { background-position: 0 0; }
  100% { background-position: 0 100px; }
}

/* ============ LOGIN SCREEN ============ */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.login-box {
  width: 400px;
  padding: 48px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 80px rgba(0, 255, 136, 0.05), 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}
.login-box::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.login-logo {
  text-align: center;
  margin-bottom: 36px;
}
.login-logo .skull {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.5));
  animation: glitch 3s infinite;
}
@keyframes glitch {
  0%, 92%, 100% { transform: translate(0); opacity: 1; }
  93% { transform: translate(-2px, 1px); opacity: 0.8; }
  94% { transform: translate(2px, -1px); opacity: 0.9; }
  95% { transform: translate(-1px, 2px); opacity: 1; }
}
.login-logo h1 {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 6px;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}
.login-logo p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 3px;
  font-family: var(--font-mono);
}
.login-error {
  background: var(--red-dim);
  color: var(--red);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  margin-bottom: 16px;
  display: none;
  text-align: center;
}
.login-error.show { display: block; animation: fadeIn 0.3s; }

/* ============ LAYOUT ============ */
.app-container { display: flex; min-height: 100vh; position: relative; z-index: 1; }

/* ============ SIDEBAR ============ */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: linear-gradient(180deg, rgba(8, 8, 26, 0.98), rgba(3, 3, 12, 0.98));
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
}
.sidebar-header {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.logo-icon {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 12px;
  color: var(--accent);
  box-shadow: var(--accent-glow);
  font-size: 1.4rem;
}
.logo-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 14px;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: logoPulse 2s ease-out infinite;
}
@keyframes logoPulse { 0% { opacity: 0.6; transform: scale(1); } 100% { opacity: 0; transform: scale(1.4); } }

.logo-text { display: flex; flex-direction: column; }
.logo-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 3px;
  text-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}
.logo-subtitle {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 5px;
}

.nav-section { padding: 16px 12px 8px; }
.nav-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  padding: 0 8px 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.25s ease;
  margin-bottom: 2px;
  border: 1px solid transparent;
}
.nav-item:hover { background: var(--glass-hover); color: var(--text); border-color: rgba(0,255,136,0.05); }
.nav-item.active {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(0,255,136,0.15);
  box-shadow: inset 0 0 20px rgba(0, 255, 136, 0.05), 0 0 15px rgba(0, 255, 136, 0.05);
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}
.nav-icon { font-size: 1.1rem; width: 24px; text-align: center; }

.sidebar-footer { margin-top: auto; padding: 16px 20px; border-top: 1px solid var(--border); }
.system-status { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--text-dim); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-dot.online { background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: blink 2s ease infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.user-info { display: flex; align-items: center; gap: 8px; padding: 12px 0; margin-bottom: 8px; }
.user-info .name { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.user-info .role { font-size: 0.68rem; color: var(--accent); font-family: var(--font-mono); letter-spacing: 1px; }

/* ============ MAIN ============ */
.main-content { flex: 1; margin-left: var(--sidebar-w); padding: 32px; min-height: 100vh; }

.page-header { margin-bottom: 28px; }
.page-header h1 {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}
.page-header p { color: var(--text-dim); margin-top: 6px; font-size: 0.88rem; }

/* ============ CARDS ============ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,255,136,0.1), transparent);
}
.card:hover { border-color: var(--border-hover); box-shadow: 0 0 40px rgba(0, 255, 136, 0.04); }
.card-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============ BUTTONS (iOS 26 pill) ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border: none;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  border-radius: inherit;
  pointer-events: none;
}
.btn:active { transform: scale(0.95); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #00cc6a);
  color: #000;
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover { box-shadow: 0 6px 30px rgba(0, 255, 136, 0.5); transform: translateY(-1px); }

.btn-secondary {
  background: rgba(0, 255, 136, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: rgba(0, 255, 136, 0.1); border-color: var(--border-hover); }

.btn-danger {
  background: linear-gradient(135deg, var(--red), #cc0033);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 51, 102, 0.3);
}
.btn-danger:hover { box-shadow: 0 6px 25px rgba(255, 51, 102, 0.5); }

.btn-sm { padding: 6px 14px; font-size: 0.78rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 10px; }
.btn-icon.sm { width: 30px; height: 30px; border-radius: 8px; }

/* ============ CALL BUTTONS ============ */
.call-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 16px;
  min-width: 120px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
  color: var(--text);
}
.call-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.03), transparent 70%);
}
.call-btn .call-btn-icon { font-size: 2rem; line-height: 1; }
.call-btn .call-btn-count { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 700; }
.call-btn:hover { transform: translateY(-4px) scale(1.02); }
.call-btn:active { transform: scale(0.93); }

/* ============ INPUTS ============ */
.input-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.input-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: all 0.2s ease;
  outline: none;
}
.input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim), 0 0 20px rgba(0, 255, 136, 0.1);
}
.input::placeholder { color: var(--text-muted); }
select {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236a6a88' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
textarea { resize: vertical; min-height: 80px; }
input[type="color"] { width: 48px; height: 40px; padding: 4px; border-radius: var(--radius-xs); cursor: pointer; background: var(--bg-input); border: 1px solid var(--border); }

/* ============ STATS ============ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,255,136,0.15), transparent);
}
.stat-card:hover { border-color: var(--border-hover); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3); }
.stat-value { font-family: var(--font-mono); font-size: 2.2rem; font-weight: 700; line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1.5px; font-family: var(--font-mono); }

/* Progress ring */
.progress-ring { position: relative; }
.progress-ring svg { transform: rotate(-90deg); }
.progress-ring .bg { stroke: rgba(0, 255, 136, 0.08); }
.progress-ring .fg { transition: stroke-dashoffset 1.2s ease; }
.progress-ring .value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
}

/* Table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
thead th {
  background: rgba(0, 0, 0, 0.4);
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:hover { background: var(--glass-hover); }
tbody tr:last-child td { border-bottom: none; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 50px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.5px; }
.badge-accent { background: var(--accent-dim); color: var(--accent); }
.badge-cyan { background: var(--cyan-dim); color: var(--cyan); }
.badge-purple { background: var(--purple-dim); color: var(--purple); }
.badge-red { background: var(--red-dim); color: var(--red); }
.badge-orange { background: var(--orange-dim); color: var(--orange); }

/* Avatar */
.avatar { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; color: #000; flex-shrink: 0; box-shadow: 0 0 12px rgba(0,0,0,0.3); }
.avatar-lg { width: 48px; height: 48px; font-size: 1.1rem; border-radius: 14px; }

/* Employee row */
.employee-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: all 0.25s ease;
}
.employee-row:hover { border-color: var(--border-hover); background: var(--bg-card-hover); box-shadow: 0 0 20px rgba(0,255,136,0.03); }
.employee-row .info { flex: 1; }
.employee-row .name { font-weight: 600; font-size: 0.95rem; }
.employee-row .dept { font-size: 0.78rem; color: var(--text-dim); }
.employee-row .actions { display: flex; gap: 6px; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.2s ease; }
.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 90%;
  max-width: 540px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 0 80px rgba(0, 255, 136, 0.05), 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: slideUp 0.3s ease;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-family: var(--font-mono); font-size: 1rem; color: var(--accent); }
.modal-close { background: none; border: none; color: var(--text-dim); font-size: 1.5rem; cursor: pointer; line-height: 1; padding: 4px; border-radius: 8px; transition: all 0.2s; }
.modal-close:hover { background: var(--glass-hover); color: var(--text); }
.modal-body { padding: 24px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.flex-row { display: flex; align-items: center; gap: 12px; }
.flex-wrap { flex-wrap: wrap; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-16 { margin-top: 16px; }
.text-center { text-align: center; }
.text-dim { color: var(--text-dim); }
.text-accent { color: var(--accent); }
.text-mono { font-family: var(--font-mono); }

/* Call panel */
.call-panel { display: grid; grid-template-columns: 280px 1fr; gap: 24px; min-height: calc(100vh - 120px); }
.call-employee-list { display: flex; flex-direction: column; gap: 6px; }
.call-emp-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: var(--radius-sm); cursor: pointer; border: 1px solid transparent; transition: all 0.25s ease;
}
.call-emp-item:hover { background: var(--glass-hover); border-color: rgba(0,255,136,0.05); }
.call-emp-item.selected { background: var(--accent-dim); border-color: rgba(0, 255, 136, 0.2); box-shadow: 0 0 15px rgba(0,255,136,0.05); }
.call-emp-item .name { font-weight: 500; }
.call-emp-item .dept { font-size: 0.75rem; color: var(--text-dim); }

.call-buttons-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }

/* Filters */
.filters-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px;
  padding: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
}
.filters-bar .input, .filters-bar select { width: auto; min-width: 160px; }
.filters-bar label { font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; font-family: var(--font-mono); letter-spacing: 1px; }

input[type="date"] {
  padding: 10px 14px; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-family: var(--font-sans); font-size: 0.85rem; outline: none;
}
input[type="date"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1) brightness(0.7); }

audio { width: 100%; height: 36px; border-radius: var(--radius-sm); margin-top: 8px; }

/* HW & Info cards */
.hw-card, .info-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; margin-bottom: 12px; transition: all 0.3s ease;
}
.hw-card:hover, .info-card:hover { border-color: var(--border-hover); box-shadow: 0 0 25px rgba(0,255,136,0.03); }
.hw-card .hw-title { font-family: var(--font-mono); font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.hw-card .hw-desc { color: var(--text-dim); font-size: 0.88rem; margin-bottom: 12px; }
.hw-card .hw-meta { display: flex; align-items: center; gap: 16px; font-size: 0.78rem; color: var(--text-muted); }
.info-card .info-title { font-family: var(--font-mono); font-weight: 600; color: var(--cyan); margin-bottom: 8px; }
.info-card .info-content { color: var(--text-dim); font-size: 0.88rem; line-height: 1.6; white-space: pre-wrap; }

/* Tests */
.test-question { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 12px; }
.test-question .q-num { font-family: var(--font-mono); color: var(--accent); font-size: 0.72rem; margin-bottom: 8px; letter-spacing: 1px; }
.test-question .q-text { font-size: 0.95rem; margin-bottom: 12px; }
.test-option {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 6px; cursor: pointer; transition: all 0.2s;
}
.test-option:hover { background: var(--glass-hover); border-color: var(--border-hover); }
.test-option.selected { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.test-option input[type="radio"] { display: none; }
.test-option .radio-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--text-muted); display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.test-option.selected .radio-dot { border-color: var(--accent); background: var(--accent); }
.test-option.selected .radio-dot::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #000; }

.checkbox-wrap { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox-wrap input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }

/* Empty */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.4; }

/* Emp stat block (Compact) */
.emp-stat-block {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 16px; margin-bottom: 8px; transition: all 0.3s;
}
.emp-stat-block:hover { border-color: var(--border-hover); }
.emp-stat-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.emp-stat-header .info { flex: 1; }
.emp-stat-header .name { font-weight: 600; font-size: 0.95rem; }
.emp-stat-header .dept { font-size: 0.75rem; color: var(--text-dim); }
.emp-stat-bars { display: flex; flex-direction: column; gap: 4px; }
.stat-bar-row { display: flex; align-items: center; gap: 10px; }
.stat-bar-label { width: 120px; font-size: 0.78rem; color: var(--text-dim); display: flex; align-items: center; gap: 6px; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-bar-track { flex: 1; height: 16px; background: rgba(0,255,136,0.03); border-radius: 8px; overflow: hidden; border: 1px solid rgba(0,255,136,0.05); }
.stat-bar-fill { height: 100%; border-radius: 8px; transition: width 1s ease; min-width: 2px; position: relative; }
.stat-bar-fill::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 60%); border-radius: inherit; }
.stat-bar-value { width: 40px; text-align: right; font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }

/* Photo Export Container */
.export-container { padding: 20px; background: var(--bg-primary); }
.export-container::before { content: none; /* remove matrix */ }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 255, 136, 0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 255, 136, 0.2); }

/* File input */
.file-input-wrap { position: relative; display: inline-block; }
.file-input-wrap input[type="file"] { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-input-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; background: var(--glass-hover); border: 1px dashed rgba(0,255,136,0.15);
  border-radius: var(--radius-sm); color: var(--text-dim); font-size: 0.85rem; cursor: pointer; transition: all 0.2s;
}
.file-input-label:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

.fade-in { animation: fadeIn 0.3s ease; }

/* Responsive */
@media (max-width: 900px) {
  .sidebar { width: 60px; }
  .sidebar .logo-text, .sidebar .nav-item span:not(.nav-icon), .sidebar .nav-label, .sidebar .system-status span:not(.status-dot), .sidebar .user-info span { display: none; }
  .sidebar-header { justify-content: center; padding: 16px 8px; }
  .nav-item { justify-content: center; padding: 12px; }
  .main-content { margin-left: 60px; padding: 16px; }
  .call-panel { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .login-box { width: 90%; padding: 32px 24px; }
}

/* Hidden */
.hidden { display: none !important; }
