:root {
  --bg-primary: #0a0a0b;
  --bg-secondary: #111113;
  --bg-tertiary: #18181b;
  --bg-card: #1a1a1d;
  --bg-hover: #252529;
  
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-muted: rgba(16, 185, 129, 0.15);
  
  --warning: #f59e0b;
  --warning-muted: rgba(245, 158, 11, 0.15);
  
  --danger: #ef4444;
  --danger-muted: rgba(239, 68, 68, 0.15);
  
  --border: #27272a;
  --border-light: #3f3f46;
  
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-display);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* Auth View - Split Layout */
.auth-split-container {
  min-height: 100vh;
  display: flex;
}

.auth-left {
  flex: 0 0 45%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 3rem;
  background: var(--bg-primary);
  position: relative;
}

.auth-left::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 70%;
  background: linear-gradient(180deg, transparent, var(--border), transparent);
}

.auth-right {
  flex: 1;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-visual-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 600px;
}

/* Visual Grid */
.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.visual-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.15);
}

.visual-card-large {
  grid-column: span 2;
}

.visual-gif-container {
  position: relative;
  height: 140px;
  overflow: hidden;
}

.visual-card-large .visual-gif-container {
  height: 180px;
}

.visual-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.visual-card:hover .visual-gif {
  opacity: 1;
  transform: scale(1.05);
}

.visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 11, 0.9) 100%);
  pointer-events: none;
}

.visual-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.visual-icon {
  font-size: 1.125rem;
}

/* Feature Pills */
.visual-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.feature-pill:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--text-primary);
}

.pill-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pillPulse 2s ease-in-out infinite;
}

@keyframes pillPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

/* Background Animated Elements */
.visual-bg-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.bg-circle-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  animation: circleFloat 20s ease-in-out infinite;
}

.bg-circle-2 {
  width: 300px;
  height: 300px;
  bottom: -50px;
  left: -50px;
  animation: circleFloat 15s ease-in-out infinite reverse;
}

@keyframes circleFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(20px, -20px) rotate(10deg); }
  66% { transform: translate(-10px, 15px) rotate(-5deg); }
}

.bg-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.3), transparent);
  animation: lineSweep 8s linear infinite;
}

.bg-line-1 {
  width: 200px;
  top: 20%;
  left: -200px;
  animation-delay: 0s;
}

.bg-line-2 {
  width: 150px;
  top: 50%;
  left: -150px;
  animation-delay: 2.5s;
}

.bg-line-3 {
  width: 180px;
  top: 75%;
  left: -180px;
  animation-delay: 5s;
}

@keyframes lineSweep {
  0% { transform: translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(calc(100vw + 400px)); opacity: 0; }
}

/* Fallback for old auth container (if still used) */
.auth-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background:
    radial-gradient(ellipse at top, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
    var(--bg-primary);
}

/* Responsive - Mobile */
@media (max-width: 900px) {
  .auth-split-container {
    flex-direction: column;
  }

  .auth-left {
    flex: none;
    max-width: 100%;
    padding: 2rem 1.5rem;
    order: 1;
  }

  .auth-left::after {
    display: none;
  }

  .auth-right {
    flex: none;
    min-height: 280px;
    order: 0;
    padding: 1.5rem;
  }

  .visual-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .visual-card-large {
    grid-column: span 1;
  }

  .visual-gif-container,
  .visual-card-large .visual-gif-container {
    height: 100px;
  }

  .visual-features {
    display: none;
  }

  .bg-circle-1,
  .bg-circle-2 {
    display: none;
  }
}

.auth-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  justify-content: center;
}

.tagline {
  color: var(--text-secondary);
  font-size: 1rem;
}

.auth-form {
  width: 100%;
  max-width: 380px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
  width: 100%;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
}

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

.auth-toggle {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.auth-toggle a {
  color: var(--accent);
  text-decoration: none;
  margin-left: 0.25rem;
}

.auth-toggle a:hover {
  text-decoration: underline;
}

/* Dashboard Layout */
#dashboard-view {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-header .logo {
  justify-content: flex-start;
  font-size: 1.25rem;
}

