/* ===== DESIGN SYSTEM ===== */
:root {
  /* Colors */
  --bg-darkest:    #0a1014;
  --bg-dark:       #111b21;
  --bg-medium:     #182229;
  --bg-light:      #202c33;
  --bg-hover:      #2a3942;
  
  --accent-green:  #00d26a;
  --accent-teal:   #00a884;
  --accent-teal-dim: #006c56;
  --accent-blue:   #5b8def;
  --accent-purple: #9b59b6;
  --accent-gold:   #f5a623;
  --accent-red:    #f15c6d;
  
  --text-primary:  #e9edef;
  --text-secondary: #8696a0;
  --text-dim:      #54656f;
  
  --border-color:  #1f2d33;
  --border-accent: #2a3942;
  
  /* Typography */
  --font-main: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  
  /* Spacing */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-glow-green: 0 0 20px rgba(0,210,106,0.2);
  --shadow-glow-blue:  0 0 20px rgba(91,141,239,0.2);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--bg-darkest);
  font-family: var(--font-main);
  color: var(--text-primary);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}

/* ===== SCROLLBARS ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-accent); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ===== APP LAYOUT ===== */
.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 68px;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-color);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 10;
}

.sidebar:hover {
  width: 260px;
  box-shadow: 4px 0 24px rgba(0,0,0,0.4);
}

/* Logo */
.logo {
  padding: 16px 0 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.logo img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  transition: all 0.35s ease;
}

.sidebar:hover .logo img {
  width: 56px;
  height: 56px;
}

.logo h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-green);
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: all 0.3s ease 0.1s;
  margin-top: 6px;
}

.logo-subtitle {
  font-size: 0.65rem;
  color: var(--text-dim);
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: all 0.3s ease 0.12s;
}

.sidebar:hover .logo h2 {
  opacity: 1;
  height: auto;
}

.sidebar:hover .logo-subtitle {
  opacity: 1;
  height: auto;
}

/* Sidebar Nav */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 10px 0;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  width: 100%;
  text-align: right;
  transition: all 0.2s ease;
  border-radius: 0;
  position: relative;
}

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

.nav-btn.active {
  background: rgba(0, 168, 132, 0.15);
  color: var(--accent-green);
}

.nav-btn.active::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-green);
  border-radius: 0 3px 3px 0;
}

.nav-icon {
  width: 68px;
  text-align: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.nav-btn:hover .nav-icon {
  transform: scale(1.1);
}

.nav-label {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar:hover .nav-label {
  opacity: 1;
}

/* Section Title */
.sidebar-section-title {
  padding: 8px 0 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.sidebar:hover .sidebar-section-title {
  opacity: 1;
  padding: 8px 16px 4px;
  text-align: right;
}

/* Tab List */
.tab-list {
  list-style: none;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.tab-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s ease;
  position: relative;
}

.tab-item:hover {
  background: var(--bg-light);
}

.tab-item.active {
  background: var(--bg-hover);
}

.tab-item.active::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-teal);
  border-radius: 0 3px 3px 0;
}

.tab-avatar {
  width: 68px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-avatar::after {
  content: attr(data-initial);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
}

/* Override: use the element's text content for avatar */
.tab-avatar {
  font-size: 0;
}

.tab-item .tab-avatar {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 16px;
  flex-shrink: 0;
}

.tab-name-text {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar:hover .tab-name-text {
  opacity: 1;
}

.tab-actions {
  display: flex;
  gap: 4px;
  padding-left: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.sidebar:hover .tab-item:hover .tab-actions {
  opacity: 1;
}

.tab-action-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  transition: all 0.15s ease;
}

.tab-action-btn:hover {
  background: var(--bg-medium);
  color: var(--text-primary);
}

.tab-action-btn.delete:hover {
  color: var(--accent-red);
}

/* Stats Widget */
.stats-widget {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  border-top: 1px solid var(--border-color);
  gap: 0;
  flex-shrink: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar:hover .stat-item {
  opacity: 1;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-green);
  line-height: 1;
}

.stat-label {
  font-size: 0.6rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 24px;
  background: var(--border-color);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar:hover .stat-divider {
  opacity: 1;
}

/* Add Button */
.add-btn {
  display: flex;
  align-items: center;
  padding: 14px 0;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
  color: white;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-main);
  transition: all 0.25s ease;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.add-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.25s ease;
}

.add-btn:hover::before {
  background: rgba(255,255,255,0.1);
}

.add-btn:active {
  transform: scale(0.98);
}

.add-btn-icon {
  width: 68px;
  text-align: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.add-btn-text {
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.sidebar:hover .add-btn-text {
  opacity: 1;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--bg-darkest);
}

.view {
  display: none;
  width: 100%;
  height: 100%;
}

.view.active {
  display: flex;
  flex-direction: column;
}

/* ===== WEBVIEW AREA ===== */
.webview-container {
  flex: 1;
  position: relative;
  background: #efeae2;
}

webview {
  display: none;
  width: 100%;
  height: 100%;
  border: none;
}

webview.active {
  display: flex;
}

/* Welcome Screen */
.welcome-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
  background: linear-gradient(145deg, var(--bg-dark), var(--bg-medium));
}

.welcome-screen.hidden {
  display: none;
}

.welcome-icon {
  font-size: 4rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.welcome-screen h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
}

.welcome-screen p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.welcome-features {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.feature-card:hover {
  border-color: var(--accent-teal);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.5rem;
}

/* ===== REPORT VIEW ===== */
.report-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-darkest);
}

/* Report Header */
.report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px 16px;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  gap: 16px;
  flex-wrap: wrap;
}

.report-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.report-subtitle {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 2px;
}

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

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

.report-account-filter select {
  background: var(--bg-light);
  border: 1px solid var(--border-accent);
  color: var(--text-primary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
  direction: rtl;
}

.report-account-filter select:focus {
  outline: none;
  border-color: var(--accent-teal);
}

.report-period-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-darkest);
}

