/* ===================================
   Orchestrator Dashboard - Styles
   Mobile-first, Dark Theme
   =================================== */

:root {
  --bg-primary: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --bg-card: #16213e;
  --bg-hover: #1f3460;
  --text-primary: #eaeaea;
  --text-secondary: #a0a0a0;
  --text-muted: #666;
  --accent-primary: #4361ee;
  --accent-secondary: #3f37c9;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --border-color: #2a2a4a;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --radius: 12px;
  --radius-sm: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

#app {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 80px;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header h1 {
  font-size: 1.25rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent-primary), var(--success));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-right {
  display: flex;
  gap: 8px;
}

.connection-status {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 12px;
  background: var(--warning);
  color: #000;
}

.connection-status.connected {
  background: var(--success);
}

.connection-status.disconnected {
  background: var(--danger);
  color: #fff;
}

/* Buttons */
.btn-icon {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: var(--bg-hover);
}

.btn-icon:active {
  transform: scale(0.95);
}

.btn-icon svg {
  width: 20px;
  height: 20px;
}

.btn-icon.active {
  background: var(--accent-primary);
}

/* Voice Feedback */
.voice-feedback {
  display: none;
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  padding: 20px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 200;
  text-align: center;
}

.voice-feedback.active {
  display: block;
  animation: fadeIn 0.3s;
}

.voice-animation {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 12px;
}

.voice-animation span {
  width: 4px;
  height: 20px;
  background: var(--accent-primary);
  border-radius: 2px;
  animation: voice 0.5s ease-in-out infinite alternate;
}

.voice-animation span:nth-child(2) { animation-delay: 0.1s; }
.voice-animation span:nth-child(3) { animation-delay: 0.2s; }
.voice-animation span:nth-child(4) { animation-delay: 0.3s; }
.voice-animation span:nth-child(5) { animation-delay: 0.4s; }

