/* =========================================================
   JM NOC MONITOR - DESIGN SYSTEM (DARK MODE HIGH RELIABILITY)
   ========================================================= */

:root {
  --bg-primary: #070a12;
  --bg-secondary: #0d1322;
  --bg-card: #11182c;
  --bg-card-hover: #162038;
  --bg-surface: #18233c;
  --bg-input: #0b101e;
  
  --border-color: #1e2d4d;
  --border-subtle: #16223b;
  --border-focus: #3b82f6;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Status Colors (Neon Glow Palette) */
  --status-up: #10b981;
  --status-up-glow: rgba(16, 185, 129, 0.35);
  --status-up-bg: rgba(16, 185, 129, 0.12);
  --status-up-border: rgba(16, 185, 129, 0.3);

  --status-down: #ef4444;
  --status-down-glow: rgba(239, 68, 68, 0.45);
  --status-down-bg: rgba(239, 68, 68, 0.14);
  --status-down-border: rgba(239, 68, 68, 0.4);

  --status-partial: #f59e0b;
  --status-partial-glow: rgba(245, 158, 11, 0.4);
  --status-partial-bg: rgba(245, 158, 11, 0.12);
  --status-partial-border: rgba(245, 158, 11, 0.35);

  --status-unknown: #64748b;
  --status-unknown-bg: rgba(100, 116, 139, 0.15);

  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;

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

  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-glow-red: 0 0 25px rgba(239, 68, 68, 0.3);
  --shadow-glow-amber: 0 0 20px rgba(245, 158, 11, 0.25);
  --shadow-glow-green: 0 0 20px rgba(16, 185, 129, 0.2);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(30, 58, 138, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(15, 23, 42, 0.8) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Grid Background Effect */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  z-index: 0;
}

.app-container {
  position: relative;
  z-index: 1;
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 3rem 1.5rem;
}

/* Header */
.noc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(13, 19, 34, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #1e3a8a, #06b6d4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.35);
  position: relative;
}

.brand-logo-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, #3b82f6, #10b981);
  z-index: -1;
  opacity: 0.5;
}

.brand-titles h1 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  text-transform: uppercase;
}

.brand-titles p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Connection Status Badge */
.connection-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: #34d399;
}

.connection-pill.disconnected {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.connection-pill.reconnecting {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.led-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.pulse-animation {
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* Clock */
.clock-display {
  font-family: 'JetBrains Mono', monospace, monospace;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-surface);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

/* NOC Action Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

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

.btn-primary {
  background: #2563eb;
  border-color: #3b82f6;
  color: #fff;
}

.btn-primary:hover {
  background: #1d4ed8;
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

.btn-audio {
  position: relative;
}

.btn-audio.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.btn-audio.muted {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}

/* Banner de Alerta Crítico */
.critical-alert-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.25), rgba(185, 28, 28, 0.35), rgba(239, 68, 68, 0.25));
  border: 1px solid var(--status-down);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  color: #fecaca;
  box-shadow: var(--shadow-glow-red);
  animation: banner-glow 2.5s infinite alternate ease-in-out;
}

.critical-alert-banner.active {
  display: flex;
}

@keyframes banner-glow {
  0% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.2); }
  100% { box-shadow: 0 0 30px rgba(239, 68, 68, 0.5); }
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.banner-icon {
  font-size: 1.4rem;
  color: #ef4444;
  animation: siren 1s infinite alternate;
}

@keyframes siren {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px red); }
  100% { transform: scale(1.15); filter: drop-shadow(0 0 8px red); }
}

.banner-text strong {
  color: #fff;
  font-size: 0.95rem;
}

.banner-text p {
  font-size: 0.8rem;
  color: #fca5a5;
}

/* Métricas KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

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

.kpi-info p {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.kpi-info h3 {
  font-size: 1.85rem;
  font-weight: 700;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1;
}

.kpi-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.kpi-card.total .kpi-icon {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.kpi-card.up .kpi-icon {
  background: var(--status-up-bg);
  color: var(--status-up);
  border: 1px solid var(--status-up-border);
}

.kpi-card.partial .kpi-icon {
  background: var(--status-partial-bg);
  color: var(--status-partial);
  border: 1px solid var(--status-partial-border);
}

.kpi-card.down .kpi-icon {
  background: var(--status-down-bg);
  color: var(--status-down);
  border: 1px solid var(--status-down-border);
}

.kpi-card.down.has-critical {
  border-color: var(--status-down);
  box-shadow: var(--shadow-glow-red);
}

/* Controls Bar (Filtros e Busca) */
.controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 450px;
}

.search-box input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.55rem 1rem 0.55rem 2.4rem;
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: all var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.775rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.filter-btn.active {
  background: var(--bg-surface);
  border-color: var(--border-focus);
  color: #fff;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
}