.period-btn {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 14px;
  background: transparent;
  color: var(--text-secondary);
  font: 700 0.84rem var(--font-main);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.period-btn:hover { color: var(--text-primary); background: var(--bg-hover); }
.period-btn.active { color: white; border-color: rgba(0,168,132,.45); background: linear-gradient(135deg, var(--accent-teal-dim), #244b65); }
.period-btn:disabled { opacity: .6; cursor: wait; }

.generate-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-glow-green);
  white-space: nowrap;
}

.generate-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(0,168,132,0.4);
}

.generate-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.generate-btn-icon {
  font-size: 1rem;
  animation: none;
}

.generate-btn:not(:disabled):hover .generate-btn-icon {
  animation: sparkle 0.6s ease;
}

@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.3) rotate(15deg); }
}

/* Stats Cards */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px 28px;
  flex-shrink: 0;
}

.stat-card {
  background: var(--bg-medium);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-blue));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card-icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.stat-card-value {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent-green);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* Recording Banner */
.recording-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 28px 12px;
  padding: 10px 16px;
  background: rgba(0, 210, 106, 0.08);
  border: 1px solid rgba(0, 210, 106, 0.2);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: var(--accent-green);
  flex-shrink: 0;
}

.recording-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Report Content Area */
.report-content-area {
  flex: 1;
  overflow-y: auto;
  padding: 0 28px 28px;
}

.monthly-scores-panel {
  margin: 26px 0 12px;
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(24,34,41,.96), rgba(17,27,33,.96));
  box-shadow: var(--shadow-md);
}

