/**
 * Endüstri Vadisi – Çağrı Değerlendirme Sistemi
 * Global CSS – Dark Premium UI
 */

/* === TOKENS === */
:root {
  --bg-900: #09090b;
  --bg-800: #111115;
  --bg-700: #18181b;
  --bg-600: #27272a;
  --bg-500: #3f3f46;

  --primary:   #6366f1;
  --primary-h: #818cf8;
  --primary-d: #4f46e5;
  --secondary: #8b5cf6;
  --accent:    #06b6d4;
  --success:   #22c55e;
  --warning:   #f59e0b;
  --danger:    #ef4444;
  --info:      #3b82f6;

  --text-100: #fafafa;
  --text-200: #e4e4e7;
  --text-300: #a1a1aa;
  --text-400: #71717a;
  --text-500: #52525b;

  --border: rgba(255,255,255,0.08);
  --border-h: rgba(255,255,255,0.15);

  --glass: rgba(255,255,255,0.03);
  --glass-h: rgba(255,255,255,0.06);

  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.7);

  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --radius-xs: 6px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --sidebar-w: 260px;
  --header-h: 64px;

  --transition: 0.2s ease;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-900);
  color: var(--text-200);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-h); text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; }
button { cursor: pointer; font-family: var(--font); }
input, textarea, select { font-family: var(--font); }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-800); }
::-webkit-scrollbar-thumb { background: var(--bg-500); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-400); }

/* ==========================================
   LOGIN PAGE
   ========================================== */
.login-body { overflow: hidden; }

.login-bg {
  position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 0%, rgba(99,102,241,.18) 0%, transparent 70%),
              radial-gradient(ellipse 60% 60% at 80% 80%, rgba(139,92,246,.12) 0%, transparent 60%),
              var(--bg-900);
}

.login-orbs { position: absolute; inset: 0; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.4;
  animation: float 8s ease-in-out infinite;
}
.orb-1 { width: 400px; height: 400px; background: var(--primary); top: -150px; left: -100px; animation-delay: 0s; }
.orb-2 { width: 300px; height: 300px; background: var(--secondary); bottom: -100px; right: -100px; animation-delay: 3s; }
.orb-3 { width: 200px; height: 200px; background: var(--accent); top: 50%; left: 60%; animation-delay: 1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.login-container {
  position: relative; z-index: 1;
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
  padding: 24px;
}

.login-card {
  background: rgba(17,17,21,0.85);
  backdrop-filter: blur(32px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 100%; max-width: 440px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.06);
  animation: cardIn 0.6s cubic-bezier(0.16,1,0.3,1);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-logo {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 36px;
}
.logo-icon { flex-shrink: 0; }
.logo-text h1 { font-size: 1.2rem; font-weight: 700; color: var(--text-100); line-height: 1.2; }
.logo-text span { font-size: 0.78rem; color: var(--text-400); }

.login-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.82rem; font-weight: 500; color: var(--text-300); }

.input-wrap {
  position: relative; display: flex; align-items: center;
}
.input-icon {
  position: absolute; left: 14px; color: var(--text-400); pointer-events: none;
}
.input-wrap input {
  width: 100%; padding: 12px 14px 12px 44px;
  background: var(--bg-700); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-100); font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.input-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.input-wrap input::placeholder { color: var(--text-500); }

.toggle-pass {
  position: absolute; right: 12px;
  background: none; border: none; color: var(--text-400);
  padding: 4px; line-height: 0;
  transition: color var(--transition);
}
.toggle-pass:hover { color: var(--text-200); }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 20px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.88rem; border: none;
  transition: all var(--transition); cursor: pointer; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(99,102,241,0.45);
}
.btn-primary:active { transform: translateY(0); }
.btn-login { width: 100%; padding: 14px; font-size: 0.95rem; margin-top: 6px; }

.btn-secondary {
  background: var(--bg-600); color: var(--text-200); border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-500); border-color: var(--border-h); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #16a34a; }
.btn-sm { padding: 7px 14px; font-size: 0.82rem; }
.btn-xs { padding: 4px 10px; font-size: 0.78rem; }
.btn-icon { padding: 8px; }

