/* ===== TurboDash v2 Design System ===== */
:root {
  --primary: #6C63FF;
  --primary-light: #8B83FF;
  --primary-dark: #5A52E0;
  --secondary: #00D2FF;
  --secondary-light: #33DBFF;
  --accent-coral: #FF6B6B;
  --sidebar-bg: #1E1E2D;
  --sidebar-hover: #2A2A3D;
  --sidebar-active: #33334D;
  --text-primary: #2D3748;
  --text-secondary: #718096;
  --text-muted: #A0AEC0;
  --bg-body: #F7F8FC;
  --bg-card: #FFFFFF;
  --border-color: #E2E8F0;
  --success: #28a745;
  --warning: #FFC107;
  --danger: #dc3545;
  --info: #17a2b8;
  --dept-video: #6C63FF;
  --dept-studio: #00D2FF;
  --dept-tribe: #FF6B6B;
  --dept-vidai: #EC671A;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.2s ease;
  --tc-color-0: #6C63FF;
  --tc-color-1: #00D2FF;
  --tc-color-2: #FF6B6B;
  --tc-color-3: #51CF66;
  --tc-color-4: #FF922B;
  --tc-color-5: #CC5DE8;
  --tc-color-6: #20C997;
  --tc-color-7: #FFD43B;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ===== Login Screen ===== */
.login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg-body);
}

.login-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 48px;
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.login-logo .logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  font-weight: 700;
}

.login-logo h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

/* ===== Layout ===== */
.app-wrapper { display: flex; min-height: 100vh; }
.main-content { flex: 1; margin-left: 260px; padding: 0; transition: var(--transition); }
.page-content { padding: 24px 32px; }