.monthly-scores-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; }
.monthly-scores-heading h2 { color:var(--text-primary); font-size:1.08rem; font-weight:800; }
.monthly-scores-heading p { margin-top:3px; color:var(--text-dim); font-size:.78rem; }
.monthly-score-month { color:var(--accent-teal); font-size:.88rem; font-weight:700; white-space:nowrap; }
.monthly-scores-table-wrap { overflow-x:auto; border:1px solid var(--border-color); border-radius:12px; }
.monthly-scores-table { width:100%; min-width:820px; border-collapse:collapse; text-align:right; }
.monthly-scores-table th { padding:11px 12px; background:#111b21; color:var(--text-secondary); font-size:.76rem; font-weight:700; white-space:nowrap; }
.monthly-scores-table td { padding:11px 12px; border-top:1px solid var(--border-color); color:var(--text-primary); font-size:.8rem; vertical-align:top; }
.monthly-scores-table tbody tr:hover { background:rgba(42,57,66,.48); }
.monthly-scores-table .score-improvement { min-width:240px; color:var(--text-secondary); line-height:1.6; }
.scores-empty { text-align:center; color:var(--text-dim)!important; padding:22px!important; }
.score-pill { display:inline-block; min-width:58px; padding:4px 8px; border-radius:99px; text-align:center; direction:ltr; font-weight:800; }
.score-high { color:#6ce6a4; background:rgba(0,210,106,.12); }
.score-medium { color:#f5c76b; background:rgba(245,166,35,.12); }
.score-low { color:#ff8691; background:rgba(241,92,109,.12); }

/* Empty State */
.report-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  text-align: center;
  gap: 16px;
}

.empty-icon {
  font-size: 4rem;
  opacity: 0.6;
}

.report-empty h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.report-empty p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  max-width: 400px;
}

.empty-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  text-align: right;
}

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

.check-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

/* Loading State */
.report-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  gap: 24px;
}

.ai-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ai-brain {
  font-size: 3rem;
  animation: think 1.5s ease-in-out infinite;
}

@keyframes think {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.15); filter: brightness(1.3); }
}

.ai-waves {
  display: flex;
  gap: 6px;
  align-items: center;
}

.wave {
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--accent-teal), var(--accent-blue));
  border-radius: 4px;
  animation: wave 1s ease-in-out infinite;
}

.wave:nth-child(2) { animation-delay: 0.15s; }
.wave:nth-child(3) { animation-delay: 0.3s; }

@keyframes wave {
  0%, 100% { height: 8px; opacity: 0.4; }
  50% { height: 28px; opacity: 1; }
}

.report-loading h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.report-loading p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  min-height: 20px;
  transition: all 0.3s ease;
}

/* Report Output */
.report-output {
  animation: fadeInUp 0.5s ease;
}

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

.report-meta {
  margin-bottom: 16px;
}

.report-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-chip {
  padding: 6px 12px;
  background: var(--bg-medium);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.ai-chip {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  background: rgba(0,168,132,0.08);
}

/* Report Text Styling */
.report-text {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-wrap: break-word;
}

.phone-number {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  white-space: nowrap;
}

.report-text .report-h1 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-green);
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.report-text .report-h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-teal);
  margin: 20px 0 10px;
}

.report-text .report-h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-blue);
  margin: 16px 0 8px;
}

.report-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 14px 0 22px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: rgba(17, 27, 33, 0.72);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.report-table {
  width: 100%;
  min-width: 680px;
  border-collapse: separate;
  border-spacing: 0;
  text-align: right;
  line-height: 1.7;
}

.report-table th {
  position: sticky;
  top: 0;
  padding: 12px 14px;
  color: var(--text-primary);
  background: rgba(0, 168, 132, 0.16);
  border-bottom: 1px solid var(--border-accent);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.report-table td {
  padding: 12px 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(52, 72, 83, 0.58);
  vertical-align: top;
  font-size: 0.82rem;
  white-space: pre-wrap;
}

.report-table tbody tr:nth-child(even) { background: rgba(42, 57, 66, 0.28); }
.report-table tbody tr:hover { background: rgba(0, 168, 132, 0.08); }
.report-table tbody tr:last-child td { border-bottom: 0; }
.report-table td:first-child { color: var(--text-primary); font-weight: 700; min-width: 145px; }
.report-table td:nth-child(2), .report-table td:nth-child(3) { text-align: center; white-space: nowrap; }

.report-text .report-list {
  padding-right: 20px;
  margin: 8px 0;
}

.report-text .report-ordered-list {
  padding-right: 24px;
  margin: 10px 0;
}

.report-text .report-list li,
.report-text .report-ordered-list li {
  margin-bottom: 8px;
  padding-inline-start: 3px;
}

.report-text .report-quote {
  margin: 8px 18px 14px 0;
  padding: 10px 14px;
  border-right: 3px solid var(--accent-teal);
  border-radius: 8px 0 0 8px;
  background: rgba(0, 168, 132, 0.07);
  color: var(--text-secondary);
  white-space: pre-wrap;
}

.report-text .report-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 16px 0;
}