@keyframes voice {
  from { height: 8px; }
  to { height: 24px; }
}

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  padding: 8px 16px;
  background: var(--bg-secondary);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab {
  flex: 1;
  min-width: fit-content;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.tab.active {
  background: var(--accent-primary);
  color: #fff;
}

/* Content */
.content {
  padding: 16px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.stat-icon.cpu { background: linear-gradient(135deg, #f59e0b, #d97706); }
.stat-icon.memory { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.stat-icon.disk { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.stat-icon.projects { background: linear-gradient(135deg, #10b981, #059669); }

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sections */
.section {
  margin-bottom: 24px;
}

.section h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent-primary);
}

.action-btn:active {
  transform: scale(0.98);
}

.action-btn svg {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
}

/* Projects Mini Grid */
.projects-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
}

.project-mini {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.project-mini:hover {
  background: var(--bg-hover);
}

.project-mini.healthy {
  border-color: var(--success);
}

.project-mini.unhealthy {
  border-color: var(--danger);
}

.project-mini.unknown {
  border-color: var(--text-muted);
}

.project-mini-name {
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-mini-status {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

/* Events List */
.events-list {
  background: var(--bg-card);
  border-radius: var(--radius);
  max-height: 200px;
  overflow-y: auto;
}

.event-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
  font-size: 0.875rem;
}

.event-item:last-child {
  border-bottom: none;
}

.event-time {
  color: var(--text-muted);
  font-family: monospace;
  flex-shrink: 0;
}

.event-text {
  color: var(--text-secondary);
}

/* Projects List */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.project-card:hover {
  background: var(--bg-hover);
}

.project-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.project-status-dot.healthy { background: var(--success); }
.project-status-dot.unhealthy { background: var(--danger); animation: pulse 2s infinite; }
.project-status-dot.unknown { background: var(--text-muted); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.project-info {
  flex: 1;
  min-width: 0;
}

.project-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.project-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.project-actions {
  display: flex;
  gap: 8px;
}

.btn-small {
  padding: 6px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--bg-hover);
  color: var(--text-primary);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-small:hover {
  background: var(--accent-primary);
}

.btn-small.danger:hover {
  background: var(--danger);
}

/* Logs */
.logs-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.logs-controls select {
  flex: 1;
  min-width: 120px;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.875rem;
}

.logs-container {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 12px;
  max-height: 60vh;
  overflow-y: auto;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.75rem;
}

.log-entry {
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
  white-space: pre-wrap;
  word-break: break-all;
}

.log-entry.error { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.log-entry.warn { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
.log-entry.info { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.log-entry.debug { background: rgba(107, 114, 128, 0.2); color: #9ca3af; }

/* Agents */
.agents-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.agent-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
}

.agent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.agent-name {
  font-weight: 600;
  text-transform: capitalize;
}

.agent-status {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.agent-status.running { background: var(--success); color: #000; }
.agent-status.stopped { background: var(--danger); color: #fff; }
.agent-status.error { background: var(--warning); color: #000; }

.agent-stats {
  display: flex;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.agent-stat {
  display: flex;
  gap: 4px;
}

.agent-stat strong {
  color: var(--text-primary);
}

/* Tasks */
.tasks-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.tasks-list {
  background: var(--bg-card);
  border-radius: var(--radius);
}

.task-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
}

.task-item:last-child {
  border-bottom: none;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal.active {
  display: flex;
  animation: fadeIn 0.3s;
}

.modal-content {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 1.125rem;
}

.btn-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
}

.modal-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--border-color);
}

.btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-secondary);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-hover);
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.875rem;
  animation: slideUp 0.3s;
  box-shadow: var(--shadow);
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); color: #000; }
.toast.info { background: var(--info); }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .quick-actions {
    grid-template-columns: repeat(4, 1fr);
  }

  .projects-mini-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Loading Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* System Tab - Backup Status */
.backup-status-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}

.backup-status-card.warning {
  border-left: 4px solid var(--warning);
}

.backup-status-card.danger {
  border-left: 4px solid var(--danger);
}

.backup-status-card.success {
  border-left: 4px solid var(--success);
}

.backup-info {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.backup-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.backup-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.backup-value {
  font-size: 1.125rem;
  font-weight: 600;
}

.backup-actions .btn {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.backup-alerts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.backup-alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.backup-alert.high {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

.backup-alert.critical {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

/* Quarantine */
.quarantine-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quarantine-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  border-left: 4px solid var(--danger);
}

.quarantine-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.quarantine-project {
  font-weight: 600;
}

.quarantine-reason {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.quarantine-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Approvals */
.approvals-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.approval-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  border-left: 4px solid var(--warning);
}

.approval-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.approval-action {
  font-weight: 600;
}

.approval-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.approval-buttons {
  display: flex;
  gap: 8px;
}

.approval-buttons .btn {
  flex: none;
  padding: 8px 16px;
}

.btn-approve {
  background: var(--success);
  color: #000;
}

.btn-reject {
  background: var(--danger);
  color: #fff;
}

/* Circuit Breakers */
.breakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.breaker-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.breaker-name {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breaker-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.breaker-status.closed {
  background: var(--success);
  color: #000;
}

.breaker-status.open {
  background: var(--danger);
  color: #fff;
}

.breaker-status.half-open {
  background: var(--warning);
  color: #000;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.875rem;
  background: var(--bg-card);
  border-radius: var(--radius);
}

/* ===================================
   History Tab - Charts
   =================================== */

/* Summary Cards */
.history-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.summary-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.summary-card.warning {
  border-color: var(--warning);
  background: rgba(245, 158, 11, 0.1);
}

.summary-card.danger {
  border-color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

.summary-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.summary-card.warning .summary-value {
  color: var(--warning);
}

.summary-card.danger .summary-value {
  color: var(--danger);
}

.summary-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Chart Controls */
.chart-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.chart-controls select {
  flex: 1;
  min-width: 100px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.875rem;
}

.chart-controls select:focus {
  outline: none;
  border-color: var(--accent-primary);
}

/* Chart Containers */
.chart-container {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  height: 300px;
  position: relative;
}

.chart-container-small {
  height: 180px;
  position: relative;
}

/* Charts Grid */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.chart-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--border-color);
}

.chart-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .history-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .charts-grid {
    grid-template-columns: 1fr;
  }

  .chart-controls {
    flex-direction: column;
  }

  .chart-controls select {
    width: 100%;
  }

  .summary-value {
    font-size: 1.5rem;
  }
}

/* ===================================
   Login Screen
   =================================== */

.hidden {
  display: none !important;
}

.login-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.login-container {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%;
  max-width: 380px;
  margin: 16px;
  text-align: center;
}

.login-logo {
  color: var(--accent-primary);
  margin-bottom: 16px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.login-title {
  font-size: 1.75rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent-primary), var(--success));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.login-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group input {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  width: 100%;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 8px;
}

.spinner {
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.login-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  text-align: center;
}

/* Logout button in header */
.btn-logout {
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background: var(--danger);
  color: #fff;
}

/* Alerts Section */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-header h2 {
  margin: 0;
}

.alerts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
}

.alert-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--border-color);
}

.alert-item.HIGH {
  border-left-color: var(--warning);
  background: rgba(245, 158, 11, 0.1);
}

.alert-item.CRITICAL {
  border-left-color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

.alert-item.LOW {
  border-left-color: var(--info);
}

.alert-item.MEDIUM {
  border-left-color: var(--accent-primary);
}

.alert-time {
  color: var(--text-muted);
  font-size: 0.75rem;
  white-space: nowrap;
  min-width: 130px;
}

.alert-content {
  flex: 1;
}

.alert-type {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 2px;
}

.alert-message {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.alert-project {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
}

.summary-card.clickable {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.summary-card.clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