/* Condos Grid */
.condos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

/* Condo Card */
.condo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

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

/* Status Indicator Border Top */
.condo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--status-up);
}

.condo-card.status-up::before {
  background: var(--status-up);
  box-shadow: 0 0 8px var(--status-up);
}

.condo-card.status-partial::before {
  background: var(--status-partial);
  box-shadow: 0 0 10px var(--status-partial);
}

.condo-card.status-down::before {
  background: var(--status-down);
  box-shadow: 0 0 14px var(--status-down);
}

.condo-card.status-down {
  border-color: var(--status-down-border);
  box-shadow: var(--shadow-glow-red);
}

/* Card Header */
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.condo-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.condo-notes {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Overall Status Badge */
.overall-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.overall-badge.up {
  background: var(--status-up-bg);
  color: #34d399;
  border: 1px solid var(--status-up-border);
}

.overall-badge.partial {
  background: var(--status-partial-bg);
  color: #fbbf24;
  border: 1px solid var(--status-partial-border);
}

.overall-badge.down {
  background: var(--status-down-bg);
  color: #f87171;
  border: 1px solid var(--status-down-border);
  animation: pulse-ring 1.5s infinite;
}

.overall-badge.unknown {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.overall-badge.unknown .led-indicator {
  background: #94a3b8;
  box-shadow: none;
}

.condo-card.status-unknown::before {
  background: #64748b;
  box-shadow: 0 0 6px #64748b;
}

/* Links Comparison Container */
.links-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  background: var(--bg-surface);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.link-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.link-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.link-status-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.link-status-badge.up {
  background: var(--status-up-bg);
  color: #10b981;
  border: 1px solid var(--status-up-border);
}

.link-status-badge.down {
  background: var(--status-down-bg);
  color: #ef4444;
  border: 1px solid var(--status-down-border);
}

.link-status-badge.unknown {
  background: var(--status-unknown-bg);
  color: var(--status-unknown);
  border: 1px solid rgba(100, 116, 139, 0.3);
}

.link-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.link-time {
  font-size: 0.675rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Redundancy Bar */
.redundancy-bar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.redundancy-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.redundancy-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.redundancy-fill {
  height: 100%;
  transition: width 0.4s ease, background 0.4s ease;
}

.redundancy-fill.full {
  width: 100%;
  background: var(--status-up);
  box-shadow: 0 0 8px var(--status-up);
}

.redundancy-fill.half {
  width: 50%;
  background: var(--status-partial);
  box-shadow: 0 0 8px var(--status-partial);
}

.redundancy-fill.empty {
  width: 100%;
  background: var(--status-down);
  box-shadow: 0 0 8px var(--status-down);
}

/* Card Footer */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
}

.last-changed {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.last-changed span {
  color: var(--text-secondary);
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

.card-quick-actions {
  display: flex;
  gap: 0.35rem;
}

.btn-mini {
  padding: 0.2rem 0.45rem;
  font-size: 0.675rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-mini:hover {
  background: var(--bg-surface);
  color: #fff;
  border-color: var(--border-focus);
}

/* Section Incidents */
.incidents-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-card);
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.table-wrapper {
  overflow-x: auto;
  max-height: 420px;
}

.incidents-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  text-align: left;
}

.incidents-table th {
  background: var(--bg-surface);
  padding: 0.65rem 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--border-color);
}

.incidents-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.incidents-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.725rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.badge-tag.up {
  background: var(--status-up-bg);
  color: #10b981;
}

.badge-tag.down {
  background: var(--status-down-bg);
  color: #ef4444;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 13, 0.8);
  backdrop-filter: blur(8px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

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

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.btn-close:hover {
  color: #fff;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tab-nav {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  gap: 0.5rem;
}

.tab-btn {
  padding: 0.55rem 1rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn.active {
  color: #60a5fa;
  border-bottom-color: #3b82f6;
}

.code-block-wrapper {
  position: relative;
  background: #060910;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.code-block-wrapper pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.775rem;
  color: #e2e8f0;
  overflow-x: auto;
  white-space: pre-wrap;
  line-height: 1.6;
}

.btn-copy {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-copy:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.instruction-note {
  background: rgba(59, 130, 246, 0.08);
  border-left: 3px solid #3b82f6;
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.8rem;
  color: #bfdbfe;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  font-size: 0.825rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  animation: slideIn 0.25s ease forwards;
}

.toast.toast-critical {
  border-color: var(--status-down);
  background: #1e1115;
  color: #fca5a5;
}

.toast.toast-up {
  border-color: var(--status-up);
  background: #0e1e19;
  color: #86efac;
}

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

/* Responsividade */
@media (max-width: 900px) {
  .noc-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .header-actions {
    justify-content: space-between;
  }
  .condos-grid {
    grid-template-columns: 1fr;
  }
}