.report-text strong {
  color: var(--accent-gold);
  font-weight: 600;
}
.report-text strong.report-error-flag,
.report-text strong.report-improvement-flag { display:inline-block; padding:2px 8px; border-radius:999px; font-size:.82em; }
.report-text strong.report-error-flag { color:#ffb4b4; background:rgba(220,53,69,.16); border:1px solid rgba(220,53,69,.38); }
.report-text strong.report-improvement-flag { color:#ffe19a; background:rgba(217,153,0,.14); border:1px solid rgba(217,153,0,.34); }

/* Report Actions */
.report-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  justify-content: flex-end;
}

.action-btn {
  padding: 9px 18px;
  border: 1px solid var(--border-accent);
  background: var(--bg-medium);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  background: rgba(0,168,132,0.08);
}

.refresh-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(91,141,239,0.08);
}

/* Error State */
.report-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  gap: 16px;
  text-align: center;
}

.error-icon {
  font-size: 3rem;
}

.report-error h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-red);
}

.report-error p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  max-width: 400px;
  background: rgba(241, 92, 109, 0.08);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(241, 92, 109, 0.2);
}

/* Hidden Utility */
.hidden {
  display: none !important;
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  z-index: 1;
  background: var(--bg-medium);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  width: 420px;
  max-width: 90vw;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9) translateY(-20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

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

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

.modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

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

.modal-body {
  padding: 20px 24px;
}

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

.modal-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-dark);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
  direction: rtl;
}

.modal-input:focus {
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(0,168,132,0.1);
}

.modal-input.shake {
  animation: shake 0.4s ease;
  border-color: var(--accent-red);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.input-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 8px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border-color);
}

.modal-btn {
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.modal-btn.cancel {
  background: var(--bg-light);
  color: var(--text-secondary);
}

.modal-btn.cancel:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.modal-btn.save {
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
  color: white;
  box-shadow: var(--shadow-glow-green);
}

.modal-btn.save:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(0,168,132,0.5);
}

.modal-btn.save:active {
  transform: scale(0.97);
}

/* ===== Report Quick Toolbar ===== */
.report-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
}

