@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');
/* ========================================================
   PREMIUM GLASSMORPHISM OVERRIDES
   ======================================================== */
:root {
  --bg-primary: #060913;
  --bg-secondary: rgba(14, 20, 31, 0.6);
  --bg-tertiary: rgba(22, 30, 46, 0.7);
  --bg-card: rgba(26, 32, 53, 0.45);
  --border-light: rgba(255, 255, 255, 0.15);
  --glass-filter: blur(20px);
}
body, .app {
  background: radial-gradient(circle at 50% 0%, #111a2d 0%, var(--bg-primary) 70%) !important;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Outfit' ; }
/* Override Layout Components */
.sidebar {
  background: rgba(15, 23, 42, 0.4) !important;
  backdrop-filter: var(--glass-filter) !important;
  -webkit-backdrop-filter: var(--glass-filter) !important;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2) !important;
}
.sidebar-header {
  background: rgba(255, 255, 255, 0.02) !important;
}
.topbar {
  background: rgba(15, 23, 42, 0.5) !important;
  backdrop-filter: var(--glass-filter) !important;
  -webkit-backdrop-filter: var(--glass-filter) !important;
}
.agent-card {
  background: rgba(30, 41, 59, 0.4) !important;
  backdrop-filter: var(--glass-filter) !important;
  -webkit-backdrop-filter: var(--glass-filter) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.agent-card:hover {
  transform: translateY(-6px) scale(1.02) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: rgba(30, 41, 59, 0.55) !important;
}
.agent-card-header {
  background: rgba(0, 0, 0, 0.15) !important;
}
.login-card {
  backdrop-filter: var(--glass-filter) !important;
  background: var(--bg-card) !important;
  border-color: var(--border-light) !important;
}
.nav-item {
  transition: all 0.2s ease !important;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  transform: translateX(4px) !important;
}
.dashboard-header { border: none !important; background: transparent !important; }
.badge { text-shadow: 0 0 10px currentColor; box-shadow: inset 0 0 10px currentColor; }
/* ========================================================
   PREMIUM TABS AND NAVIGATION
   ======================================================== */
.admin-tabs {
  background: rgba(15, 23, 42, 0.5) !important;
  backdrop-filter: var(--glass-filter) !important;
  -webkit-backdrop-filter: var(--glass-filter) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  padding: 0 24px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
  position: relative;
  z-index: 20;
}
.admin-tabs button {
  color: #94a3b8 !important;
  border-bottom: 2px solid transparent !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
}
.admin-tabs button:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.03) !important;
}
.admin-tabs button.active {
  color: #3b82f6 !important;
  background: radial-gradient(ellipse at bottom, rgba(59, 130, 246, 0.15) 0%, transparent 60%) !important;
  border-bottom-color: #3b82f6 !important;
}
.error-banner {
  background: rgba(220, 38, 38, 0.15) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(220, 38, 38, 0.3) !important;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.2) !important;
  animation: slideDown 0.4s ease-out forwards;
}
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
/* ========================================================
   PREMIUM GLASSMORPHISM OVERRIDES - MONITOR
   ======================================================== */
.monitor-toolbar {
  background: rgba(15, 23, 42, 0.5) !important;
  backdrop-filter: blur(24px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}
.draggable-overlay:hover, .draggable-overlay:focus {
  background: rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5) !important;
  backdrop-filter: blur(10px) !important;
}
.screen-image {
  border-radius: 12px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
}
/* ========================================================
   PREMIUM GLASSMORPHISM - SUPERVISOR PANEL
   ======================================================== */