.nav-links {
  list-style: none;
  padding: 1rem;
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  margin-bottom: 0.25rem;
  transition: all 0.2s;
}

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

.nav-link.active {
  background: var(--accent-muted);
  color: var(--accent);
}

.nav-link .icon {
  font-size: 1.1rem;
  width: 1.5rem;
  text-align: center;
}

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

.user-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#user-name {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 260px;
  padding: 2rem;
  background: var(--bg-primary);
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

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

.panel-header h1 {
  font-size: 1.75rem;
  font-weight: 600;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--accent-muted);
  color: var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
}

.status-badge.status-warning {
  background: var(--warning-muted);
  color: var(--warning);
}

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

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s;
}

.stat-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
}

.stat-card.stat-warning .stat-icon {
  background: var(--warning-muted);
  color: var(--warning);
}

.stat-card.stat-success .stat-icon {
  background: var(--accent-muted);
  color: var(--accent);
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  font-family: var(--font-mono);
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Recent Section */
.recent-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Anomaly List */
.anomaly-list,
.anomaly-table {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.anomaly-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s;
}

.anomaly-item:hover {
  border-color: var(--border-light);
}

.anomaly-severity {
  width: 4px;
  height: 40px;
  border-radius: 2px;
  flex-shrink: 0;
}

.anomaly-severity.low { background: var(--text-muted); }
.anomaly-severity.medium { background: var(--warning); }
.anomaly-severity.high { background: #f97316; }
.anomaly-severity.critical { background: var(--danger); }

.anomaly-info {
  flex: 1;
  min-width: 0;
}

.anomaly-type {
  font-weight: 500;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.anomaly-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.anomaly-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.anomaly-source {
  font-family: var(--font-mono);
}

.anomaly-status {
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.anomaly-status.detected {
  background: var(--warning-muted);
  color: var(--warning);
}

.anomaly-status.resolved {
  background: var(--accent-muted);
  color: var(--accent);
}

.anomaly-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

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

/* Sources Grid */
.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.source-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all 0.2s;
}

.source-card:hover {
  border-color: var(--border-light);
}

.source-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.source-name {
  font-weight: 600;
  font-size: 1.0625rem;
}

.source-type {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.source-stats {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.source-stat {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.source-stat .count {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text-primary);
}

.source-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.source-sync {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Remediation Table */
.remediation-table {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.remediation-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.remediation-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-muted);
  color: var(--accent);
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
}

.remediation-info {
  flex: 1;
}

.remediation-action {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.remediation-anomaly {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.remediation-time {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Alerts Grid */
.alerts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.alert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.alert-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.alert-name {
  font-weight: 600;
}

.alert-toggle {
  position: relative;
  width: 44px;
  height: 24px;
}

.alert-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.alert-toggle .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-tertiary);
  border-radius: 12px;
  transition: 0.3s;
}

.alert-toggle .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: 0.3s;
}

.alert-toggle input:checked + .slider {
  background: var(--accent);
}

.alert-toggle input:checked + .slider:before {
  transform: translateX(20px);
  background: var(--bg-primary);
}

.alert-details {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.alert-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.alert-detail .label {
  color: var(--text-muted);
}

.alert-footer {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

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

.modal-content form {
  padding: 1.5rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.form-actions .btn-primary {
  width: auto;
}

.optional {
  color: var(--text-muted);
  font-weight: 400;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

/* Filter Group */
.filter-group {
  display: flex;
  gap: 0.75rem;
}

.filter-group select {
  padding: 0.5rem 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.875rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Large Modal */
.modal-large {
  max-width: 640px;
}

/* Form Row - Two columns */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row .flex-1 { flex: 1; }
.form-row .flex-2 { flex: 2; grid-column: span 1; }

.form-row .form-group.flex-2 {
  grid-column: span 1;
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Form Section Title */
.form-section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 1.5rem 0 1rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Form Hints */
.form-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.375rem;
}

/* Textarea Styling */
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  resize: vertical;
  min-height: 120px;
  transition: all 0.2s;
}

.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.form-group textarea::placeholder {
  color: var(--text-muted);
  font-family: var(--font-display);
}

/* Warehouse Fields */
.warehouse-fields {
  animation: fadeIn 0.2s ease-out;
}

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

/* Demo Mode Info Box */
.demo-info {
  text-align: center;
  padding: 2rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-light);
  margin-top: 1rem;
}

.demo-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.demo-info h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.demo-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 300px;
  margin: 0 auto;
}

/* Connection Test Result */
.connection-test-result {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  font-size: 0.875rem;
}

.connection-test-result.success {
  background: var(--accent-muted);
  border: 1px solid var(--accent);
}

.connection-test-result.success .test-status {
  color: var(--accent);
}

.connection-test-result.error {
  background: var(--danger-muted);
  border: 1px solid var(--danger);
}

.connection-test-result.error .test-status {
  color: var(--danger);
}

.connection-test-result.testing {
  background: var(--warning-muted);
  border: 1px solid var(--warning);
}

.connection-test-result.testing .test-status {
  color: var(--warning);
}

.test-status {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.test-message {
  color: var(--text-secondary);
}

/* Secondary Button */
.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

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

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Loading Spinner */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* Source Card - Connection Status */
.source-card .connection-status {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
}

.source-card .connection-status.connected {
  color: var(--accent);
}

.source-card .connection-status.disconnected {
  color: var(--danger);
}

.source-card .connection-status.demo {
  color: var(--warning);
}

/* ML Section */
.ml-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.ml-section h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ml-stats-grid {
  display: flex;
  gap: 2rem;
  margin-bottom: 0.75rem;
}

.ml-stat {
  display: flex;
  flex-direction: column;
}

.ml-stat-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.ml-stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.ml-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ML Badges */
.ml-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(16, 185, 129, 0.2));
  color: #a78bfa;
  border-radius: 10px;
  margin-left: 0.5rem;
}

.ml-badge.learning {
  background: var(--warning-muted);
  color: var(--warning);
}

/* ML-enriched anomaly styling */
.anomaly-item.ml-high-confidence {
  border-left: 3px solid #8b5cf6;
}

.anomaly-ml-details {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 0.25rem;
}

/* False Positive Button */
.btn-false-positive {
  color: var(--danger);
}

.btn-false-positive:hover {
  background: var(--danger-muted);
  color: var(--danger);
}

/* False positive status */
.anomaly-status.false_positive {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
}

/* Slack Integration Styles */
.slack-config-fields {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  animation: fadeIn 0.2s ease-out;
}

.slack-test-result {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-sm);
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.slack-test-result.success {
  background: var(--accent-muted);
  color: var(--accent);
}

.slack-test-result.error {
  background: var(--danger-muted);
  color: var(--danger);
}

.slack-test-result .test-icon {
  font-weight: 700;
}

.btn-small {
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
}

/* Alert Card Slack Info */
.alert-slack-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  margin-top: 0.75rem;
  font-size: 0.8125rem;
}

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

.slack-webhook-preview {
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.slack-enabled {
  color: var(--accent);
  font-weight: 500;
}

.teams-enabled {
  color: #6264A7;
  font-weight: 500;
}

.alert-teams-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(98, 100, 167, 0.1);
  border-radius: 6px;
  font-size: 0.85rem;
  margin-top: 8px;
}

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

.teams-webhook-preview {
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.setup-note {
  background: var(--bg-tertiary);
  border-left: 3px solid var(--accent);
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.875rem;
}

.setup-note code {
  background: var(--bg-secondary);
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

/* Settings Panel */
.settings-section {
  margin-bottom: 2.5rem;
}

.settings-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.settings-description {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.settings-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Severity Level Configuration */
.severity-levels {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.severity-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.severity-option:hover {
  background: var(--bg-hover);
}

.severity-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.severity-badge {
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.severity-badge.critical {
  background: rgba(220, 38, 38, 0.2);
  color: #ef4444;
}

.severity-badge.high {
  background: rgba(234, 88, 12, 0.2);
  color: #f97316;
}

.severity-badge.medium {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.severity-badge.low {
  background: rgba(234, 179, 8, 0.2);
  color: #eab308;
}

.severity-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-left: auto;
}

/* Setup Guide */
.setup-guide {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.step-number {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-muted);
  color: var(--accent);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.step-content p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.step-content a {
  color: var(--accent);
  text-decoration: none;
}

.step-content a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }

  .main-content {
    margin-left: 0;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sources-grid,
  .alerts-grid {
    grid-template-columns: 1fr;
  }

  .modal-large {
    max-width: calc(100% - 2rem);
    margin: 1rem;
  }

  .ml-stats-grid {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .settings-actions {
    flex-direction: column;
  }

  .severity-option {
    flex-wrap: wrap;
  }

  .severity-desc {
    width: 100%;
    margin-left: 2.25rem;
    margin-top: 0.25rem;
  }
}

/* ============ REPORTS & DASHBOARDS ============ */

/* Header Actions */
.header-actions {
  display: flex;
  gap: 0.75rem;
}

/* Reports Section */
.reports-section {
  margin-bottom: 2.5rem;
}

.reports-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Dashboard Templates Grid */
.dashboard-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.template-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all 0.2s;
}

.template-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.template-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.template-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.template-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* Charts Container */
.chart-controls {
  margin-bottom: 1rem;
}

.chart-controls select {
  padding: 0.5rem 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.875rem;
}

.charts-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.chart-card h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.chart-card canvas {
  width: 100% !important;
  height: 300px !important;
}

.chart-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.chart-card.half canvas {
  height: 250px !important;
}

/* Scheduled Reports Grid */
.scheduled-reports-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.scheduled-report-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.scheduled-report-card .report-info h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.scheduled-report-card .report-type,
.scheduled-report-card .report-schedule {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  margin-right: 0.75rem;
}

.scheduled-report-card .report-meta {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.scheduled-report-card .report-status {
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
}

.report-status.active {
  background: var(--accent-muted);
  color: var(--accent);
}

.report-status.inactive {
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

/* Generated Reports Grid */
.generated-reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.generated-report-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.generated-report-card .report-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.generated-report-card .report-info h4 {
  font-size: 0.9375rem;
  font-weight: 600;
}

.generated-report-card .report-type {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.25rem 0.5rem;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}

.generated-report-card .report-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-left: auto;
}

.generated-report-card .report-summary {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.generated-report-card .report-actions {
  display: flex;
  gap: 0.5rem;
}

/* Modal Fullscreen */
.modal-fullscreen {
  max-width: 90vw;
  width: 100%;
  max-height: 90vh;
}

/* Dashboard Content */
.dashboard-content {
  padding: 1.5rem;
  overflow-y: auto;
  max-height: calc(90vh - 80px);
}

.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

/* Executive Dashboard */
.executive-dashboard {
  max-width: 900px;
  margin: 0 auto;
}

.health-score-hero {
  text-align: center;
  padding: 2.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.health-score-hero.healthy {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, var(--bg-card) 100%);
  border-color: var(--accent);
}

.health-score-hero.warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, var(--bg-card) 100%);
  border-color: var(--warning);
}

.health-score-hero.critical {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, var(--bg-card) 100%);
  border-color: var(--danger);
}

.score-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}

.score-circle .score {
  font-size: 4rem;
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 1;
}

.health-score-hero.healthy .score { color: var(--accent); }
.health-score-hero.warning .score { color: var(--warning); }
.health-score-hero.critical .score { color: var(--danger); }

.score-circle .label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

.status-text {
  font-size: 1.125rem;
  font-weight: 500;
}

/* Summary Stats Grid */
.summary-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.summary-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.summary-stat .value {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-mono);
  display: block;
  color: var(--text-primary);
}

.summary-stat .label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: block;
  margin-top: 0.25rem;
}

.summary-stat .sublabel {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.5rem;
}

.summary-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.summary-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.summary-section p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* Quality Dashboard */
.quality-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.source-scorecard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.source-scorecard.healthy { border-left: 4px solid var(--accent); }
.source-scorecard.warning { border-left: 4px solid var(--warning); }
.source-scorecard.critical { border-left: 4px solid var(--danger); }
.source-scorecard.error { border-left: 4px solid var(--text-muted); }

.scorecard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.scorecard-header h3 {
  font-size: 1.0625rem;
  font-weight: 600;
}

.health-badge {
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
}

.health-badge.healthy {
  background: var(--accent-muted);
  color: var(--accent);
}

.health-badge.warning {
  background: var(--warning-muted);
  color: var(--warning);
}

.health-badge.critical {
  background: var(--danger-muted);
  color: var(--danger);
}

.quality-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.quality-metrics .metric {
  text-align: center;
}

.quality-metrics .value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  display: block;
}

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

.anomaly-summary {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Pipeline Dashboard */
.pipeline-dashboard {
  max-width: 800px;
}

.pipeline-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.overview-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

.overview-stat .value {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-mono);
  display: block;
}

.overview-stat .label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.overview-stat.healthy .value { color: var(--accent); }
.overview-stat.error .value { color: var(--danger); }

.pipeline-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pipeline-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.pipeline-item.healthy { border-left: 3px solid var(--accent); }
.pipeline-item.error { border-left: 3px solid var(--danger); }

.pipeline-status {
  font-size: 1rem;
}

.pipeline-info {
  flex: 1;
}

.pipeline-info h4 {
  font-size: 0.9375rem;
  font-weight: 600;
}

.pipeline-type {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.pipeline-sync {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Trends Dashboard */
.trends-dashboard {
  max-width: 800px;
}

.trends-overview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.trend-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

.trend-stat .value {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-mono);
  display: block;
}

.trend-stat .label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.trend-stat.critical .value { color: var(--danger); }

.trends-section {
  margin-bottom: 1.5rem;
}

.trends-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.source-bars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.source-bar-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.source-bar-item .source-name {
  width: 120px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-container {
  flex: 1;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
}

.bar-container .bar {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.source-bar-item .count {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  width: 40px;
  text-align: right;
}

/* Report View */
.report-view {
  max-width: 900px;
  margin: 0 auto;
}

.report-period {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.report-summary-text {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.report-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.report-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.report-stat .value {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-mono);
  display: block;
}

.report-stat .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.report-stat.critical .value { color: var(--danger); }
.report-stat.warning .value { color: var(--warning); }

.report-view h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 1.5rem 0 1rem 0;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.report-table th,
.report-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.report-table th {
  background: var(--bg-tertiary);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.report-table tr:hover {
  background: var(--bg-hover);
}

.more-items {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-style: italic;
}

.sources-summary {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.source-summary-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.source-summary-item .source-name {
  font-weight: 500;
}

.source-summary-item .source-type {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.source-summary-item .source-status {
  margin-left: auto;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.source-summary-item .source-status.active {
  background: var(--accent-muted);
  color: var(--accent);
}

.error {
  color: var(--danger);
  padding: 2rem;
  text-align: center;
}

/* Responsive for reports */
@media (max-width: 768px) {
  .dashboard-templates-grid {
    grid-template-columns: 1fr;
  }

  .chart-row {
    grid-template-columns: 1fr;
  }

  .summary-stats-grid,
  .report-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quality-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .pipeline-overview {
    grid-template-columns: 1fr;
  }

  .modal-fullscreen {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .generated-reports-grid {
    grid-template-columns: 1fr;
  }

  .scheduled-report-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
