/* ==========================================================================
   HORIZON X - BUSINESS OS DESIGN SYSTEM (ADVANCED VERSION)
   Dark Glassmorphism, Ruby & Cyan Accents, Panic Mode Neon, Quotas & Risk Pulses
   ========================================================================== */

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

:root {
  --font-title: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Horizon X Dark Color Palette */
  --bg-dark: #05070a;
  --bg-main: #07090e;
  --bg-secondary: #0c0f17;
  --bg-card: #121824;
  --bg-card-hover: #182030;
  --bg-glass: rgba(18, 24, 36, 0.75);

  /* Accents */
  --primary-ruby: #b31b34;
  --primary-ruby-glow: #ff3355;
  --primary-ruby-rgb: 179, 27, 52;
  
  --cyan-accent: #00f2fe;
  --cyan-deep: #00bcd4;
  --cyan-rgb: 0, 242, 254;

  --purple-ai: #a855f7;
  --purple-ai-glow: #c084fc;

  --green-success: #10b981;
  --yellow-warning: #f59e0b;
  --red-danger: #ef4444;

  /* Neutral Text */
  --text-white: #ffffff;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  /* Borders & Shadows */
  --border-light: rgba(255, 255, 255, 0.07);
  --border-cyan: rgba(0, 242, 254, 0.25);
  --border-ruby: rgba(255, 51, 85, 0.25);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.8);
  --shadow-cyan-glow: 0 0 20px rgba(0, 242, 254, 0.2);
  --shadow-ruby-glow: 0 0 20px rgba(255, 51, 85, 0.2);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & General Setup */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Scrollbar Styling */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan-accent); }

/* Layout Structure */
#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* Top Persona Switcher Bar */
.persona-bar {
  background: linear-gradient(90deg, #090d16 0%, #150a14 50%, #090d16 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  font-size: 13px;
}

.persona-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-muted);
}

.persona-title span.badge-live {
  background: rgba(0, 242, 254, 0.15);
  color: var(--cyan-accent);
  border: 1px solid var(--border-cyan);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.persona-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}

.persona-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.persona-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
}

.persona-btn.active {
  background: linear-gradient(135deg, rgba(179, 27, 52, 0.3) 0%, rgba(0, 242, 254, 0.3) 100%);
  border-color: var(--cyan-accent);
  color: var(--text-white);
  box-shadow: var(--shadow-cyan-glow);
  font-weight: 600;
}

/* Main Container Layout */
.main-wrapper {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 16px;
  transition: var(--transition-normal);
  z-index: 50;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
}

.brand-info h2 {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-info span {
  font-size: 11px;
  color: var(--cyan-accent);
  font-weight: 600;
  letter-spacing: 0.5px;
}

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

.nav-section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-subtle);
  font-weight: 700;
  margin: 16px 12px 6px 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  position: relative;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-white);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(0, 242, 254, 0.12) 0%, rgba(18, 24, 36, 0.4) 100%);
  color: var(--cyan-accent);
  border-left: 3px solid var(--cyan-accent);
  font-weight: 600;
}

.nav-item.active svg {
  color: var(--cyan-accent);
  filter: drop-shadow(0 0 6px var(--cyan-accent));
}

.nav-badge {
  margin-left: auto;
  background: rgba(255, 51, 85, 0.2);
  color: var(--primary-ruby-glow);
  border: 1px solid var(--border-ruby);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--cyan-accent);
}

.user-details h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
}

.user-details p {
  font-size: 11px;
  color: var(--text-muted);
}

/* Main Content Area */
.main-content {
  flex: 1;
  background: var(--bg-main);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */
.top-header {
  height: 70px;
  padding: 0 28px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
}

.page-header-title h1 {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-header-title p {
  font-size: 12px;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Time Clock Widget */
.time-clock-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(12, 15, 23, 0.8);
  border: 1px solid var(--border-cyan);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-cyan-glow);
}

.clock-timer {
  font-family: monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan-accent);
  letter-spacing: 1px;
}

.btn-clock {
  background: linear-gradient(135deg, var(--green-success) 0%, #059669 100%);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.btn-clock:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.btn-clock.clocked-in {
  background: linear-gradient(135deg, var(--primary-ruby) 0%, #991b1b 100%);
}

/* Icon Buttons & Badges */
.icon-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
  border-color: var(--border-cyan);
}

.icon-btn .dot-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--primary-ruby-glow);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary-ruby-glow);
}