.supervisor-card {
  background: rgba(30, 41, 59, 0.4) !important;
  backdrop-filter: var(--glass-filter) !important;
  -webkit-backdrop-filter: var(--glass-filter) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 16px !important;
  padding: 24px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  position: relative;
}
.supervisor-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}
.supervisor-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.2) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
  background: rgba(30, 41, 59, 0.6) !important;
}
.supervisor-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.supervisor-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
  letter-spacing: 0.5px;
}
.supervisor-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  font-size: 1.2rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
}
.premium-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  color: #fff !important;
  font-family: 'Inter' ;
  transition: all 0.2s ease !important;
  box-sizing: border-box;
}
.premium-input:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25) !important;
  outline: none !important;
}
.premium-btn {
  width: 100%;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  transition: all 0.2s ease !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.premium-btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
}
.premium-btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4) !important;
  background: linear-gradient(135deg, #4f8bf9, #316df0) !important;
}
.premium-btn-secondary {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #e2e8f0 !important;
}
.premium-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}
.supervisor-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}
.supervisor-list-item:hover {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateX(4px);
}
/* ── Agent Filter Bar ── */
.agent-filter-bar {
  display: flex;
  gap: 4px;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.af-btn {
  flex: 1;
  padding: 6px 0;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  
}
.af-btn:hover {
  background: rgba(255,255,255,0.04);
  color: #94a3b8;
}
.af-btn.active {
  background: rgba(99,102,241,0.15);
  border-color: rgba(99,102,241,0.3);
  color: #a5b4fc;
}
/* Agent Supervisor Label */
.agent-sup-label {
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-block;
}
.agent-sup-label.assigned {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.15);
}
.agent-sup-label.unassigned {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.15);
}
.sup-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #14b8a6, #6366f1);
  display: flex; align-items: center; justify-content: center;
  font-weight: bold; font-size: 1.1rem; color: #fff;
  flex-shrink: 0;
}
.sup-name { font-weight: 700; font-size: 1rem; color: #f1f5f9; }
.sup-badge {
  font-size: 0.7rem; padding: 2px 8px; border-radius: 12px;
  background: rgba(16, 185, 129, 0.15); color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
  white-space: nowrap; flex-shrink: 0;
}
/* ── Supervisor Card ── */
.sup-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.sup-card:hover { border-color: rgba(99,102,241,0.3); }
.sup-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sup-card-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.sup-card-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.sup-card-agents {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.sup-agent-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
}
.sup-agent-remove {
  background: none; border: none;
  color: #f87171; cursor: pointer;
  padding: 0; font-size: 1rem;
  line-height: 1; opacity: 0.7;
  transition: opacity 0.15s;
}
.sup-agent-remove:hover { opacity: 1; }
/* ── Supervisor Buttons ── */
.sup-btn {
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.sup-btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: #cbd5e1;
}
.sup-btn-outline:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.2);
}
.sup-btn-solid {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: none;
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}
.sup-btn-solid:hover {
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
  transform: translateY(-1px);
}
.sup-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}
/* --- CSS Grid Dashboard Shell --- */
/* Remove old top margin from main content if any */
#root, body {
  margin: 0;
  padding: 0;
  background: #04060b;
}
.dashboard-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: radial-gradient(100% 100% at 50% 0%, rgba(15, 23, 42, 0.4) 0%, #04060b 100%);
}
/* --- Left Sidebar Navigation --- */
.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  background: rgba(10, 15, 30, 0.6);
  backdrop-filter: blur(24px);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 2px 0 24px rgba(0, 0, 0, 0.2);
  height: 100vh;
  padding: 24px 0;
  z-index: 50;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-brand {
  display: flex;
  align-items: center;
  padding: 0 24px 32px 24px;
  gap: 16px;
}
.sidebar-brand .brand-icon {
  font-size: 28px;
  filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.6));
  animation: float-logo 4s ease-in-out infinite;
}
@keyframes float-logo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.sidebar-brand h2 {
  font-family: 'Outfit';
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  letter-spacing: -0.5px;
}
.sidebar-menu {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 0 16px;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #94a3b8;
  font-family: 'Inter';
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  text-align: left;
}
.menu-item:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.03);
}
.menu-item.active {
  color: #fff;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15), inset 0 0 20px rgba(59, 130, 246, 0.05);
}
.menu-item.active::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 50%;
  transform: translateY(-50%);
  height: 60%;
  width: 4px;
  background: #3b82f6;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 10px #3b82f6;
}
.menu-icon {
  font-size: 18px;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.menu-item.active .menu-icon {
  opacity: 1;
  transform: scale(1.1);
}
.sidebar-footer {
  padding: 24px 16px 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3b82f6 0%, #14b8a6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit';
  font-weight: 700;
  font-size: 16px;
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.username {
  color: #e2e8f0;
  font-family: 'Inter';
  font-size: 14px;
  font-weight: 700;
}
.role {
  color: #94a3b8;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.logout-btn-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  color: #ef4444;
  font-family: 'Inter';
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.logout-btn-nav:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
  color: #f87171;
}
/* --- Dynamic View Container --- */
.dashboard-view-container {
  overflow: hidden;
  position: relative;
  background: transparent;
  display: flex;
  flex-direction: column;
  height: 100vh;
}
/* Hide top right button since it's in nav now */
.header-actions { display: none !important; }
.admin-tabs { display: none !important; }
/* Keep main content taking full height now */
.main-content {
  height: 100%;
}
/* ================================================================
   SUPERVISOR MANAGEMENT PAGE — COMPLETE REDESIGN
   ================================================================ */
/* Page Container */
.sm-page {
  padding: 32px;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
/* Page Header */
.sm-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sm-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
  letter-spacing: -0.02em;
}
.sm-subtitle {
  color: #64748b;
  font-size: 0.9rem;
  margin: 4px 0 0;
}
.sm-header-stats {
  display: flex;
  gap: 24px;
}
.sm-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 12px;
}
.sm-stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: #a5b4fc;
}
.sm-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-top: 2px;
}
/* Top Grid — Password + Create */
.sm-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
/* Glassmorphic Card */
.sm-card {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.25s;
}
.sm-card:hover {
  border-color: rgba(99,102,241,0.2);
}
.sm-card-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.sm-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0 0 4px;
}
.sm-card-desc {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0 0 20px;
}
/* Forms */
.sm-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sm-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 11px 14px;
  color: #e2e8f0;
  font-size: 0.9rem;
  
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  outline: none;
}
.sm-input::placeholder { color: #475569; }
.sm-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.sm-form-row {
  display: flex;
  gap: 10px;
}
/* Buttons */
.sm-btn-primary {
  padding: 11px 20px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  
}
.sm-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}
.sm-btn-ghost {
  padding: 11px 20px;
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  font-weight: 400;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  
}
.sm-btn-ghost:hover {
  background: rgba(255,255,255,0.04);
  color: #e2e8f0;
}
.sm-btn-create {
  width: 100%;
  padding: 14px;
  background: rgba(99,102,241,0.08);
  border: 2px dashed rgba(99,102,241,0.25);
  border-radius: 12px;
  color: #a5b4fc;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.sm-btn-create:hover {
  background: rgba(99,102,241,0.15);
  border-color: rgba(99,102,241,0.4);
  color: #c7d2fe;
}
.sm-btn-create span {
  font-size: 1.3rem;
  font-weight: 300;
}
/* Section — Supervisor List */
.sm-section {
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 24px;
}
.sm-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.sm-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0;
}
.sm-section-count {
  background: rgba(99,102,241,0.12);
  color: #a5b4fc;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}
.sm-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sm-empty {
  text-align: center;
  padding: 40px 20px;
  color: #64748b;
}
.sm-empty-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 12px;
  opacity: 0.5;
}
.sm-empty p {
  font-size: 1rem;
  color: #94a3b8;
  margin: 0 0 4px;
}
.sm-empty span {
  font-size: 0.85rem;
}
/* Modal */
.sm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: smFadeIn 0.15s ease;
}
@keyframes smFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.sm-modal {
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
  animation: smSlideUp 0.2s ease;
}
@keyframes smSlideUp {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.sm-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sm-modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}
.sm-modal-header p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 4px 0 0;
}
.sm-modal-close {
  background: rgba(255,255,255,0.05);
  border: none;
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}
.sm-modal-close:hover {
  background: rgba(239,68,68,0.15);
  color: #f87171;
}
.sm-modal-body {
  padding: 20px 24px;
  max-height: 50vh;
  overflow-y: auto;
}
.sm-modal-footer {
  display: flex;
  gap: 10px;
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
/* Checklist */
.sm-checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sm-check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.sm-check-item:hover {
  background: rgba(99,102,241,0.06);
  border-color: rgba(99,102,241,0.2);
}
.sm-check-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #6366f1;
  cursor: pointer;
  flex-shrink: 0;
}
.sm-check-icon { font-size: 1.2rem; flex-shrink: 0; }
.sm-check-name {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 400;
  color: #e2e8f0;
}
.sm-check-mode {
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(16,185,129,0.1);
  color: #34d399;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
/* Responsive */
@media (max-width: 700px) {
  .sm-page { padding: 20px 16px; }
  .sm-top-grid { grid-template-columns: 1fr; }
  .sm-header { flex-direction: column; align-items: flex-start; }
}
/* ================================================================
   MTS STEALTH OPS — PREMIUM VISUAL UPGRADE
   Animated grid, enhanced glass, military-grade aesthetics
   ================================================================ */
/* ── Animated Grid Background ── */
.dashboard-layout::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 75%);
}
@keyframes gridMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(60px); }
}
/* Subtle scanning line */
.dashboard-layout::after {
  content: '';
  position: fixed;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.15), transparent);
  animation: scanLine 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes scanLine {
  0%, 100% { top: -2px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100vh; opacity: 0; }
}
/* ── Enhanced Sidebar ── */
.dashboard-sidebar {
  background: rgba(6, 10, 20, 0.85) !important;
  border-right: 1px solid rgba(16, 185, 129, 0.08) !important;
  box-shadow: 2px 0 40px rgba(0, 0, 0, 0.5), inset -1px 0 0 rgba(16, 185, 129, 0.05) !important;
  position: relative;
  z-index: 10;
}
.dashboard-sidebar::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 1px; height: 100%;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.3), transparent 30%, transparent 70%, rgba(16, 185, 129, 0.3));
}
/* Brand upgrade */
.sidebar-brand .brand-icon {
  font-size: 32px !important;
  filter: drop-shadow(0 0 16px rgba(16, 185, 129, 0.6)) !important;
}
.sidebar-brand h2 {
  background: linear-gradient(135deg, #fff 0%, #34d399 50%, #a5b4fc 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-size: 22px !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
}
/* Menu items — stealth green accents */
.menu-item.active {
  background: rgba(16, 185, 129, 0.08) !important;
  border: 1px solid rgba(16, 185, 129, 0.2) !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.1), inset 0 0 30px rgba(16, 185, 129, 0.03) !important;
  color: #34d399 !important;
}
.menu-item.active::before {
  background: #10b981 !important;
  box-shadow: 0 0 12px #10b981, 0 0 24px rgba(16, 185, 129, 0.3) !important;
}
.menu-item.active .menu-icon {
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.5));
}
/* Avatar upgrade */
.avatar {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35) !important;
  position: relative;
}
.avatar::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 10px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  animation: avatarPulse 3s ease-in-out infinite;
}
@keyframes avatarPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}
/* ── Agent Cards — Stealth Green ── */
.agent-card.silent {
  border-left: 3px solid #10b981 !important;
  position: relative;
}
.agent-card.silent::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.4), transparent);
}
.agent-card.active {
  border-color: rgba(16, 185, 129, 0.4) !important;
  background: rgba(16, 185, 129, 0.06) !important;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.08), inset 0 0 30px rgba(16, 185, 129, 0.02) !important;
}
.agent-card:hover {
  border-color: rgba(16, 185, 129, 0.3) !important;
}
.agent-type-icon {
  font-size: 24px;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
}
.agent-icon-wrapper {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 10px;
  flex-shrink: 0;
}
/* Status indicator glow */
.status-indicator {
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6), 0 0 20px rgba(16, 185, 129, 0.2) !important;
}
/* ── Monitor Area Upgrade ── */
.monitor-toolbar {
  background: rgba(6, 10, 20, 0.8) !important;
  backdrop-filter: blur(30px) !important;
  border-bottom: 1px solid rgba(16, 185, 129, 0.1) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5) !important;
}
.badge {
  backdrop-filter: blur(8px);
  letter-spacing: 0.3px;
}
.badge.type-silent {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.4) !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.1), inset 0 0 8px rgba(16, 185, 129, 0.05) !important;
}
/* Toolbar buttons */
.toolbar-btn {
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: #cbd5e1 !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.toolbar-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  transform: translateY(-1px);
}
.toolbar-btn.record {
  background: rgba(239, 68, 68, 0.08) !important;
  border-color: rgba(239, 68, 68, 0.2) !important;
  color: #f87171 !important;
}
.toolbar-btn.record:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.15) !important;
}
.toolbar-btn.recording {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  color: #f87171 !important;
  animation: recPulse 2s ease-in-out infinite;
}
@keyframes recPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.2); }
  50% { box-shadow: 0 0 20px 4px rgba(239, 68, 68, 0.15); }
}
.toolbar-btn.stop {
  background: rgba(239, 68, 68, 0.08) !important;
  border-color: rgba(239, 68, 68, 0.15) !important;
}
.toolbar-btn.fullscreen {
  background: rgba(99, 102, 241, 0.08) !important;
  border-color: rgba(99, 102, 241, 0.15) !important;
  color: #a5b4fc !important;
}
.toolbar-btn.fullscreen:hover {
  background: rgba(99, 102, 241, 0.15) !important;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.15) !important;
}
/* Recording indicator */
.recording-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 20px;
  color: #f87171;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.rec-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: recBlink 1s ease-in-out infinite;
}
@keyframes recBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px #ef4444; }
  50% { opacity: 0.3; box-shadow: none; }
}
/* ── Screen Viewer Upgrade ── */
.screen-viewer {
  position: relative;
  overflow: hidden;
}
.screen-image {
  border-radius: 8px !important;
  box-shadow:
    0 0 60px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(16, 185, 129, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02) !important;
}
/* Waiting screen */
.waiting-screen {
  position: relative;
}
.pulse-ring {
  width: 80px; height: 80px;
  border: 2px solid rgba(16, 185, 129, 0.2);
  border-radius: 50%;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}