.lead-followup-counts { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:0 0 18px; color:var(--text-primary); }
.lead-followup-counts span { padding:7px 11px; border:1px solid var(--border-color); border-radius:99px; background:var(--bg-medium); color:var(--text-secondary); font-size:.78rem; font-weight:700; }
.lead-followup-counts b { margin-inline-start:4px; color:var(--accent-teal); }
.report-current-stats { margin:0 0 20px; padding:14px 16px; border:1px solid var(--border-color); border-radius:var(--radius-md); background:var(--bg-card); }
.report-current-stats h3 { margin:0 0 12px; color:var(--text-primary); font-size:.95rem; }
.report-current-stats-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:8px; }
.report-current-stats-grid span { display:flex; justify-content:space-between; gap:8px; padding:9px 11px; border-radius:8px; background:var(--bg-medium); color:var(--text-secondary); font-size:.82rem; }
.report-current-stats-grid b { color:var(--accent-teal); direction:ltr; }
.report-response-metrics, .report-evidence-coverage { margin:0 0 20px; padding:16px; border:1px solid var(--border-color); border-radius:var(--radius-md); background:var(--bg-card); }
.report-response-metrics > h2, .report-evidence-coverage > h2 { margin:0; color:var(--text-primary); font-size:1rem; }
.response-metrics-note, .evidence-coverage-note { margin:7px 0 12px; color:var(--text-dim); font-size:.8rem; line-height:1.7; }
.response-metrics-table { width:100%; border-collapse:collapse; font-size:.8rem; }
.response-metrics-table th, .response-metrics-table td { padding:10px 9px; border-bottom:1px solid var(--border-color); text-align:right; vertical-align:top; }
.response-metrics-table thead th { color:var(--accent-blue); background:var(--bg-medium); }
.response-metrics-table tbody th { color:var(--text-primary); white-space:nowrap; }
.response-metrics-table tbody td { color:var(--text-secondary); }
.response-metrics-table tr:last-child th, .response-metrics-table tr:last-child td { border-bottom:0; }
.evidence-coverage-card { margin-top:9px; padding:11px 13px; border:1px solid var(--border-color); border-radius:9px; background:var(--bg-medium); }
.evidence-coverage-card strong { color:var(--accent-teal); font-size:.85rem; }
.evidence-coverage-card p { margin:6px 0 0; color:var(--text-secondary); font-size:.8rem; line-height:1.65; }
.evidence-coverage-card--insufficient { border-color:rgba(245,158,11,.45); background:rgba(120,75,10,.12); }
.evidence-coverage-card--insufficient strong { color:#ffc36b; }
@media (max-width:900px) { .response-metrics-table { min-width:760px; } .report-response-metrics { overflow-x:auto; } }
.report-update-note { margin:0 0 18px; padding:10px 12px; border-right:3px solid var(--accent-blue); border-radius:7px; background:rgba(59,130,246,.08); color:var(--text-secondary); font-size:.82rem; line-height:1.7; }
.report-message-times { margin:0 0 20px; padding:16px; border:1px solid var(--border-color); border-radius:var(--radius-md); background:var(--bg-card); }
.report-message-times > h2 { margin:0; color:var(--text-primary); font-size:1rem; }
.message-times-note { margin:6px 0 12px; color:var(--text-dim); font-size:.78rem; }
.message-times-card { margin-top:10px; padding:12px 14px; border:1px solid var(--border-color); border-radius:10px; background:var(--bg-medium); }
.message-times-card h3 { margin:0 0 9px; color:var(--accent-blue); font-size:.88rem; }
.message-times-table { width:100%; border-collapse:collapse; font-size:.82rem; }
.message-times-table th, .message-times-table td { padding:8px 10px; border-bottom:1px solid var(--border-color); text-align:right; }
.message-times-table tr:last-child th, .message-times-table tr:last-child td { border-bottom:0; }
.message-times-table th { width:38%; color:var(--text-secondary); font-weight:600; }
.message-times-table td { color:var(--text-primary); direction:rtl; }
.message-times-table .message-times-sales td { color:var(--accent-teal); font-weight:700; }
.report-audio-evidence { margin:22px 0 8px; padding:18px; border:1px solid var(--border-color); border-radius:var(--radius-md); background:var(--bg-card); }
.report-audio-evidence > h2 { margin:0; color:var(--text-primary); font-size:1.05rem; }
.audio-evidence-source { margin:7px 0 14px; color:var(--text-dim); font-size:.8rem; }
.audio-evidence-summary { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:8px; margin:12px 0 16px; }
.audio-evidence-summary span { display:flex; justify-content:space-between; gap:10px; padding:10px 12px; border:1px solid var(--border-color); border-radius:9px; background:var(--bg-medium); color:var(--text-secondary); font-size:.8rem; }
.audio-evidence-summary b { color:var(--accent-teal); }
.audio-evidence-summary .audio-summary-abusive { color:#ffc0c0; border-color:rgba(239,68,68,.42); background:rgba(127,29,29,.2); }
.audio-evidence-summary .audio-summary-abusive b { color:#ff7777; }
.audio-evidence-card { margin-top:10px; padding:13px 15px; border:1px solid var(--border-color); border-radius:10px; background:var(--bg-medium); }
.audio-evidence-card h3 { margin:0; color:var(--accent-teal); font-size:.88rem; }
.audio-evidence-card--abusive { border:2px solid rgba(239,68,68,.78); background:linear-gradient(110deg,rgba(127,29,29,.26),var(--bg-medium) 70%); box-shadow:0 0 0 1px rgba(239,68,68,.12); }
.audio-evidence-card--abusive h3 { color:#ff8585; }
.audio-evidence-classification { display:inline-flex; margin:8px 0 0; padding:4px 9px; border:1px solid rgba(148,163,184,.25); border-radius:999px; color:var(--text-secondary); background:rgba(148,163,184,.08); font-size:.76rem; }
.audio-evidence-classification--abusive { color:#ffd0d0; border-color:rgba(239,68,68,.62); background:rgba(220,53,69,.2); font-weight:700; }
.audio-evidence-reason { margin:7px 0 10px; color:#ffaaaa; font-size:.78rem; line-height:1.65; }
.audio-evidence-meta { margin:6px 0 10px; color:var(--text-dim); font-size:.78rem; }
.audio-evidence-card > strong { color:var(--text-secondary); font-size:.82rem; }
.audio-transcript-raw { margin:7px 0 10px; padding:11px 13px; border-radius:8px; background:rgba(0,0,0,.18); color:var(--text-primary); white-space:pre-wrap; overflow-wrap:anywhere; text-align:start; font:inherit; line-height:1.75; }
.audio-evidence-tone { margin:0; color:var(--text-secondary); font-size:.82rem; line-height:1.7; white-space:pre-wrap; overflow-wrap:anywhere; }
.contact-status-group { margin-top:12px; border-radius:10px; overflow:hidden; }
.contact-status-group h3 { display:flex; align-items:center; gap:8px; padding:9px 12px; font-size:.86rem; }
.contact-status-group h3 span { display:inline-grid; place-items:center; min-width:22px; height:22px; padding:0 5px; border-radius:50%; font-size:.72rem; }
.contact-status-group.lead h3 { color:#6ce6a4; background:rgba(0,210,106,.09); }
.contact-status-group.lead h3 span { color:#6ce6a4; background:rgba(0,210,106,.16); }
.contact-status-group.followup h3 { color:#8bb9ff; background:rgba(91,141,239,.09); }
.contact-status-group.followup h3 span { color:#8bb9ff; background:rgba(91,141,239,.16); }
.report-phone-copy { display:inline-flex; direction:ltr; align-items:center; vertical-align:middle; gap:5px; margin:0 3px; white-space:nowrap; }
.copy-phone-inline { border:1px solid rgba(0,168,132,.3); border-radius:6px; padding:2px 7px; background:rgba(0,168,132,.1); color:var(--accent-teal); font:inherit; font-size:.72em; cursor:pointer; }
.copy-phone-inline:hover { background:rgba(0,168,132,.22); border-color:var(--accent-teal); }

@media (max-width: 900px) {
  .report-header { align-items:flex-start; padding:16px; }
  .report-header-actions { width:100%; }
  .report-period-actions { flex:1; }
  .period-btn { flex:1; padding:8px 7px; font-size:.76rem; }
  .report-content-area { padding:0 16px 20px; }
  .monthly-scores-panel { padding:14px; }
}

.toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.toolbar-btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent-teal);
  transform: translateY(-1px);
}

.toolbar-btn.danger {
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.3);
}

.toolbar-btn.danger:hover {
  background: rgba(255, 107, 107, 0.15);
  border-color: #ff6b6b;
}

.tb-icon {
  font-size: 1rem;
}

/* ===== Empty & Error State Action Boxes ===== */
.empty-action-box {
  background: linear-gradient(135deg, rgba(0, 168, 132, 0.12), rgba(0, 100, 220, 0.12));
  border: 1px solid rgba(0, 168, 132, 0.35);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 20px 0;
  text-align: center;
}

.action-box-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-green);
  margin-bottom: 12px;
}

.action-box-buttons, .error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 14px;
}

.cta-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
  color: white;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 168, 132, 0.3);
  transition: all 0.25s ease;
}

.cta-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 168, 132, 0.45);
}