/* ===== Sidebar ===== */
.sidebar { width: 260px; background: var(--sidebar-bg); position: fixed; top: 0; left: 0; bottom: 0; z-index: 1000; overflow-y: auto; transition: var(--transition); }
.sidebar-brand { padding: 20px 24px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.sidebar-brand h1 { color: #fff; font-size: 22px; font-weight: 700; margin: 0; letter-spacing: -0.5px; }
.sidebar-brand .logo-icon { width: 36px; height: 36px; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; font-weight: 700; }
.sidebar-nav { padding: 16px 12px; }
.sidebar-section { margin-bottom: 8px; }
.sidebar-section-title { color: var(--text-muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; padding: 8px 12px 6px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; color: rgba(255,255,255,0.65); text-decoration: none; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.nav-item:hover { background: var(--sidebar-hover); color: rgba(255,255,255,0.9); }
.nav-item.active { background: var(--primary); color: #fff; }
.nav-item i { width: 20px; text-align: center; font-size: 16px; }
.nav-item .badge { margin-left: auto; font-size: 11px; }

/* ===== Navbar ===== */
.top-navbar { background: var(--bg-card); border-bottom: 1px solid var(--border-color); padding: 12px 32px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 999; box-shadow: var(--shadow-sm); }
.navbar-left { display: flex; align-items: center; gap: 16px; }
.navbar-right { display: flex; align-items: center; gap: 16px; }
.page-title { font-size: 20px; font-weight: 700; color: var(--text-primary); margin: 0; }
.search-box { position: relative; }
.search-box input { border: 1px solid var(--border-color); border-radius: 20px; padding: 8px 16px 8px 36px; font-size: 14px; width: 240px; outline: none; transition: var(--transition); background: var(--bg-body); }
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,99,255,0.15); width: 300px; }
.search-box i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.user-menu { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 6px 12px; border-radius: var(--radius-sm); transition: var(--transition); }
.user-menu:hover { background: var(--bg-body); }
.user-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.avatar-circle { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; flex-shrink: 0; }
.avatar-circle-sm { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; flex-shrink: 0; }
.user-info { line-height: 1.3; }
.user-info .name { font-weight: 600; font-size: 14px; }
.user-info .role { font-size: 12px; color: var(--text-muted); }

/* ===== Cards ===== */
.card { background: var(--bg-card); border: none; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: var(--transition); }
.card:hover { box-shadow: var(--shadow-md); }
.card-header { background: transparent; border-bottom: 1px solid var(--border-color); padding: 16px 20px; font-weight: 600; }
.card-body { padding: 20px; }

/* ===== KPI Cards ===== */
.kpi-card { background: var(--bg-card); border-radius: var(--radius-md); padding: 20px 24px; box-shadow: var(--shadow-sm); transition: var(--transition); border-left: 4px solid var(--primary); }
.kpi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.kpi-card .kpi-label { font-size: 13px; color: var(--text-secondary); font-weight: 500; margin-bottom: 8px; }
.kpi-card .kpi-value { font-size: 28px; font-weight: 700; color: var(--text-primary); line-height: 1; }
.kpi-card .kpi-change { font-size: 12px; margin-top: 8px; }
.kpi-card.success { border-left-color: var(--success); }
.kpi-card.warning { border-left-color: var(--warning); }
.kpi-card.danger { border-left-color: var(--danger); }
.kpi-card.info { border-left-color: var(--info); }
.kpi-card.video { border-left-color: var(--dept-video); }
.kpi-card.studio { border-left-color: var(--dept-studio); }
.kpi-card.tribe { border-left-color: var(--dept-tribe); }
.kpi-card.vidai { border-left-color: var(--dept-vidai); }

/* ===== Status Badges ===== */
.status-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.status-new { background: #E8F5E9; color: #2E7D32; }
.status-contacted { background: #E3F2FD; color: #1565C0; }
.status-qualified { background: #FFF3E0; color: #E65100; }
.status-proposal { background: #F3E5F5; color: #7B1FA2; }
.status-negotiation { background: #FFF8E1; color: #F57F17; }
.status-won { background: #E8F5E9; color: #1B5E20; }
.status-lost { background: #FFEBEE; color: #B71C1C; }
.status-returned { background: #E0F7FA; color: #00695C; }
.status-active { background: #E8F5E9; color: #2E7D32; }
.status-completed { background: #E3F2FD; color: #1565C0; }
.status-draft { background: #F5F5F5; color: #616161; }
.status-sent { background: #E3F2FD; color: #1565C0; }
.status-approved { background: #E8F5E9; color: #2E7D32; }
.status-rejected { background: #FFEBEE; color: #B71C1C; }
.status-paid { background: #E8F5E9; color: #1B5E20; }
.status-credit { background: #FFF3E0; color: #8D6E00; }
.status-afgeboekt { background: #ECEFF1; color: #37474F; }
.status-overdue { background: #FFEBEE; color: #B71C1C; }
.status-pending { background: #FFF8E1; color: #F57F17; }
.status-potential { background: #FFF3E0; color: #E65100; }
.status-potentieel { background: #FFF3E0; color: #E65100; }
.status-akkoord { background: #F3E5F5; color: #7B1FA2; }
.status-lopend { background: #E8F5E9; color: #2E7D32; }
.status-ready { background: #E3F2FD; color: #1565C0; }
.status-factuur-verstuurd { background: #E0F2F1; color: #00695C; }
.status-afgerond { background: #E8EAF6; color: #283593; }
.status-on-hold { background: #FFF8E1; color: #F57F17; }
.status-afgeketst { background: #FFEBEE; color: #B71C1C; }

/* ===== Status Select ===== */
.status-select { border-radius: 20px !important; letter-spacing: 0.5px; text-transform: uppercase; cursor: pointer; border: none !important; appearance: auto; }
.status-select.status-new { background: #E8F5E9; color: #2E7D32; }
.status-select.status-contacted { background: #E3F2FD; color: #1565C0; }
.status-select.status-qualified { background: #FFF3E0; color: #E65100; }
.status-select.status-proposal { background: #F3E5F5; color: #7B1FA2; }
.status-select.status-negotiation { background: #FFF8E1; color: #F57F17; }
.status-select.status-won { background: #E8F5E9; color: #1B5E20; }
.status-select.status-lost { background: #FFEBEE; color: #B71C1C; }
.status-select.status-returned { background: #E0F7FA; color: #00695C; }
.status-select.status-potentieel { background: #FFF3E0; color: #E65100; }
.status-select.status-akkoord { background: #F3E5F5; color: #7B1FA2; }
.status-select.status-lopend { background: #E8F5E9; color: #2E7D32; }
.status-select.status-ready { background: #E3F2FD; color: #1565C0; }
.status-select.status-factuur-verstuurd { background: #E0F2F1; color: #00695C; }
.status-select.status-afgerond { background: #E8EAF6; color: #283593; }
.status-select.status-on-hold { background: #FFF8E1; color: #F57F17; }
.status-select.status-afgeketst { background: #FFEBEE; color: #B71C1C; }
.status-select.status-afgeboekt { background: #ECEFF1; color: #37474F; }
.status-select:focus { box-shadow: 0 0 0 3px rgba(108,99,255,0.15) !important; }

/* ===== Department Badges ===== */
.dept-badge { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #fff; background: #6c757d; }
.dept-video { background: var(--dept-video); }
.dept-studio { background: var(--dept-studio); }
.dept-tribe { background: var(--dept-tribe); }
.dept-vidai { background: var(--dept-vidai); }

/* ===== Tables ===== */
.table-wrapper { background: var(--bg-card); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.table { margin-bottom: 0; }
.table thead th { background: var(--bg-body); border-bottom: 2px solid var(--border-color); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); padding: 12px 16px; white-space: nowrap; }
.table tbody td { padding: 12px 16px; vertical-align: middle; border-bottom: 1px solid var(--border-color); font-size: 14px; }
.table tbody tr { cursor: pointer; transition: var(--transition); }
.table tbody tr:hover { background: rgba(108,99,255,0.04); }

/* ===== Buttons ===== */
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); }
.btn-quick-add { background: linear-gradient(135deg, var(--primary), var(--secondary)); border: none; color: #fff; border-radius: 20px; padding: 8px 20px; font-weight: 600; font-size: 14px; transition: var(--transition); }
.btn-quick-add:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); color: #fff; }

/* ===== Modals ===== */
.modal-content { border: none; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.modal-header { border-bottom: 1px solid var(--border-color); padding: 20px 24px; }
.modal-body { padding: 24px; }
.modal-footer { border-top: 1px solid var(--border-color); padding: 16px 24px; }

/* ===== Forms ===== */
.form-control, .form-select { border-radius: var(--radius-sm); border-color: var(--border-color); padding: 10px 14px; font-size: 14px; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,99,255,0.15); }
.form-label { font-weight: 600; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }

/* ===== Timeline ===== */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 0; bottom: 0; width: 2px; background: var(--border-color); }
.timeline-item { position: relative; padding-bottom: 24px; }
.timeline-item::before { content: ''; position: absolute; left: -23px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 2px solid var(--bg-card); }
.timeline-item.call::before { background: var(--info); }
.timeline-item.email::before { background: var(--success); }
.timeline-item.meeting::before { background: var(--warning); }
.timeline-item.note::before { background: var(--text-muted); }
.timeline-date { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.timeline-content { background: var(--bg-body); border-radius: var(--radius-sm); padding: 12px 16px; }
.timeline-content h6 { margin-bottom: 4px; font-size: 14px; }
.timeline-content p { margin-bottom: 0; font-size: 13px; color: var(--text-secondary); }

/* ===== Empty States ===== */
.empty-state { text-align: center; padding: 60px 24px; color: var(--text-secondary); }
.empty-state i { font-size: 48px; color: var(--text-muted); margin-bottom: 16px; }
.empty-state h5 { color: var(--text-primary); margin-bottom: 8px; }
.empty-state p { max-width: 360px; margin: 0 auto 20px; font-size: 14px; }

/* ===== Loading ===== */
.loading-spinner { display: flex; align-items: center; justify-content: center; padding: 60px; }
.spinner-grow { background-color: var(--primary); }
.processing-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.25); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.processing-overlay .spinner-grow { width: 3rem; height: 3rem; }

/* ===== Confetti ===== */
#confetti-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999; }

/* ===== Roulette Card ===== */
.roulette-card { background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: var(--radius-md); padding: 24px; color: #fff; position: relative; overflow: hidden; }
.roulette-card::before { content: ''; position: absolute; top: -50%; right: -50%; width: 100%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%); pointer-events: none; }
.roulette-card .contact-name { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.roulette-card .contact-company { font-size: 14px; opacity: 0.85; margin-bottom: 16px; }
.roulette-card .contact-info { font-size: 13px; opacity: 0.9; }
.roulette-card .contact-info a { color: #fff; text-decoration: underline; }

/* ===== Filter & Action Bars ===== */
.filter-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-bar .form-select { width: auto; min-width: 140px; }
.action-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }

/* ===== Tabs ===== */
.nav-tabs .nav-link { color: var(--text-secondary); font-weight: 600; font-size: 14px; border: none; padding: 10px 20px; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav-tabs .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); background: transparent; }
.nav-tabs .nav-link:hover { color: var(--primary); border-color: transparent; border-bottom-color: var(--primary-light); }
.tab-content > .tab-pane:not(.active) { display: none; }

/* ===== Theme Toggle ===== */
.theme-toggle { background: none; border: 1px solid var(--border-color); border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-secondary); transition: var(--transition); font-size: 16px; padding: 0; }
.theme-toggle:hover { background: var(--bg-body); color: var(--primary); }

/* ===== Typeahead ===== */
.typeahead-wrap { position: relative; }
.typeahead-wrap input.typeahead-input { width: 100%; padding-right: 32px; }
.typeahead-wrap .typeahead-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 14px; padding: 2px 4px; line-height: 1; display: none; }
.typeahead-wrap .typeahead-clear:hover { color: var(--danger); }
.typeahead-dropdown { position: absolute; top: 100%; left: 0; right: 0; z-index: 1050; background: var(--bg-card); border: 1px solid var(--border-color); border-top: none; border-radius: 0 0 var(--radius-sm) var(--radius-sm); max-height: 220px; overflow-y: auto; box-shadow: var(--shadow-md); display: none; }
.typeahead-dropdown.show { display: block; }
.typeahead-item { padding: 8px 14px; cursor: pointer; font-size: 14px; transition: background 0.1s; }
.typeahead-item:hover, .typeahead-item.active { background: rgba(108,99,255,0.08); }
.typeahead-item .ta-company { font-weight: 600; }
.typeahead-item .ta-contact { font-size: 12px; color: var(--text-muted); }
.typeahead-item .ta-match { background: rgba(108,99,255,0.15); border-radius: 2px; }
.typeahead-empty { padding: 12px 14px; font-size: 13px; color: var(--text-muted); text-align: center; }

/* ===== Board Cards (Kanban) ===== */
.board-card { background: var(--bg-card); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 8px; box-shadow: var(--shadow-sm); cursor: grab; transition: var(--transition); }
.board-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.board-card-ghost { opacity: 0.4; }
.board-card-drag { box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

/* ===== Utility ===== */
.clickable { cursor: pointer; }
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }

/* ===== Animations ===== */
.fade-in { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.slide-in { animation: slideIn 0.3s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: translateX(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Responsive ===== */

/* Sidebar overlay backdrop */
.sidebar-backdrop { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); z-index: 999; }
.sidebar-backdrop.show { display: block; }

@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.show { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .page-content { padding: 16px; }
  .search-box input { width: 160px; }
  .search-box input:focus { width: 200px; }
  .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .filter-bar { gap: 8px; }
  .filter-bar .form-select { min-width: 120px; }
  .action-bar { flex-direction: column; align-items: stretch; }
  .action-bar > .btn { align-self: flex-start; }
}

@media (max-width: 575px) {
  .top-navbar { padding: 10px 16px; }
  .search-box { display: none; }
  .kpi-card .kpi-value { font-size: 22px; }
  .kpi-card { padding: 14px 16px; }
  .login-card { padding: 32px 24px; margin: 0 16px; }
  .btn-quick-add .btn-text { display: none; }
  .btn-quick-add { padding: 8px 12px; border-radius: 50%; }
  .page-title { font-size: 17px; }
  .card-header { padding: 12px 16px; font-size: 14px; }
  .card-body { padding: 14px 16px; }
  .modal-body { padding: 16px; }
  .table thead th { font-size: 11px; padding: 10px 10px; }
  .table tbody td { padding: 10px 10px; font-size: 13px; }
  .roulette-card { padding: 16px; }
  .roulette-card .contact-name { font-size: 17px; }
  .empty-state { padding: 40px 16px; }
  .empty-state i { font-size: 36px; }
}

/* ===== Prev/Next Project Navigation ===== */
.btn-project-nav { min-width: 36px; min-height: 36px; padding: 4px 8px; }
@media (max-width: 575px) {
  .btn-project-nav { min-width: 44px; min-height: 44px; }
}

/* ===== Dark Mode ===== */
.dark-mode {
  --text-primary: #E2E8F0;
  --text-secondary: #A0AEC0;
  --text-muted: #718096;
  --bg-body: #1A1A2E;
  --bg-card: #242442;
  --border-color: #3A3A5C;
  --sidebar-bg: #16162A;
  --sidebar-hover: #2A2A4A;
  --sidebar-active: #33335A;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
}

.dark-mode .form-control,
.dark-mode .form-select { background-color: #1A1A2E; color: var(--text-primary); border-color: var(--border-color); }
.dark-mode .form-control:focus,
.dark-mode .form-select:focus { background-color: #1A1A2E; color: var(--text-primary); }
.dark-mode .table thead th { background: #1A1A2E; color: var(--text-secondary); }
.dark-mode .table tbody tr:hover { background: rgba(108,99,255,0.1); }
.dark-mode .table { --bs-table-color: var(--text-primary); --bs-table-bg: var(--bg-card); --bs-table-border-color: var(--border-color); color: var(--text-primary); }
.dark-mode .table tbody td { color: var(--text-primary); }
.dark-mode .modal-content { background: var(--bg-card); color: var(--text-primary); }
.dark-mode .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }
.dark-mode .input-group-text { background-color: #1A1A2E; color: var(--text-secondary); border-color: var(--border-color); }
.dark-mode .timeline-content { background: #1A1A2E; }
.dark-mode .search-box input { background: #1A1A2E; color: var(--text-primary); border-color: var(--border-color); }
.dark-mode .card { color: var(--text-primary); }
.dark-mode .card-header { color: var(--text-primary); border-bottom-color: var(--border-color); }
.dark-mode .bg-light { background-color: rgba(255,255,255,0.06) !important; }
.dark-mode .table-light { --bs-table-bg: rgba(255,255,255,0.06); --bs-table-color: var(--text-primary); color: var(--text-primary); }
.dark-mode .text-dark { color: var(--text-primary) !important; }
.dark-mode .btn-light { background-color: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.15); color: var(--text-primary); }
.dark-mode .btn-light:hover { background-color: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.25); color: #fff; }
.dark-mode .list-group-item { background-color: var(--bg-card); border-color: var(--border-color); color: var(--text-primary); }
.dark-mode .list-group-item-action:hover,
.dark-mode .list-group-item-action:focus { background-color: rgba(108,99,255,0.1); color: var(--text-primary); }
.dark-mode .form-check-input { background-color: #1A1A2E; border-color: var(--border-color); }
.dark-mode .form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.dark-mode .form-check-label { color: var(--text-primary); }
.dark-mode .typeahead-dropdown { background: var(--bg-card); border-color: var(--border-color); }
.dark-mode .typeahead-item:hover, .dark-mode .typeahead-item.active { background: rgba(108,99,255,0.15); }
.dark-mode .status-select.status-new { background: #1B5E20; color: #A5D6A7; }
.dark-mode .status-select.status-contacted { background: #0D47A1; color: #90CAF9; }
.dark-mode .status-select.status-qualified { background: #BF360C; color: #FFAB91; }
.dark-mode .status-select.status-proposal { background: #4A148C; color: #CE93D8; }
.dark-mode .status-select.status-negotiation { background: #F57F17; color: #FFF8E1; }
.dark-mode .status-select.status-won { background: #1B5E20; color: #A5D6A7; }
.dark-mode .status-select.status-lost { background: #B71C1C; color: #EF9A9A; }
.dark-mode .status-select.status-returned { background: #004D40; color: #80CBC4; }
.dark-mode .status-select.status-potentieel { background: #BF360C; color: #FFAB91; }
.dark-mode .status-select.status-akkoord { background: #4A148C; color: #CE93D8; }
.dark-mode .status-select.status-lopend { background: #1B5E20; color: #A5D6A7; }
.dark-mode .status-select.status-ready { background: #0D47A1; color: #90CAF9; }
.dark-mode .status-select.status-factuur-verstuurd { background: #004D40; color: #80CBC4; }
.dark-mode .status-select.status-afgerond { background: #1A237E; color: #9FA8DA; }
.dark-mode .status-select.status-on-hold { background: #F57F17; color: #FFF8E1; }
.dark-mode .status-select.status-afgeketst { background: #B71C1C; color: #EF9A9A; }
.dark-mode .status-select.status-afgeboekt { background: #37474F; color: #CFD8DC; }

/* Mention dropdown */
.mention-item:hover { background: var(--primary-light); color: #fff; }

/* FullCalendar overrides */
#tcFullCalendar .fc {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
}
#tcFullCalendar .fc-toolbar-title {
  font-size: 1.2rem !important;
  font-weight: 600;
}
#tcFullCalendar .fc-button {
  font-size: 13px;
  padding: 4px 10px;
}
#tcFullCalendar .fc-button-primary {
  background: var(--primary);
  border-color: var(--primary);
}
#tcFullCalendar .fc-button-primary:not(:disabled).fc-button-active,
#tcFullCalendar .fc-button-primary:not(:disabled):active {
  background: var(--primary-dark, #5a52d5);
  border-color: var(--primary-dark, #5a52d5);
}
#tcFullCalendar .fc-daygrid-event {
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 12px;
}
#tcFullCalendar .fc-event {
  cursor: pointer;
}
#tcFullCalendar .fc-day-today {
  background: rgba(108, 99, 255, 0.05) !important;
}
#tcEventPopover {
  animation: fadeIn 0.15s ease;
}

/* ─── Hours-logging reminder popup (components/hours-reminder.js) ─── */
.hr-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 2px;
  border-bottom: 1px solid #f0f0f2;
}
.hr-row-cat {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.hr-catline {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hr-label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hr-time {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
.hr-u,
.hr-m {
  width: 52px;
  text-align: center;
  padding-left: 4px;
  padding-right: 4px;
}
.hr-unit {
  font-size: 12px;
  color: #999;
  margin-right: 4px;
}
.hr-today {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(108, 99, 255, 0.1);
  border-radius: 6px;
  padding: 1px 6px;
  white-space: nowrap;
}
.hr-sep {
  margin-top: 14px;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
}