.spinner {
  border-color: rgba(16, 185, 129, 0.15) !important;
  border-top-color: #10b981 !important;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.3));
}
/* ── Empty State (Stealth) ── */
.empty-state {
  position: relative;
}
.empty-state .glass-icon {
  font-size: 64px !important;
  filter: drop-shadow(0 0 30px rgba(16, 185, 129, 0.3));
  animation: floatIcon 4s ease-in-out infinite;
}
@keyframes floatIcon {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.05); }
}
.empty-state h3 {
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #fff, #34d399) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  letter-spacing: 0.5px;
}
.empty-state p {
  color: #64748b !important;
  font-size: 0.95rem !important;
  max-width: 400px;
  margin: 0 auto;
}
/* Legend card */
.legend {
  margin-top: 32px !important;
}
.legend-item.glass-panel {
  background: rgba(16, 185, 129, 0.04) !important;
  border: 1px solid rgba(16, 185, 129, 0.12) !important;
  backdrop-filter: blur(16px) !important;
  border-radius: 16px !important;
  padding: 20px 28px !important;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease !important;
}
.legend-item.glass-panel:hover {
  border-color: rgba(16, 185, 129, 0.3) !important;
  background: rgba(16, 185, 129, 0.08) !important;
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.1) !important;
  transform: translateY(-2px);
}
.legend-icon {
  font-size: 32px !important;
}
.legend-icon.green-glow {
  filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.5));
}
.legend-text strong {
  display: block;
  font-size: 1rem;
  color: #e2e8f0;
  margin-bottom: 4px;
}
.legend-text span {
  font-size: 0.82rem;
  color: #64748b;
}
/* ── Controls Panel ── */
.controls-panel {
  background: rgba(6, 10, 20, 0.6) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
}
.text-input {
  background: rgba(15, 23, 42, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  color: #e2e8f0 !important;
  transition: all 0.2s !important;
}
.text-input:focus {
  border-color: rgba(16, 185, 129, 0.4) !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}
.btn-send {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  border: none !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25) !important;
  transition: all 0.2s !important;
}
.btn-send:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35) !important;
}
/* ── Help Bar ── */
.help-bar {
  background: rgba(16, 185, 129, 0.04) !important;
  border-top: 1px solid rgba(16, 185, 129, 0.08) !important;
  backdrop-filter: blur(12px);
}
.help-bar kbd {
  background: rgba(16, 185, 129, 0.1) !important;
  border: 1px solid rgba(16, 185, 129, 0.2) !important;
  color: #34d399 !important;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.8em;
}
/* ── Login Upgrade ── */
.login-app {
  background: radial-gradient(ellipse at 50% 30%, #0a1628 0%, #04060b 70%) !important;
}
.login-card {
  border: 1px solid rgba(16, 185, 129, 0.12) !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 80px rgba(16, 185, 129, 0.06) !important;
}
.login-card:hover {
  border-color: rgba(16, 185, 129, 0.25) !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 100px rgba(16, 185, 129, 0.1) !important;
}
.login-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #10b981 100%) !important;
  background-size: 200% 100% !important;
  animation: btnShimmer 3s ease infinite !important;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3) !important;
}
@keyframes btnShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.login-btn:hover {
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4) !important;
  transform: translateY(-2px) !important;
}
.logo-icon {
  filter: drop-shadow(0 0 16px rgba(16, 185, 129, 0.5)) !important;
}
.login-card h1 {
  background: linear-gradient(135deg, #ffffff 0%, #34d399 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
/* ── Logout button stealth ── */
.logout-btn-nav {
  background: rgba(239, 68, 68, 0.06) !important;
  border: 1px solid rgba(239, 68, 68, 0.12) !important;
}
/* ── Supervisor Page Accents ── */
.sm-stat {
  background: rgba(16, 185, 129, 0.06) !important;
  border-color: rgba(16, 185, 129, 0.12) !important;
}
.sm-stat-num {
  color: #34d399 !important;
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}
.sm-btn-primary {
  background: linear-gradient(135deg, #10b981, #059669) !important;
}
.sm-btn-primary:hover {
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3) !important;
}
.sup-avatar {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.sm-section-count {
  background: rgba(16, 185, 129, 0.1) !important;
  color: #34d399 !important;
}
/* ── Scrollbar stealth green ── */
::-webkit-scrollbar-thumb:hover {
  background: rgba(16, 185, 129, 0.35) !important;
}
/* ── Data Table (Files) ── */
.data-table thead th {
  color: #64748b;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.fs-row:hover {
  background: rgba(16, 185, 129, 0.04) !important;
}
/* ── Recording Cards ── */
.recording-card {
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  transition: all 0.25s ease !important;
}
.recording-card:hover {
  border-color: rgba(16, 185, 129, 0.2) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}
/* ── Premium Micro-Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.agent-card {
  animation: fadeInUp 0.3s ease backwards;
}
.agent-card:nth-child(1) { animation-delay: 0.02s; }
.agent-card:nth-child(2) { animation-delay: 0.06s; }
.agent-card:nth-child(3) { animation-delay: 0.10s; }
.agent-card:nth-child(4) { animation-delay: 0.14s; }
.agent-card:nth-child(5) { animation-delay: 0.18s; }
/* Remove old normal mode styling */
.badge.type-normal { display: none !important; }
.agent-card.normal { border-left-color: #10b981 !important; }
/* <label></label> */
html,
body,
#root {
  width: 100%;
  height: 100%;
  margin: 0;
  background: #060913; /* Deep space background */
  color: #edebed;
}
body {
  min-width: 320px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Premium Slim Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.4); /* Neon blue hover */
}
/* ============================================
   MTS Admin Dashboard - Modern Dark Theme
   ============================================ */

/* CSS Variables */
:root {
  --bg-primary: #060913;
  --bg-secondary: rgba(14, 20, 31, 0.6);
  --bg-tertiary: rgba(22, 30, 46, 0.7);
  --bg-card: rgba(26, 32, 53, 0.45);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  --border-glow: rgba(59, 130, 246, 0.4);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  
  --accent-blue: #3b82f6;
  --accent-blue-glow: 0 0 15px rgba(59, 130, 246, 0.5);
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-emerald: #14b8a6;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 0 40px rgba(59, 130, 246, 0.15);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  --glass-filter: blur(16px);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body, #root {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Inter';
  background: radial-gradient(circle at 50% 0%, #111a2d 0%, var(--bg-primary) 70%);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit';
}

/* ============================================
   APP LAYOUT
   ============================================ */
.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-app {
  background: radial-gradient(circle at center, #16223b 0%, #060913 100%);
  position: relative;
}

.login-app::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

.login-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10;
}

.login-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-filter);
  -webkit-backdrop-filter: var(--glass-filter);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 35px -5px rgba(0, 0, 0, 0.7), 0 0 60px rgba(59, 130, 246, 0.2);
  border-color: rgba(255, 255, 255, 0.25);
}

.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

.logo-icon {
  font-size: 38px;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

.login-card h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #9ca3af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 14px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 13px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 15px;
  transition: all 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.login-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-emerald) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -4px rgba(59, 130, 246, 0.4);
}

