/* =========================================================
   MONTREAL TÊNIS CLUBE - MANUAL DA SECRETARIA & ATENDIMENTO
   Design System & Styling
========================================================= */

:root {
  /* Core Theme Colors (Montreal Clay / Saibro & Slate) */
  --clay-primary: #e05338;
  --clay-hover: #c73e24;
  --clay-light: rgba(224, 83, 56, 0.15);
  --clay-glow: rgba(224, 83, 56, 0.35);

  --tennis-green: #10b981;
  --tennis-green-light: rgba(16, 185, 129, 0.15);
  --tennis-gold: #f59e0b;
  --tennis-blue: #3b82f6;
  --tennis-purple: #8b5cf6;

  /* Dark Theme Palette */
  --bg-main: #0a0d14;
  --bg-surface: #111723;
  --bg-card: #161e2e;
  --bg-card-hover: #1c263a;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: var(--clay-primary);

  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Overrides */
body.theme-light {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --border-color: #e2e8f0;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

/* =========================================================
   TOPBAR
========================================================= */
.topbar {
  height: 68px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-ball {
  font-size: 1.75rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px var(--clay-glow));
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--clay-primary);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Global Search */
.topbar-search {
  flex: 1;
  max-width: 580px;
  margin: 0 32px;
  position: relative;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  font-size: 0.95rem;
  opacity: 0.6;
  pointer-events: none;
}

.search-input-wrapper input {
  width: 100%;
  height: 42px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0 85px 0 40px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: var(--transition);
  outline: none;
}

.search-input-wrapper input:focus {
  border-color: var(--clay-primary);
  box-shadow: 0 0 0 3px var(--clay-light);
  background-color: var(--bg-surface);
}

.search-kbd {
  position: absolute;
  right: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: monospace;
  font-weight: 600;
  pointer-events: none;
}

.clear-search-btn {
  position: absolute;
  right: 68px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 4px;
}

.clear-search-btn:hover {
  color: var(--text-primary);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 420px;
  overflow-y: auto;
  z-index: 200;
  padding: 8px;
}

.search-result-item {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover, .search-result-item.selected {
  background-color: var(--clay-light);
}

.search-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-result-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.search-result-tag {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--clay-primary);
  font-weight: 600;
}

.search-result-snippet {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Topbar Actions */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-primary);
  transition: var(--transition);
}

.action-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--clay-primary);
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* =========================================================
   APP LAYOUT (SIDEBAR + MAIN)
========================================================= */
.app-layout {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 68px);
}

/* Sidebar */
.sidebar {
  width: 270px;
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
}

.sidebar-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0 12px;
  margin-bottom: 12px;
  display: block;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.nav-item:hover {
  background-color: var(--bg-card);
  color: var(--text-primary);
}

.nav-item.active {
  background-color: var(--clay-light);
  color: var(--clay-primary);
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background-color: var(--clay-primary);
  border-radius: 0 4px 4px 0;
}

.nav-icon {
  font-size: 1.25rem;
}

.nav-text {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.nav-text strong {
  font-size: 0.85rem;
  line-height: 1.2;
}

.nav-text small {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.nav-tag.new {
  font-size: 0.65rem;
  background: var(--clay-primary);
  color: #fff;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
}

.sidebar-footer {
  margin-top: 24px;
}

.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.support-icon {
  font-size: 1.1rem;
}

.support-card p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* =========================================================
   MAIN CONTENT AREA
========================================================= */
.main-content {
  flex: 1;
  padding: 32px;
  max-width: 1240px;
  overflow-y: auto;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.25s ease-in-out;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Section Header */
.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 20px;
  flex-wrap: wrap;
}

.section-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}

.badge-chat { background: rgba(224, 83, 56, 0.15); color: var(--clay-primary); }
.badge-sim { background: rgba(245, 158, 11, 0.15); color: var(--tennis-gold); }
.badge-sys { background: rgba(59, 130, 246, 0.15); color: var(--tennis-blue); }
.badge-turma { background: rgba(139, 92, 246, 0.15); color: var(--tennis-purple); }
.badge-prof { background: rgba(16, 185, 129, 0.15); color: var(--tennis-green); }
.badge-check { background: rgba(236, 72, 153, 0.15); color: #ec4899; }

.section-title-wrap h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.section-title-wrap p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.quick-stats {
  display: flex;
  gap: 12px;
}

.stat-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-box.highlight {
  border-color: rgba(224, 83, 56, 0.4);
  background: var(--clay-light);
}

.stat-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--clay-primary);
}

.stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

/* Alert Banner */
.alert-banner {
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.alert-danger h3 {
  font-size: 0.92rem;
  font-weight: 800;
  color: #f87171;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.alert-danger p {
  font-size: 0.84rem;
  color: #fecaca;
  line-height: 1.45;
}

/* Cards Filter Bar */
.cards-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-right: 4px;
}

.filter-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-chip:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.filter-chip.active {
  background: var(--clay-primary);
  border-color: var(--clay-primary);
  color: #fff;
  font-weight: 600;
}

/* =========================================================
   SCRIPTS GRID & CARDS
========================================================= */
.scripts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 20px;
}

@media (max-width: 768px) {
  .scripts-grid {
    grid-template-columns: 1fr;
  }
}

.script-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.script-card:hover {
  border-color: rgba(224, 83, 56, 0.4);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.script-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.script-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.script-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.tag-lead { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.tag-price { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.tag-fup { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.tag-rule { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.tag-urgent { background: rgba(239, 68, 68, 0.2); color: #f87171; }

.macro-code {
  font-family: monospace;
  font-size: 0.75rem;
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
  border: 1px solid var(--border-color);
}

.btn-copy {
  background: var(--clay-light);
  color: var(--clay-primary);
  border: 1px solid rgba(224, 83, 56, 0.3);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-copy:hover {
  background: var(--clay-primary);
  color: #ffffff;
}

.btn-copy.copied {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

.script-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-edit {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 6px 10px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.btn-edit:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-edit.active {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-color: #3b82f6;
}

.tag-edited {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.script-card h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.script-context {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.35;
}

.script-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 0.85rem;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
  font-family: var(--font-body);
  user-select: all;
  border-left: 3px solid var(--clay-primary);
  transition: var(--transition);
}

.script-box.editing {
  background: var(--bg-surface);
  border-color: #3b82f6;
  border-left: 3px solid #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  outline: none;
  cursor: text;
  user-select: text;
  min-height: 100px;
}

.edit-actions-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
  animation: fadeIn 0.2s ease-in;
}

.btn-save-edit {
  background: #10b981;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.btn-save-edit:hover {
  background: #059669;
}

.btn-cancel-edit {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-cancel-edit:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-reset-edit {
  background: transparent;
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  cursor: pointer;
  margin-right: auto;
  transition: var(--transition);
}

.btn-reset-edit:hover {
  background: rgba(239, 68, 68, 0.12);
}

/* =========================================================
   SIMULADOR DE MENSALIDADES
========================================================= */
.simulator-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .simulator-wrapper {
    grid-template-columns: 1fr;
  }
}

.sim-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.sim-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.radio-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.radio-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

/* Dynamic Multi-Workout List */
.workouts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.workout-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  transition: var(--transition);
  border-left: 3px solid var(--clay-primary);
}

.workout-item-card:hover {
  border-color: rgba(224, 83, 56, 0.4);
}

.workout-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.workout-number-badge {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--clay-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-remove-workout {
  background: transparent;
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-remove-workout:hover {
  background: rgba(239, 68, 68, 0.15);
}

.btn-add-workout {
  background: rgba(224, 83, 56, 0.1);
  color: var(--clay-primary);
  border: 1px dashed var(--clay-primary);
  padding: 11px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  transition: var(--transition);
  margin-bottom: 18px;
}

.btn-add-workout:hover {
  background: var(--clay-primary);
  color: #ffffff;
  border-style: solid;
}

.workout-summary-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 0.82rem;
}

.radio-box:hover {
  border-color: var(--clay-primary);
}

.radio-box input[type="radio"] {
  accent-color: var(--clay-primary);
  transform: scale(1.1);
}

.radio-label strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.radio-label small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pill-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pill-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 4px;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.pill-btn.active {
  background: var(--clay-primary);
  color: #fff;
  border-color: var(--clay-primary);
}

.checkbox-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.85rem;
}

.checkbox-box input {
  accent-color: var(--clay-primary);
  transform: scale(1.15);
}

.form-select, .form-input {
  width: 100%;
  height: 42px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 0 12px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
}

.form-select:focus, .form-input:focus {
  border-color: var(--clay-primary);
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Calculation Breakdown */
.calc-breakdown {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 5px 0;
  color: var(--text-secondary);
}

.calc-row.discount {
  color: #34d399;
}

.calc-divider {
  height: 1px;
  background: var(--border-color);
  margin: 10px 0;
}

.calc-row.total {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.highlight-val {
  color: var(--clay-primary);
  font-family: var(--font-heading);
}

.calc-row.sub {
  margin-top: 10px;
  background: rgba(16, 185, 129, 0.1);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.highlight-green {
  color: #34d399;
  font-family: var(--font-heading);
  font-size: 1rem;
}

.sim-script-box textarea {
  width: 100%;
  height: 130px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 12px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  resize: none;
  margin: 8px 0 12px 0;
  outline: none;
}

.btn-copy-full {
  width: 100%;
  background: var(--clay-primary);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-copy-full:hover {
  background: var(--clay-hover);
}

/* =========================================================
   SISTEMA MATCHPOINT & VÍDEOS
========================================================= */
.info-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.info-item {
  display: flex;
  flex-direction: column;
}

.info-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}

.info-val {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.info-val.highlight {
  color: var(--clay-primary);
}

.sys-columns {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .sys-columns {
    grid-template-columns: 1fr;
  }
}

.step-list {
  padding-left: 20px;
  margin: 16px 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.step-list li strong {
  color: var(--text-primary);
}

/* Videos List */
.video-tutorials-wrapper h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.sub-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.video-cards-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.video-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: var(--transition);
}

.video-card:hover {
  border-color: var(--clay-primary);
}

.video-preview-box {
  width: 140px;
  height: 90px;
  background: #000;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.play-btn-circle {
  width: 34px;
  height: 34px;
  background: var(--clay-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  padding-left: 2px;
  box-shadow: 0 0 12px var(--clay-glow);
}

.video-time {
  font-size: 0.65rem;
  color: #aaa;
  font-family: monospace;
}

.video-details h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.video-details p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.35;
}

.btn-outline-sm {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline-sm:hover {
  border-color: var(--clay-primary);
  color: var(--clay-primary);
}

/* =========================================================
   TABELAS & TURMAS
========================================================= */
.grid-2-cols {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .grid-2-cols {
    grid-template-columns: 1fr;
  }
}

.card-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card-box h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.data-table th {
  text-align: left;
  padding: 10px 12px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  line-height: 1.4;
}

.badge-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.bg-green { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.bg-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.bg-yellow { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.bg-red { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.bullet-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bullet-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.bullet-list li strong {
  color: var(--text-primary);
}

/* =========================================================
   CHECKLISTS OPERACIONAIS
========================================================= */
.checklists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.checklist-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.checklist-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-manage-team {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-manage-team:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--clay-primary);
}

/* AUDITORIA DIÁRIA & 4 CHECKPOINTS BANNER */
.checklist-audit-banner {
  background: linear-gradient(135deg, rgba(224, 90, 71, 0.08) 0%, rgba(30, 41, 59, 0.5) 100%);
  border: 1px solid rgba(224, 90, 71, 0.25);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.audit-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.audit-date-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.audit-sync-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.audit-sync-status.syncing {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
}

.audit-checkpoints-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}

.checkpoint-label-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.checkpoint-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.checkpoint-pill strong {
  color: var(--clay-primary);
}

.checkpoint-pill.active-now {
  background: rgba(224, 90, 71, 0.18);
  border-color: var(--clay-primary);
  color: var(--text-primary);
}

/* FILTRO DE COLABORADOR */
.filter-colab-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}

.filter-colab-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.colab-chips-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.colab-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.colab-chip:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-primary);
}

.colab-chip.active {
  background: var(--clay-primary);
  border-color: var(--clay-primary);
  color: #fff;
  font-weight: 700;
}

/* CHECKLIST CARD ENHANCED */
.checklist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.check-badge.morning { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.check-badge.afternoon { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.check-badge.night { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }

.shift-progress-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.shift-progress-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  overflow: hidden;
}

.shift-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.shift-progress-fill.morning { background: #fbbf24; }
.shift-progress-fill.afternoon { background: #60a5fa; }
.shift-progress-fill.night { background: #a78bfa; }

/* CHECKLIST ROW ITEMS */
.checklist-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-row-item {
  transition: var(--transition);
}

.check-row-item.hidden-by-filter {
  display: none !important;
}

.check-item-rich {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition);
  user-select: none;
}

.check-item-rich:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.check-item-rich input[type="checkbox"] {
  accent-color: var(--clay-primary);
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  cursor: pointer;
}

.check-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.check-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.time-pill {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-family: monospace;
}

.colab-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.colab-badge.cynthia { background: rgba(245, 158, 11, 0.18); color: #fde047; }
.colab-badge.lucas { background: rgba(59, 130, 246, 0.18); color: #93c5fd; }
.colab-badge.alex { background: rgba(139, 92, 246, 0.18); color: #c4b5fd; }
.colab-badge.dual { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; }

.day-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.day-tag.daily {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.day-tag.special {
  background: rgba(236, 72, 153, 0.18);
  color: #f472b6;
  font-weight: 700;
}

.task-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.check-item-rich input[type="checkbox"]:checked ~ .check-content .task-desc {
  text-decoration: line-through;
  color: var(--text-muted);
  opacity: 0.7;
}

.check-item-rich input[type="checkbox"]:checked ~ .check-content .time-pill {
  opacity: 0.5;
}

/* MODAL CONFIGURAÇÃO DE EQUIPE */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-dialog {
  background: #1e293b;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 480px;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-title-wrap h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.team-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.team-input-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.input-with-avatar {
  display: flex;
  align-items: center;
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 4px 12px;
  gap: 10px;
}

.input-with-avatar input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  width: 100%;
  padding: 8px 0;
  outline: none;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.btn-secondary-modal {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-secondary-modal:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.btn-primary-modal {
  background: var(--clay-primary);
  border: none;
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary-modal:hover {
  background: var(--clay-hover);
}

/* =========================================================
   TOAST POPUP
========================================================= */
.toast-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #111827;
  color: #fff;
  border: 1px solid #374151;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 1000;
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* =========================================================
   SLA & ANALYTICS REPORT DASHBOARD
========================================================= */
.badge-sla {
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.report-actions-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.period-select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.custom-select-period {
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.custom-select-period:focus {
  border-color: var(--clay-primary);
  box-shadow: 0 0 0 2px rgba(224, 90, 58, 0.2);
}

.btn-refresh-report {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-refresh-report:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--text-secondary);
}

.btn-refresh-report.loading span {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* KPI CARDS GRID */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.kpi-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.kpi-card.highlight-target {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(30, 41, 59, 0.7) 100%);
  border-color: rgba(16, 185, 129, 0.35);
}

.kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.kpi-icon {
  font-size: 1.4rem;
}

.kpi-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-tag-info {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.kpi-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.kpi-value-row {
  margin-bottom: 8px;
}

.kpi-main-val {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.kpi-main-val small {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.kpi-subtext {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.35;
}

.kpi-subtext strong {
  color: var(--text-primary);
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  margin-top: 12px;
  overflow: hidden;
}

.progress-bar-fill.green {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

/* ANALYTICS SPLIT GRID */
.analytics-split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.analytics-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

.analytics-card.full-width {
  margin-bottom: 24px;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.card-title-row h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

.card-legend {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.analytics-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* SPEED TIERS LIST */
.speed-tier-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.speed-tier-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tier-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.tier-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.tier-dot.ultra { background: #38bdf8; }
.tier-dot.ok { background: #34d399; }
.tier-dot.warn { background: #fbbf24; }
.tier-dot.danger { background: #f87171; }

.tier-count {
  font-weight: 700;
  color: var(--text-primary);
}

.tier-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.tier-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

.tier-bar-fill.ultra { background: #38bdf8; }
.tier-bar-fill.ok { background: #34d399; }
.tier-bar-fill.warn { background: #fbbf24; }
.tier-bar-fill.danger { background: #f87171; }

/* HOURLY CHART */
.hourly-chart-container {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 140px;
  padding-top: 20px;
  border-bottom: 1px solid var(--border-color);
  margin-top: 10px;
}

.hourly-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  position: relative;
}

.hourly-bar {
  width: 100%;
  max-width: 22px;
  background: linear-gradient(180deg, var(--clay-primary) 0%, rgba(224, 90, 58, 0.4) 100%);
  border-radius: 4px 4px 0 0;
  transition: height 0.5s ease;
  min-height: 4px;
}

.hourly-col:hover .hourly-bar {
  background: var(--clay-hover);
}

.hourly-val-tooltip {
  position: absolute;
  top: -18px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.hourly-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 600;
}

/* TAGS DISTRIBUTION GRID */
.tags-distribution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.tag-metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tag-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tag-pill-badge {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.tag-count-num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-primary);
}

.tag-pct-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* SLA AGENTS TABLE */
.table-responsive-wrapper {
  overflow-x: auto;
  margin-top: 12px;
}

.sla-agent-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}

.sla-agent-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

.sla-agent-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.sla-agent-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.agent-name-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.agent-badge-sla {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
}

.agent-badge-sla.green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.agent-badge-sla.yellow {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.agent-badge-sla.red {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