.cta-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cta-secondary-btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent-teal);
}

/* ===== Large Modal & Messages Preview ===== */
.modal-large {
  max-width: 750px;
  width: 90%;
}

.modal-scrollable {
  max-height: 60vh;
  overflow-y: auto;
  padding: 16px 24px;
}

.modal-footer-info {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-right: auto;
}

.preview-messages-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-msg-item {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.5;
  border-right: 4px solid transparent;
}

.preview-msg-item.sales {
  background: rgba(0, 168, 132, 0.12);
  border-right-color: var(--accent-green);
}

.preview-msg-item.customer {
  background: rgba(59, 130, 246, 0.12);
  border-right-color: var(--accent-blue);
}

.msg-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.8rem;
}

.msg-sender {
  font-weight: 700;
  color: var(--text-primary);
}

.msg-time {
  color: var(--text-dim);
  direction: ltr;
}

.msg-body {
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}

.preview-empty, .preview-loading {
  text-align: center;
  padding: 30px;
  color: var(--text-dim);
}

/* ===== Toast Container & Notification ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.3s ease;
  pointer-events: auto;
  max-width: 400px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  border-color: var(--accent-green);
  background: #0f2c23;
  color: #55efc4;
}

.toast-error {
  border-color: #ff6b6b;
  background: #2d1215;
  color: #ff8787;
}

.toast-info {
  border-color: var(--accent-blue);
  background: #0d2137;
  color: #74b9ff;
}

/* Schedule Config & Settings Modal Styles */
.modal-medium {
  width: 90%;
  max-width: 580px;
}