.login-hint {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.login-hint p {
  color: var(--text-muted);
  font-size: 12px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  flex-shrink: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  font-size: 24px;
}

.brand h1 {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-badge.connected {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.disconnected {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-info {
  text-align: right;
}

.user-name {
  display: block;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 14px;
}

.user-role {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.logout-btn {
  padding: 8px 16px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-weight: 400;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.logout-btn:hover {
  background: var(--border-light);
  color: var(--text-primary);
}

/* Error Banner */
.error-banner {
  background: rgba(239, 68, 68, 0.1);
  border-bottom: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
}

.error-banner button {
  padding: 6px 12px;
  background: var(--accent-red);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* ============================================
   ADMIN TABS
   ============================================ */
.admin-tabs {
  display: flex;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 0 24px;
  flex-shrink: 0;
  gap: 4px;
}

.admin-tabs button {
  padding: 14px 20px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: -1px;
}

.admin-tabs button:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.admin-tabs button.active {
  color: var(--accent-blue);
  border-bottom-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.05);
}

.tab-icon {
  font-size: 16px;
}

/* ============================================
   MAIN CONTENT LAYOUT
   ============================================ */
.main-content {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  width: 340px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-header h2 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.agent-count {
  background: var(--accent-blue);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

.agent-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.no-agents {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.no-agents-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.no-agents p {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 4px;
}

.no-agents span {
  color: var(--text-muted);
  font-size: 13px;
}

/* Agent Card */
.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.agent-card:hover {
  border-color: var(--border-light);
  background: var(--bg-tertiary);
}

.agent-card.active {
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.08);
}

.agent-card.normal {
  border-left: 3px solid var(--accent-blue);
}

.agent-card.silent {
  border-left: 3px solid var(--accent-green);
}

.agent-card-header {
  display: flex;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  background: rgba(0, 0, 0, 0.15);
}

.agent-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.agent-card.status-online .agent-icon {
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow: inset 0 0 15px rgba(16, 185, 129, 0.05);
}

.agent-info h3 {
  margin: 0 0 6px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agent-info-main {
  flex: 1;
  min-width: 0;
}

.agent-name {
  display: block;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agent-user {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agent-status {
  flex-shrink: 0;
}

.status-indicator {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
  animation: heartbeat-pulse 2s ease-in-out infinite;
}

@keyframes heartbeat-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}

.agent-status.offline .status-indicator {
  background: var(--accent-red);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
  animation: none;
}

.agent-status.stale .status-indicator {
  background: var(--accent-yellow);
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
  animation: stale-blink 1s ease-in-out infinite;
}

@keyframes stale-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.agent-status.unresponsive .status-indicator {
  background: var(--accent-red);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
  animation: stale-blink 0.5s ease-in-out infinite;
}

.agent-details {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.detail-separator {
  opacity: 0.5;
}

.sleep-banner {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--accent-yellow);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.agent-controls {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.ctrl-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s;
}

.ctrl-btn.sleep {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.ctrl-btn.sleep:hover {
  background: var(--border-light);
  color: var(--text-primary);
}

.ctrl-btn.wake {
  background: var(--accent-yellow);
  color: #1f2937;
}

.ctrl-btn.wake:hover {
  background: #fbbf24;
}

.ctrl-btn.uninstall {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.ctrl-btn.uninstall:hover {
  background: var(--accent-red);
  color: white;
}

/* ============================================
   MONITOR AREA
   ============================================ */
.monitor-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-primary);
}

/* Sleep Warning Banner */
.sleep-warning-banner {
  background: rgba(245, 158, 11, 0.1);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--accent-yellow);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  flex-shrink: 0;
}

.sleep-warning-banner button {
  padding: 6px 14px;
  background: var(--accent-yellow);
  color: #1f2937;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* Monitor Toolbar */
.monitor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.toolbar-left h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.stats-badges {
  display: flex;
  gap: 8px;
}

.badge {
  padding: 12px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.badge.fps {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge.latency {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge.type-normal {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge.type-silent {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.toolbar-right {
  display: flex;
  gap: 8px;
}

.toolbar-btn {
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s;
}

.toolbar-btn.stop {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.toolbar-btn.stop:hover {
  background: var(--accent-red);
  color: white;
}

/* Record Button */
.toolbar-btn.record {
  background: rgba(239, 68, 68, 0.08);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.toolbar-btn.record:hover {
  background: rgba(239, 68, 68, 0.2);
}

.toolbar-btn.recording {
  background: var(--accent-red);
  color: white;
  animation: pulse-rec 1.5s ease-in-out infinite;
}

@keyframes pulse-rec {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Fullscreen Button */
.toolbar-btn.fullscreen {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.toolbar-btn.fullscreen:hover {
  background: rgba(59, 130, 246, 0.2);
}

.recording-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.rec-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
  animation: blink-rec 1s ease-in-out infinite;
}

@keyframes blink-rec {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* Recordings List */
.recordings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  padding: 20px;
}

.recording-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.recording-card:hover {
  border-color: var(--accent-blue);
}

.recording-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(0,0,0,0.15);
}

.rec-status {
  font-size: 12px;
  font-weight: 700;
}

.rec-status.completed { color: var(--accent-green); }
.rec-status.recording { color: var(--accent-red); }

.rec-date {
  font-size: 12px;
  color: var(--text-secondary);
}

.recording-card-body {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rec-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.rec-label {
  color: var(--text-secondary);
}

.rec-value {
  color: var(--text-primary);
  font-weight: 400;
}

.recording-card-actions {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
  background: var(--accent-red);
  color: white;
}

/* Playback Modal */
.playback-modal {
  width: 90vw;
  max-width: 1200px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.playback-viewer {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  min-height: 400px;
  max-height: 60vh;
  overflow: hidden;
}

.playback-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.playback-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.playback-progress {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.progress-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--accent-blue);
  border-radius: 50%;
  cursor: pointer;
}

.frame-counter {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  min-width: 80px;
  text-align: right;
}

/* Controls Panel */
.controls-panel {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.text-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-group {
  display: flex;
  gap: 8px;
}

.text-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.2s;
}

.text-input:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.text-input::placeholder {
  color: var(--text-muted);
}

.btn-send, .btn-clear {
  padding: 10px 18px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-send {
  background: var(--accent-green);
  color: white;
}

.btn-send:hover {
  background: #059669;
}

.btn-clear {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.btn-clear:hover {
  background: var(--border-light);
  color: var(--text-primary);
}

.options-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.option-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.option-group label {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 400;
}

.color-picker {
  width: 32px;
  height: 28px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: transparent;
  padding: 2px;
}

.size-slider {
  width: 80px;
  height: 4px;
  -webkit-appearance: none;
  background: var(--border-light);
  border-radius: 2px;
  outline: none;
}

.size-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--accent-blue);
  border-radius: 50%;
  cursor: pointer;
}

.size-value {
  color: var(--text-secondary);
  font-size: 12px;
  min-width: 36px;
}

.btn-toggle {
  padding: 6px 12px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-toggle:hover, .btn-toggle.active {
  background: var(--accent-blue);
  color: white;
  border-color: var(--accent-blue);
}

.position-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.pos-field {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pos-field label {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 400;
}

.pos-field input {
  width: 60px;
  padding: 6px 8px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-primary);
  text-align: center;
  font-size: 13px;
}

.hint {
  color: var(--text-muted);
  font-size: 12px;
  margin-left: auto;
}

/* Screen Viewer */
.screen-viewer {
  flex: 1;
  background: #000;
  margin: 24px;
  border-radius: var(--radius-md);
  overflow: visible;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

.screen-content-wrapper {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: inline-block;
  line-height: 0;
}

.screen-image {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.waiting-screen {
  text-align: center;
  color: var(--text-muted);
  padding: 48px;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Overlay Text */
.overlay-text {
  position: absolute;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
  pointer-events: auto;
  user-select: none;
  padding: 8px 12px;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.1s;
  line-height: normal; /* Fix height calc */
  white-space: nowrap; /* Avoid vertical text squishing */
  box-sizing: border-box;
  height: max-content;
  min-height: max-content;
  width: max-content;
}

.overlay-text.dragging {
  border-color: var(--accent-blue);
  border-style: solid;
  background: rgba(0, 0, 0, 0.4);
}

/* Agent overlay - received from agent's protected window */
.overlay-text.agent-overlay {
  border: 2px solid rgba(239, 68, 68, 0.5);
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.overlay-text.agent-overlay .drag-hint {
  color: #fca5a5;
  font-size: 9px;
}

.drag-hint {
  display: block;
  font-size: 10px;
  opacity: 0.6;
  margin-top: 4px;
  text-align: center;
  font-weight: 400;
}

/* Admin Cursor */
.admin-cursor {
  position: absolute;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

.cursor-dot {
  width: 14px;
  height: 14px;
  background: var(--accent-red);
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
}

.cursor-label {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-red);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: bold;
  white-space: nowrap;
}

/* Help Bar */
.help-bar {
  padding: 12px 24px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.help-bar strong {
  color: var(--text-primary);
}

/* Empty State */
.empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  text-align: center;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 24px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  max-width: 400px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.legend-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
}

.legend-item div {
  display: flex;
  flex-direction: column;
}

.legend-item strong {
  color: var(--text-primary);
  font-size: 14px;
}

.legend-item span {
  color: var(--text-muted);
  font-size: 12px;
}

/* ============================================
   MANAGEMENT PANEL
   ============================================ */
.management-panel {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  background: var(--bg-primary);
}

.panel-header {
  margin-bottom: 24px;
}

.panel-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
  max-width: 900px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.card-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.card-body {
  padding: 20px;
}

.btn-primary, .btn-secondary, .btn-small {
  padding: 10px 18px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--accent-blue);
  color: white;
}

.btn-primary:hover {
  background: #2563eb;
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: var(--border-light);
  color: var(--text-primary);
}

.btn-small {
  padding: 6px 14px;
  font-size: 12px;
}

.create-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.create-form input {
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
}

.create-form input:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.empty-text {
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  padding: 24px;
}

.supervisors-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.supervisor-row {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.supervisor-info {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex: 1;
  gap: 16px;
  min-width: 0;
}

.sup-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 14px;
}

.sup-count {
  color: var(--text-muted);
  font-size: 12px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.btn-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-close:hover {
  background: var(--border-light);
  color: var(--text-primary);
}

.modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.agents-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.checklist-item:hover {
  border-color: var(--border-light);
}

.checklist-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-blue);
  cursor: pointer;
}

.check-icon {
  font-size: 18px;
}

.check-label {
  flex: 1;
  color: var(--text-primary);
  font-size: 14px;
}

.check-type {
  color: var(--text-muted);
  font-size: 12px;
  text-transform: lowercase;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .sidebar {
    width: 300px;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: 240px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  .monitor-toolbar {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  
  .options-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================
   SIDEBAR SEARCH & FILTER
   ============================================ */
.sidebar-search { padding: 12px; border-bottom: 1px solid var(--border-color); }
.search-input { width: 100%; padding: 8px 12px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-tertiary); color: var(--text-primary); font-size: 13px; margin-bottom: 8px; box-sizing: border-box; }
.search-input:focus { outline: none; border-color: var(--accent-blue); }
.filter-buttons { display: flex; gap: 4px; }
.filter-btn { flex: 1; padding: 4px 6px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-tertiary); color: var(--text-muted); font-size: 10px; cursor: pointer; text-transform: capitalize; transition: all 0.2s; }
.filter-btn.active { background: var(--accent-blue); color: white; border-color: var(--accent-blue); }

/* ACTIVE WINDOW */
.active-window-info { display: flex; align-items: center; gap: 6px; padding: 4px 8px; margin-bottom: 8px; background: rgba(59,130,246,0.06); border: 1px solid rgba(59,130,246,0.1); border-radius: var(--radius-sm); font-size: 11px; overflow: hidden; }
.active-process { color: var(--accent-blue); font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.active-title { color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idle-badge { color: var(--accent-yellow) !important; font-weight: 700; }
.ctrl-btn.screenshot { background: rgba(59,130,246,0.1); color: var(--accent-blue); border: 1px solid rgba(59,130,246,0.2); flex: 0; padding: 8px; }
.ctrl-btn.screenshot:hover { background: var(--accent-blue); color: white; }

/* TOAST NOTIFICATIONS */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; max-width: 380px; }
.toast { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: var(--radius-md); font-size: 13px; font-weight: 400; backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 8px 24px rgba(0,0,0,0.4); animation: slideInRight 0.3s ease-out; color: var(--text-primary); }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast-success { background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.3); }
.toast-error { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.3); }
.toast-info { background: rgba(59,130,246,0.15); border-color: rgba(59,130,246,0.3); }
.toast-warning { background: rgba(245,158,11,0.15); border-color: rgba(245,158,11,0.3); }
.toast-close { background: none; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; padding: 0 4px; line-height: 1; }

/* ACTIVITY LOG PANEL */
.activity-panel { position: fixed; right: 0; top: 64px; bottom: 0; width: 360px; background: var(--bg-secondary); border-left: 1px solid var(--border-color); z-index: 100; display: flex; flex-direction: column; animation: slideInRight 0.25s ease-out; box-shadow: -4px 0 24px rgba(0,0,0,0.3); }
.activity-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border-color); }
.activity-header h3 { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.activity-close { background: none; border: none; color: var(--text-muted); font-size: 22px; cursor: pointer; }
.activity-list { flex: 1; overflow-y: auto; padding: 8px; }
.activity-empty { text-align: center; color: var(--text-muted); padding: 40px 20px; font-size: 14px; }
.activity-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 4px; transition: background 0.15s; }
.activity-item:hover { background: var(--bg-tertiary); }
.activity-icon { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.activity-content { flex: 1; min-width: 0; }
.activity-msg { display: block; font-size: 12px; color: var(--text-primary); line-height: 1.4; }
.activity-time { display: block; font-size: 10px; color: var(--text-muted); margin-top: 2px; }

/* SCREENSHOT MODAL */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); z-index: 9000; display: flex; align-items: center; justify-content: center; }
.screenshot-modal { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-lg); max-width: 90vw; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,0.5); }
.screenshot-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border-color); }
.screenshot-header h3 { font-size: 16px; color: var(--text-primary); }
.screenshot-body { flex: 1; overflow: auto; background: #000; display: flex; align-items: center; justify-content: center; }
.screenshot-body img { max-width: 100%; max-height: 80vh; object-fit: contain; }

/* Hex Color Input */
.color-group { display: flex; align-items: center; gap: 6px; }
.hex-input {
  width: 80px;
  padding: 4px 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hex-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}
.hex-input::placeholder { color: var(--text-muted); text-transform: none; }
/**
 * Full-Screen Monitor Window Styles
 * Clean, compact floating toolbar
 */

.monitor-window {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #0b0f19;
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

/* Floating Toolbar - Compact Design */
.floating-toolbar {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(75, 85, 99, 0.5);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1001;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  min-width: 600px;
  max-width: 90vw;
}

/* Toolbar Rows */
.toolbar-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-row {
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(75, 85, 99, 0.3);
}

.text-row {
  gap: 12px;
}

/* Toolbar Groups */
.toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-label {
  font-size: 11px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Quality Selector */
.quality-select {
  background: #1f2937;
  color: #fff;
  border: 1px solid #4b5563;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  outline: none;
}

.quality-select:hover {
  border-color: #6b7280;
}

/* Stats Group */
.stats-group {
  display: flex;
  gap: 8px;
}

.stat-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  min-width: 45px;
}

.stat-label {
  font-size: 9px;
  color: #6b7280;
  text-transform: uppercase;
}

.stat-value {
  font-size: 14px;
  font-weight: 700;
  color: #10b981;
  font-family: monospace;
}

/* Action Buttons */
.actions-group {
  gap: 6px;
}

.toolbar-action-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.record-btn {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.record-btn:hover {
  background: rgba(16, 185, 129, 0.25);
}

.record-btn.recording {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
  animation: pulse-rec 1.5s ease-in-out infinite;
}

@keyframes pulse-rec {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.toolbar-action-btn:not(.record-btn) {
  background: #374151;
  color: #e5e7eb;
}

.toolbar-action-btn:not(.record-btn):hover {
  background: #4b5563;
}

.close-btn {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  padding: 6px 10px !important;
}

.close-btn:hover {
  background: rgba(239, 68, 68, 0.25) !important;
}

/* Text Row Controls */
.color-group {
  gap: 4px;
}

.color-btn-sm {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.color-btn-sm:hover {
  transform: scale(1.1);
}

.color-btn-sm.active {
  border-color: #fff;
  box-shadow: 0 0 0 2px #3b82f6;
}

.color-picker-sm {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

/* Size Controls */
.size-group {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  padding: 2px;
}

.size-btn {
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  color: #d1d5db;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.size-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.size-value {
  font-size: 12px;
  color: #fff;
  min-width: 50px;
  text-align: center;
  font-family: monospace;
}

/* Text Input */
.input-group {
  flex: 1;
  position: relative;
  min-width: 250px;
}

.text-input {
  width: 100%;
  padding: 8px 32px 8px 12px;
  border-radius: 8px;
  border: 1px solid #4b5563;
  background: #1f2937;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.text-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.clear-text-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clear-text-btn:hover {
  background: rgba(239, 68, 68, 0.4);
}

/* Toolbar Hint */
.toolbar-hint {
  text-align: center;
  color: #6b7280;
  font-size: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(75, 85, 99, 0.2);
}

.toolbar-hint kbd {
  background: #374151;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 10px;
}

/* Screen Container */
.screen-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px 10px 50px;
}

.screen-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Agent Overlay Preview */
.agent-overlay-preview {
  position: absolute;
  font-weight: bold;
  text-shadow: 2px 2px 0 #000, -1px -1px 0 #000;
  pointer-events: none;
  padding: 8px 16px;
  z-index: 100;
}

/* Draggable Admin Overlay (Inline Input) */
.draggable-overlay {
  position: absolute;
  font-weight: bold;
  text-shadow: 2px 2px 0 #000, -1px -1px 0 #000;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  user-select: auto; /* Let input be selectable */
  white-space: nowrap;
  transition: all 0.1s;
  box-sizing: content-box; /* PREVENT TEXT CLIPPING */
}

.draggable-overlay:hover,
.draggable-overlay:focus {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 10px rgba(200, 150, 100, 0.6); /* Soft light brown shadow */
  background: rgba(0, 0, 0, 0.15);
}

.draggable-overlay.dragging {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.drag-hint {
  display: block;
  font-size: 10px;
  opacity: 0.6;
  margin-top: 4px;
}

/* Show Toolbar Button */
.show-toolbar-btn {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  background: rgba(59, 130, 246, 0.9);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1001;
}

/* Info Bar */
.info-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  color: #9ca3af;
  padding: 10px 20px;
  display: flex;
  gap: 24px;
  font-size: 12px;
  z-index: 1001;
}

/* Waiting Screen */
.waiting-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: #9ca3af;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #374151;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
  .floating-toolbar {
    min-width: auto;
    width: 95vw;
    padding: 10px;
  }
  
  .toolbar-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .input-group {
    min-width: 200px;
    width: 100%;
  }
}