/* === ALERTS === */
.alert {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 0.88rem; margin-bottom: 4px;
}
.alert-error { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.alert-success { background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }
.alert-warning { background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.3); color: #fcd34d; }
.alert-info { background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.3); color: #93c5fd; }

/* === LOGIN FOOTER === */
.login-footer { text-align: center; font-size: 0.78rem; color: var(--text-500); margin-top: 28px; }

/* ==========================================
   APP LAYOUT (Sidebar + Main)
   ========================================== */
.app-layout { display: flex; min-height: 100vh; }

/* SIDEBAR */
.sidebar {
  width: var(--sidebar-w); background: var(--bg-800);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
  transition: transform var(--transition);
}
.sidebar-logo {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 20px 18px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sidebar-logo-text { overflow: hidden; }
.sidebar-logo-text h2 { font-size: 0.85rem; font-weight: 700; color: var(--text-100); line-height: 1.2; white-space: nowrap; }
.sidebar-logo-text span { font-size: 0.72rem; color: var(--text-400); }

.sidebar-nav { flex: 1; padding: 12px 12px; overflow-y: auto; }
.nav-section { margin-bottom: 20px; }
.nav-section-title { font-size: 0.68rem; font-weight: 600; color: var(--text-500); text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 8px 8px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--text-300); font-size: 0.87rem; font-weight: 500;
  transition: all var(--transition); position: relative;
}
.nav-item:hover { background: var(--glass-h); color: var(--text-100); }
.nav-item.active {
  background: rgba(99,102,241,0.15);
  color: var(--primary-h);
}
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 3px; background: var(--primary); border-radius: 0 2px 2px 0;
}
.nav-item svg { flex-shrink: 0; opacity: 0.8; }
.nav-badge {
  margin-left: auto; background: var(--primary); color: #fff;
  font-size: 0.7rem; font-weight: 600; padding: 1px 7px; border-radius: 10px;
}

