:root {
  --bg-main: #0b0f19;
  --bg-card: #131b2e;
  --bg-card-hover: #18223a;
  --bg-input: #1a233a;
  --border-color: #23304c;
  --border-focus: #3b82f6;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --color-primary: #3b82f6;
  --color-primary-hover: #2563eb;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-info: #06b6d4;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Header & Nav */
.navbar {
  background-color: rgba(19, 27, 46, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.875rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
}

.brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

.nav-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  color: var(--text-muted);
}
.stat-pill strong {
  color: #fff;
}
.stat-pill.online strong { color: var(--color-success); }
.stat-pill.warning strong { color: var(--color-warning); }
.stat-pill.offline strong { color: var(--color-danger); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.5);
  transform: translateY(-1px);
}
.btn-secondary {
  background-color: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-main);
}
.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--text-subtle);
}
.btn-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
}
.btn-danger {
  background-color: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}
.btn-danger:hover {
  background-color: var(--color-danger);
  color: #fff;
}

/* Main Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

/* Page Headers */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Status Indicators */
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.status-dot.online {
  background-color: var(--color-success);
  box-shadow: 0 0 10px var(--color-success);
}
.status-dot.warning {
  background-color: var(--color-warning);
  box-shadow: 0 0 10px var(--color-warning);
}
.status-dot.offline {
  background-color: var(--color-danger);
}

.pulse {
  animation: pulse-animation 2s infinite;
}
@keyframes pulse-animation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Cards & Grid */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: border-color 0.15s ease-in-out;
}
.card:hover {
  border-color: rgba(59, 130, 246, 0.4);
}

.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.5rem;
}

.server-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

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

.server-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}

.server-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.server-metrics {
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.metric-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.metric-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.metric-label span:last-child {
  font-weight: 600;
  color: var(--text-main);
}

.progress-track {
  width: 100%;
  height: 6px;
  background-color: var(--bg-input);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.4s ease-in-out;
}
.progress-fill.green { background: linear-gradient(90deg, #10b981, #059669); }
.progress-fill.yellow { background: linear-gradient(90deg, #f59e0b, #d97706); }
.progress-fill.red { background: linear-gradient(90deg, #ef4444, #dc2626); }

.server-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-subtle);
}

/* Add Server Modal (HetrixTools Style) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(5, 8, 16, 0.8);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover {
  color: #fff;
}

.modal-body {
  padding: 1.75rem;
}

/* Tabs (matching HetrixTools) */
.os-tabs {
  display: flex;
  background-color: #0b1120;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.os-tab {
  flex: 1;
  padding: 0.75rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
}
.os-tab:hover {
  color: #fff;
}
.os-tab.active {
  background-color: var(--bg-card);
  color: #fff;
  border-bottom: 2px solid var(--color-primary);
  font-weight: 600;
}

/* Install Code Box */
.install-box {
  background-color: #080d1a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.install-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.code-pre {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #38bdf8;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-copy:hover {
  background-color: var(--border-color);
  color: #fff;
}

/* Checkbox group matching screenshot */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.custom-checkbox {
  appearance: none;
  width: 18px;
  height: 18px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-top: 0.15rem;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}
.custom-checkbox:checked {
  background-color: var(--color-info);
  border-color: var(--color-info);
}
.custom-checkbox:checked::before {
  content: "✓";
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.checkbox-text {
  display: flex;
  flex-direction: column;
}

.checkbox-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
}

.checkbox-desc {
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-top: 0.15rem;
  line-height: 1.35;
}

.sub-input {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.85rem;
  outline: none;
}
.sub-input:focus {
  border-color: var(--border-focus);
}

/* Server Detail View */
.detail-view {
  display: none;
}
.detail-view.active {
  display: block;
}

.detail-header-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.detail-sys-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
}
.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.spec-item span:first-child {
  color: var(--text-subtle);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.spec-item span:last-child {
  color: #fff;
  font-weight: 500;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 1024px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
}

.chart-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.chart-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}
.chart-container {
  position: relative;
  height: 240px;
  width: 100%;
}

.data-tables-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1024px) {
  .data-tables-grid {
    grid-template-columns: 1fr;
  }
}

.table-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.table-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}

/* Tables */
.custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.custom-table th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  color: var(--text-subtle);
  border-bottom: 1px solid var(--border-color);
  font-weight: 500;
}
.custom-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(35, 48, 76, 0.5);
  color: var(--text-main);
}
.custom-table tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
}
.badge-green { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.badge-yellow { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.badge-red { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.badge-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }

/* Range Selector */
.range-pills {
  display: flex;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2px;
}
.range-btn {
  background: transparent;
  border: none;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s;
}
.range-btn.active {
  background-color: var(--color-primary);
  color: #fff;
  font-weight: 600;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background-color: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
}
.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.empty-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}
.empty-desc {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 1.5rem;
  font-size: 0.9rem;
}

/* ==========================================================================
   Status Page Styles (HetrixTools / Statuspage Alternative)
   ========================================================================== */

.status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  border: 1px solid;
  transition: all 0.2s ease-in-out;
}
.status-banner.operational {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.05));
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}
.status-banner.degraded {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.05));
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
}
.status-banner.major_outage {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.05));
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.2);
}