/* View Container */
.view-container {
  flex: 1;
  padding: 24px 28px;
  overflow-y: auto;
}

/* Grid Layouts */
.grid-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-cyan);
  box-shadow: var(--shadow-cyan-glow);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-ruby) 0%, var(--cyan-accent) 100%);
  opacity: 0.8;
}

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

.stat-header h3 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.stat-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: rgba(0, 242, 254, 0.1);
  color: var(--cyan-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-value {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 6px;
}

.stat-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-subtle);
}

.trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 11px;
}

.trend-badge.up { background: rgba(16, 185, 129, 0.15); color: var(--green-success); }
.trend-badge.down { background: rgba(239, 68, 68, 0.15); color: var(--red-danger); }

/* Glass Cards & Panels */
.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

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

.panel-header h2 {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-ruby) 0%, var(--primary-ruby-glow) 100%);
  color: white;
  box-shadow: var(--shadow-ruby-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(255, 51, 85, 0.4);
}

.btn-cyan {
  background: linear-gradient(135deg, var(--cyan-deep) 0%, var(--cyan-accent) 100%);
  color: #05070a;
  box-shadow: var(--shadow-cyan-glow);
}

.btn-cyan:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}

.btn-outline:hover {
  border-color: var(--cyan-accent);
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.03);
}

.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: var(--radius-sm); }

/* --- ADVANCED LOGIC FEATURES & ANIMATIONS --- */

/* 🚨 BOTÃO DE PÂNICO NEON PULSE */
.btn-panic {
  background: linear-gradient(135deg, #dc2626 0%, #ff003c 100%);
  color: white;
  font-weight: 800;
  border: 1px solid #ff3355;
  box-shadow: 0 0 15px rgba(255, 0, 60, 0.6);
  animation: panic-glow 1.5s infinite alternate;
}

@keyframes panic-glow {
  0% { box-shadow: 0 0 10px rgba(255, 0, 60, 0.5); }
  100% { box-shadow: 0 0 25px rgba(255, 0, 60, 0.9), 0 0 35px rgba(255, 51, 85, 0.6); }
}

.panic-pulse-neon {
  border: 2px solid #ff003c !important;
  box-shadow: 0 0 25px rgba(255, 0, 60, 0.8), inset 0 0 15px rgba(255, 0, 60, 0.3) !important;
  animation: panic-border 1.2s infinite alternate !important;
  background: rgba(255, 0, 60, 0.08) !important;
}

@keyframes panic-border {
  0% { border-color: #ff003c; }
  100% { border-color: #ff6b81; transform: scale(1.01); }
}

/* ⚠️ RISCO DE CLIENTE PULSE (RED ALERT FOR DELAYED QUOTAS) */
.client-risk-card {
  border: 2px solid #ef4444 !important;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, var(--bg-card) 100%) !important;
  animation: risk-pulse 2s infinite alternate;
}

@keyframes risk-pulse {
  0% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.3); }
  100% { box-shadow: 0 0 22px rgba(239, 68, 68, 0.7); }
}

/* CLIENT QUOTA PROGRESS BAR */
.quota-bar-wrapper {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  height: 10px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  margin-top: 6px;
}

.quota-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan-deep) 0%, var(--cyan-accent) 100%);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

/* ROUTINE CHECKLIST ITEMS */
.routine-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.routine-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.routine-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.routine-item.done {
  opacity: 0.6;
  text-decoration: line-through;
  border-color: rgba(16, 185, 129, 0.3);
}

/* PER-TASK TIME TRACKING BADGE */
.task-timer-badge {
  background: rgba(0, 242, 254, 0.12);
  color: var(--cyan-accent);
  border: 1px solid var(--border-cyan);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-family: monospace;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.task-timer-badge.active-timer {
  background: rgba(16, 185, 129, 0.2);
  color: var(--green-success);
  border-color: rgba(16, 185, 129, 0.4);
  animation: pulse-timer 1.5s infinite alternate;
}

@keyframes pulse-timer {
  0% { box-shadow: 0 0 4px rgba(16, 185, 129, 0.3); }
  100% { box-shadow: 0 0 12px rgba(16, 185, 129, 0.7); }
}

/* Gantt Chart & Kanban Layout */
.timeline-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.gantt-container {
  overflow-x: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.gantt-header-dates {
  display: grid;
  grid-template-columns: 220px repeat(14, 1fr);
  gap: 8px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
  margin-bottom: 12px;
  font-size: 11px;
  color: var(--text-subtle);
  font-weight: 700;
  text-transform: uppercase;
}

.gantt-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.gantt-task-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.gantt-bar-container {
  position: relative;
  height: 36px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
}

.gantt-bar {
  position: absolute;
  height: 24px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--cyan-deep) 0%, var(--cyan-accent) 100%);
  box-shadow: var(--shadow-cyan-glow);
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: #05070a;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-normal);
}