.modal-intro {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.modal-textarea {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 10px 12px;
  font-family: monospace;
  font-size: 0.9rem;
  resize: vertical;
  line-height: 1.5;
  box-sizing: border-box;
}

.modal-textarea:focus {
  outline: none;
  border-color: var(--accent-teal);
}

.schedule-config-box {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.15);
}

.schedule-toggle-row {
  margin-bottom: 12px;
}

.toggle-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.toggle-checkbox-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent-teal);
  cursor: pointer;
}

.schedule-inputs-area {
  transition: opacity 0.2s ease;
}

.schedule-inputs-area.disabled {
  opacity: 0.35;
  pointer-events: none;
}

.schedule-times-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.time-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-sublabel {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
}

.time-input {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.95rem;
  direction: ltr;
  text-align: center;
  box-sizing: border-box;
}

.time-input:focus {
  outline: none;
  border-color: var(--accent-teal);
}

.days-selector-group {
  margin-bottom: 10px;
}

.work-days-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.day-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-medium);
  color: var(--text-secondary);
  font-size: 0.78rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
}

.day-chip:has(input:checked) {
  border-color: var(--accent-teal);
  background: rgba(0, 168, 132, 0.15);
  color: var(--text-primary);
  font-weight: 600;
}

.day-chip input[type="checkbox"] {
  accent-color: var(--accent-teal);
  cursor: pointer;
}

/* Schedules Overview Modal Styles */
.schedules-accounts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.schedule-account-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: border-color 0.2s;
}

.schedule-account-card:hover {
  border-color: var(--accent-teal);
}

.schedule-card-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.schedule-card-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  flex-shrink: 0;
}

.schedule-card-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.schedule-card-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.schedule-card-hours {
  color: var(--accent-teal);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.schedule-card-days {
  color: var(--text-dim);
  font-size: 0.76rem;
}

.schedule-card-btn {
  background: rgba(0, 168, 132, 0.15);
  border: 1px solid var(--accent-teal);
  color: var(--accent-teal);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}

.schedule-card-btn:hover {
  background: var(--accent-teal);
  color: #fff;
}


/* Print and Export Buttons */
.action-btn.print-btn {
  background: rgba(91, 141, 239, 0.15);
  border: 1px solid rgba(91, 141, 239, 0.4);
  color: #8bb9ff;
}

.action-btn.print-btn:hover {
  background: rgba(91, 141, 239, 0.28);
}

.action-btn.export-btn {
  background: rgba(0, 210, 106, 0.15);
  border: 1px solid rgba(0, 210, 106, 0.4);
  color: #6ce6a4;
}

.action-btn.export-btn:hover {
  background: rgba(0, 210, 106, 0.28);
}

/* Print Media Styles */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .sidebar, .report-toolbar, .report-actions, .report-period-actions, .report-account-filter, .monthly-scores-panel, .toast-container, .modal {
    display: none !important;
  }
  .app-container, .main-content, .view, .report-view, .report-content-area, .report-output {
    display: block !important;
    position: static !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }
  .report-text {
    color: #111 !important;
  }
  .report-table, .response-metrics-table {
    border-collapse: collapse !important;
  }
  .report-table th, .report-table td, .response-metrics-table th, .response-metrics-table td {
    border: 1px solid #ccc !important;
    color: #111 !important;
  }
}