.banner-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  margin-right: 1.25rem;
  flex-shrink: 0;
}
.operational .banner-icon-wrap {
  background-color: rgba(16, 185, 129, 0.2);
  color: var(--color-success);
}
.degraded .banner-icon-wrap {
  background-color: rgba(245, 158, 11, 0.2);
  color: var(--color-warning);
}
.major_outage .banner-icon-wrap {
  background-color: rgba(239, 68, 68, 0.2);
  color: var(--color-danger);
}

.banner-text-wrap {
  flex: 1;
}
.banner-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}
.banner-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Fleet Uptime Summary Grid */
.status-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (max-width: 900px) {
  .status-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.summary-card {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
}
.summary-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
}
.summary-val {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.section-title-wrap {
  margin-bottom: 1.25rem;
}
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}
.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

/* Status Page Group & Capsule Components (Matching Screenshot) */
.status-group-card {
  background-color: #111622;
  border: 1px solid #1e283d;
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  margin-bottom: 2rem;
}

.status-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  user-select: none;
}

.status-group-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.status-group-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background-color: #192234;
  border: 1px solid #283750;
  border-radius: 9999px;
  padding: 4px 12px 4px 7px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}
.status-group-pill:hover {
  border-color: #3b82f6;
  background-color: #1f2b42;
}

.pill-check-icon {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background-color: #00c776;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.status-pill-outage .pill-check-icon {
  background-color: #ef4444;
}

.pill-chevron {
  color: #64748b;
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.status-server-block {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.status-server-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

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

.server-title-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
}

.status-icon-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  flex-shrink: 0;
}
.status-icon-operational {
  background-color: #00c776;
}
.status-icon-warning {
  background-color: #f59e0b;
}
.status-icon-outage {
  background-color: #ef4444;
}

.server-display-name {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.server-info-icon {
  background: none;
  border: none;
  color: #64748b;
  font-size: 15px;
  cursor: pointer;
  padding: 0 4px;
  border-radius: 4px;
  transition: color 0.15s, background-color 0.15s;
  line-height: 1;
}
.server-info-icon:hover {
  color: #cbd5e1;
  background-color: rgba(255, 255, 255, 0.08);
}

.server-uptime-val {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.uptime-emerald {
  color: #00c776;
}
.uptime-coral {
  color: #ff6b6b;
}

/* Expandable specs drawer */
.server-specs-drawer {
  background-color: #0a0e17;
  border: 1px solid #1a2336;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 14px;
  margin-top: 4px;
  animation: fadeIn 0.15s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.spec-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
}
.spec-cell span {
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.spec-cell strong {
  color: #f1f5f9;
  font-weight: 500;
  font-size: 13px;
}

.ongoing-outage-alert {
  background-color: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
}

/* 90-Day Uptime Rounded Capsule Bars */
.uptime-capsules-container {
  width: 100%;
  margin-top: 4px;
}

.uptime-capsules-bar {
  display: flex;
  align-items: stretch;
  gap: 2.5px;
  height: 28px;
  width: 100%;
}

.uptime-capsule-tick {
  flex: 1;
  min-width: 2px;
  height: 28px;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.uptime-capsule-tick:hover {
  transform: scaleY(1.22);
  filter: brightness(1.25);
  z-index: 10;
}

.tick-healthy {
  background-color: #00c776;
}
.tick-partial {
  background-color: #f59e0b;
}
.tick-outage {
  background-color: #ff6b6b;
}
.tick-empty {
  background-color: #1a2234;
}

.uptime-capsules-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
}

/* Tooltip */
.uptime-tooltip {
  position: fixed;
  background-color: #0b1120;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.75rem;
  color: #fff;
  pointer-events: none;
  transform: translate(-50%, -100%);
  z-index: 1000;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.5);
  display: none;
  text-align: center;
  line-height: 1.35;
}

/* Incident Cards */
.incident-card {
  margin-bottom: 1rem;
  border-left: 3px solid var(--color-primary);
}
.incident-card.ongoing {
  border-left-color: var(--color-danger);
  border-color: rgba(239, 68, 68, 0.4);
}
.incident-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}
.incident-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}
.incident-time {
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-top: 0.15rem;
}
.incident-body {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}