.gantt-bar.delayed {
  background: linear-gradient(90deg, #dc2626 0%, var(--primary-ruby-glow) 100%);
  box-shadow: var(--shadow-ruby-glow);
  color: white;
}

/* Kanban Board */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.kanban-column {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.column-header h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.column-count {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}

.task-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-cyan);
  box-shadow: var(--shadow-sm);
}

.task-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.tag-red { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.tag-cyan { background: rgba(0, 242, 254, 0.15); color: var(--cyan-accent); border: 1px solid var(--border-cyan); }
.tag-purple { background: rgba(168, 85, 247, 0.15); color: var(--purple-ai-glow); border: 1px solid rgba(168, 85, 247, 0.3); }
.tag-green { background: rgba(16, 185, 129, 0.15); color: var(--green-success); border: 1px solid rgba(16, 185, 129, 0.3); }

.task-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-white);
}

.task-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-subtle);
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Interactive Approval System - Video Player & Image Pin Canvas */
.approval-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

.media-viewer-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.video-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-md);
}

.video-container video {
  width: 100%;
  max-height: 440px;
  display: block;
  object-fit: contain;
}

.video-controls-custom {
  background: rgba(12, 15, 23, 0.95);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--border-light);
}

.timestamp-btn {
  background: rgba(0, 242, 254, 0.15);
  color: var(--cyan-accent);
  border: 1px solid var(--border-cyan);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.timestamp-btn:hover {
  background: var(--cyan-accent);
  color: #05070a;
}

/* Image Pin-Point Canvas */
.canvas-wrapper {
  position: relative;
  width: 100%;
  background: #090c14;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--border-light);
  min-height: 400px;
}

.canvas-image {
  max-width: 100%;
  max-height: 500px;
  display: block;
  cursor: crosshair;
}

.annotation-pin {
  position: absolute;
  width: 28px;
  height: 28px;
  background: var(--primary-ruby-glow);
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 14px var(--primary-ruby-glow);
  cursor: pointer;
  animation: pulse-pin 2s infinite;
}

@keyframes pulse-pin {
  0% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.15); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

.comments-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: 420px;
}

.comment-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comment-card.ai-flagged-urgent {
  border-color: var(--red-danger);
  background: rgba(239, 68, 68, 0.08);
}

.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.comment-author { font-weight: 700; color: var(--text-white); }

.comment-time {
  background: rgba(0, 242, 254, 0.15);
  color: var(--cyan-accent);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: none;
}

.comment-body { font-size: 13px; color: var(--text-muted); }

/* AI Sentiment Thermometer */
.ai-thermometer {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(0, 242, 254, 0.1) 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.ai-icon-pulse {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--purple-ai);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--purple-ai-glow);
}

.csat-score {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-white);
}

/* Financial Module Styling */
.financial-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.chart-container {
  position: relative;
  width: 100%;
  height: 320px;
}

/* Modal Overlay System */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 100%;
  max-width: 650px;
  box-shadow: var(--shadow-lg), var(--shadow-cyan-glow);
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

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

.modal-header h2 {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
}

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

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--cyan-accent);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2000;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: var(--text-white);
  box-shadow: var(--shadow-md), var(--shadow-cyan-glow);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  animation: slide-toast 0.3s ease forwards;
}

@keyframes slide-toast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Onboarding Gamified Checklist */
.onboarding-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-fast);
}

.step-card.completed {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.06);
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .sidebar { width: 80px; padding: 16px 10px; }
  .brand-info, .nav-section-label, .nav-item span, .user-details, .nav-badge { display: none; }
  .nav-item { justify-content: center; }
  .approval-layout, .financial-grid { grid-template-columns: 1fr; }
}