.sidebar-bottom {
  padding: 12px; border-top: 1px solid var(--border);
}
.user-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--glass);
}
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.user-info { flex: 1; overflow: hidden; }
.user-info strong { display: block; font-size: 0.83rem; color: var(--text-100); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-info span { font-size: 0.72rem; color: var(--text-400); }
.logout-btn {
  background: none; border: none; color: var(--text-400); padding: 4px;
  transition: color var(--transition); line-height: 0;
}
.logout-btn:hover { color: var(--danger); }

/* MAIN CONTENT */
.main-content {
  flex: 1; margin-left: var(--sidebar-w);
  display: flex; flex-direction: column; min-height: 100vh;
}

/* TOP BAR */
.topbar {
  height: var(--header-h); background: rgba(9,9,11,0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 28px;
  position: sticky; top: 0; z-index: 50;
  gap: 16px;
}
.topbar-title { font-size: 1rem; font-weight: 600; color: var(--text-100); }
.topbar-sub { font-size: 0.8rem; color: var(--text-400); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* PAGE CONTENT */
.page-content { padding: 28px; flex: 1; }

/* ==========================================
   STAT CARDS
   ========================================== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }

.stat-card {
  background: var(--bg-700); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color var(--transition), transform var(--transition);
  position: relative; overflow: hidden;
}
.stat-card:hover { border-color: var(--border-h); transform: translateY(-2px); }
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.stat-label { font-size: 0.78rem; color: var(--text-400); font-weight: 500; }
.stat-value { font-size: 1.9rem; font-weight: 700; color: var(--text-100); line-height: 1; }
.stat-trend { font-size: 0.78rem; display: flex; align-items: center; gap: 4px; }
.stat-trend.up { color: var(--success); }
.stat-trend.down { color: var(--danger); }
.stat-icon {
  position: absolute; right: 16px; top: 16px; opacity: 0.1;
}

/* ==========================================
   CARDS / PANELS
   ========================================== */
.card {
  background: var(--bg-700); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.card-header {
  padding: 16px 22px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-title { font-size: 0.95rem; font-weight: 600; color: var(--text-100); }
.card-body { padding: 22px; }

/* ==========================================
   TABLES
   ========================================== */
.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%; border-collapse: collapse; font-size: 0.86rem;
}
.data-table th {
  padding: 11px 16px; text-align: left;
  font-size: 0.74rem; font-weight: 600; color: var(--text-400);
  text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--bg-800); border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-200); vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background var(--transition); }
.data-table tbody tr:hover { background: var(--glass-h); }

/* ==========================================
   BADGES & STATUS
   ========================================== */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 20px; font-size: 0.73rem; font-weight: 600;
}
.badge-success { background: rgba(34,197,94,0.15); color: #86efac; }
.badge-danger  { background: rgba(239,68,68,0.15);  color: #fca5a5; }
.badge-warning { background: rgba(245,158,11,0.15); color: #fcd34d; }
.badge-info    { background: rgba(59,130,246,0.15);  color: #93c5fd; }
.badge-purple  { background: rgba(139,92,246,0.15);  color: #c4b5fd; }
.badge-gray    { background: rgba(255,255,255,0.08); color: var(--text-300); }

/* ==========================================
   SCORE RING
   ========================================== */
.score-ring-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.score-ring {
  width: 80px; height: 80px; position: relative;
}
.score-ring svg { transform: rotate(-90deg); }
.score-ring-bg { fill: none; stroke: var(--bg-600); stroke-width: 8; }
.score-ring-fill { fill: none; stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.score-ring-text {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; color: var(--text-100);
}
.score-label { font-size: 0.75rem; color: var(--text-400); }

/* ==========================================
   AUDIO PLAYER
   ========================================== */
.audio-player {
  background: var(--bg-800); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.audio-info { margin-bottom: 14px; }
.audio-filename { font-size: 0.88rem; font-weight: 600; color: var(--text-100); word-break: break-all; }
.audio-meta { font-size: 0.78rem; color: var(--text-400); margin-top: 3px; }

.audio-controls { display: flex; align-items: center; gap: 12px; }
.play-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none; color: #fff; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(99,102,241,0.35);
}
.play-btn:hover { transform: scale(1.08); box-shadow: 0 6px 22px rgba(99,102,241,0.5); }

.progress-wrap {
  flex: 1; display: flex; flex-direction: column; gap: 6px;
}
.progress-bar-wrap {
  height: 5px; background: var(--bg-600); border-radius: 3px;
  cursor: pointer; position: relative; overflow: hidden;
}
.progress-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px; transition: width 0.1s linear;
  pointer-events: none; width: 0%;
}
.progress-times { display: flex; justify-content: space-between; font-size: 0.74rem; color: var(--text-400); }

.volume-wrap { display: flex; align-items: center; gap: 6px; }
.volume-wrap input[type=range] {
  width: 70px; accent-color: var(--primary); cursor: pointer;
}

/* ==========================================
   FORMS
   ========================================== */
.form-label { font-size: 0.82rem; font-weight: 500; color: var(--text-300); display: block; margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 10px 14px;
  background: var(--bg-700); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-100); font-size: 0.88rem;
  transition: border-color var(--transition), box-shadow var(--transition); outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.form-control::placeholder { color: var(--text-500); }
textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control { cursor: pointer; }

.form-row { display: grid; gap: 16px; }
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ==========================================
   MODAL
   ========================================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg-700); border: 1px solid var(--border);
  border-radius: var(--radius-lg); width: 100%; max-width: 680px;
  max-height: 90vh; overflow-y: auto;
  animation: modalIn 0.3s cubic-bezier(0.16,1,0.3,1);
  box-shadow: var(--shadow-lg);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.modal-header {
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-size: 1.05rem; font-weight: 700; color: var(--text-100); }
.modal-close { background: none; border: none; color: var(--text-400); padding: 4px; line-height: 0; transition: color var(--transition); }
.modal-close:hover { color: var(--text-100); }
.modal-body { padding: 26px; }
.modal-footer { padding: 18px 26px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* ==========================================
   TABS
   ========================================== */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tab-btn {
  padding: 10px 18px; background: none; border: none;
  font-size: 0.87rem; font-weight: 500; color: var(--text-400);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all var(--transition);
}
.tab-btn:hover { color: var(--text-200); }
.tab-btn.active { color: var(--primary-h); border-color: var(--primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ==========================================
   FILTER BAR
   ========================================== */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 16px 22px; background: var(--bg-800);
  border-bottom: 1px solid var(--border);
}
.filter-bar .form-control { width: auto; min-width: 160px; padding: 8px 12px; font-size: 0.83rem; }

/* ==========================================
   RECORDING ROW CARD
   ========================================== */
.recording-card {
  background: var(--bg-700); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 10px;
  transition: border-color var(--transition);
}
.recording-card:hover { border-color: var(--border-h); }
.recording-card-header {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; cursor: pointer;
}
.rec-ext {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; flex-shrink: 0;
  background: rgba(99,102,241,0.15); color: var(--primary-h);
}
.rec-info { flex: 1; min-width: 0; }
.rec-name { font-size: 0.85rem; font-weight: 600; color: var(--text-100); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-sub { font-size: 0.75rem; color: var(--text-400); display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.rec-score {
  font-size: 1.2rem; font-weight: 700; min-width: 48px; text-align: center;
}
.score-excellent { color: var(--success); }
.score-good      { color: #84cc16; }
.score-average   { color: var(--warning); }
.score-poor      { color: var(--danger); }

.recording-card-body {
  border-top: 1px solid var(--border);
  padding: 18px; display: none;
}
.recording-card-body.expanded { display: block; }

/* ==========================================
   AI ANALYSIS PANEL
   ========================================== */
.ai-panel { background: var(--bg-800); border-radius: var(--radius); padding: 20px; }
.ai-panel-title { font-size: 0.85rem; font-weight: 600; color: var(--text-300); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.criteria-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.criterion-item { background: var(--bg-700); border-radius: var(--radius-sm); padding: 12px; }
.criterion-label { font-size: 0.75rem; color: var(--text-400); margin-bottom: 6px; }
.criterion-bar-wrap { height: 4px; background: var(--bg-600); border-radius: 2px; margin-bottom: 4px; }
.criterion-bar { height: 100%; border-radius: 2px; }
.criterion-score { font-size: 0.85rem; font-weight: 700; color: var(--text-100); }

.transcript-box {
  background: var(--bg-900); border-radius: var(--radius-sm);
  padding: 14px; font-size: 0.82rem; color: var(--text-300);
  max-height: 200px; overflow-y: auto; line-height: 1.7;
  border: 1px solid var(--border);
}

/* ==========================================
   SPINNER
   ========================================== */
.spinner {
  width: 36px; height: 36px; border: 3px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.spinner-sm {
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff; border-radius: 50%;
  animation: spin 0.7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
  position: absolute; inset: 0; background: rgba(9,9,11,0.7);
  display: flex; align-items: center; justify-content: center;
  border-radius: inherit; z-index: 10;
}

/* ==========================================
   CHARTS
   ========================================== */
.chart-wrap { position: relative; width: 100%; }

/* ==========================================
   TOOLTIPS
   ========================================== */
[data-tip] { position: relative; cursor: help; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--bg-600); color: var(--text-200); font-size: 0.75rem;
  padding: 5px 10px; border-radius: var(--radius-xs); white-space: nowrap;
  pointer-events: none; opacity: 0; transition: opacity var(--transition); z-index: 100;
}
[data-tip]:hover::after { opacity: 1; }

/* ==========================================
   PAGINATION
   ========================================== */
.pagination { display: flex; gap: 4px; align-items: center; justify-content: center; padding: 16px; }
.page-btn {
  min-width: 34px; height: 34px; padding: 0 10px;
  background: var(--bg-700); border: 1px solid var(--border);
  border-radius: var(--radius-xs); color: var(--text-300); font-size: 0.83rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.page-btn:hover { background: var(--bg-500); color: var(--text-100); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ==========================================
   EMPTY STATE
   ========================================== */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 20px; color: var(--text-400); text-align: center; gap: 12px;
}
.empty-state svg { opacity: 0.3; }
.empty-state h3 { font-size: 1rem; color: var(--text-300); }
.empty-state p { font-size: 0.85rem; max-width: 300px; line-height: 1.6; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-260px); }
  .sidebar.open { transform: translateX(0); width: 260px; }
  .main-content { margin-left: 0; }
  .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .page-content { padding: 16px; }
  .criteria-grid { grid-template-columns: repeat(2, 1fr); }
  .mobile-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; background: var(--bg-600);
    border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-200);
  }
}
@media (min-width: 769px) {
  .mobile-toggle { display: none; }
}

/* ==========================================
   UTILITIES
   ========================================== */
.text-muted { color: var(--text-400); }
.text-sm { font-size: 0.82rem; }
.text-xs { font-size: 0.75rem; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.w-100 { width: 100%; }
.flex-1 { flex: 1; }
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Toast notifications */
.toast-container {
  position: fixed; top: 20px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  background: var(--bg-600); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 18px;
  font-size: 0.86rem; color: var(--text-100);
  box-shadow: var(--shadow); pointer-events: all;
  display: flex; align-items: center; gap: 10px;
  animation: toastIn 0.3s ease; max-width: 360px;
}
.toast.success { border-color: rgba(34,197,94,0.4); }
.toast.error   { border-color: rgba(239,68,68,0.4); }
.toast.warning { border-color: rgba(245,158,11,0.4); }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
