/* Page styles for status.html */
:root {
      --primary: #1E3A8A;
      --primary-dark: #1D2C51;
      --primary-light: #E6F1FF;
      --foreground: #1f2937;
      --muted: #6b7280;
      --background: #fcfcfc;
      --card: #ffffff;
      --border: #e5e7eb;
      --secondary: #f3f4f6;
      --card-header: #f0f1f3;
      --green: #059669;
      --green-light: #D1FAE5;
      --yellow: #d97706;
      --yellow-light: #FEF3C7;
      --red: #DC2626;
      --red-light: #FEE2E2;
    }

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

    body {
      font-family: 'DM Sans', system-ui, sans-serif;
      background: var(--background);
      color: var(--foreground);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }

    .top-bar {
      height: 4px;
      background: linear-gradient(90deg, var(--primary-dark), #2563EB);
    }

    /* Header */
    .nav-links { display: flex; align-items: center; gap: 4px; }

    .nav-link {
      padding: 7px 14px;
      border-radius: 5px;
      font-size: 14px;
      font-weight: 500;
      color: var(--muted);
      text-decoration: none;
      transition: background 0.15s, color 0.15s;
    }

    .nav-link:hover { background: var(--secondary); color: var(--foreground); }

    .btn-nav {
      padding: 8px 18px;
      background: var(--primary);
      color: white;
      border-radius: 5px;
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
      transition: background 0.15s;
    }

    .btn-nav:hover { background: var(--primary-dark); }

    /* Status Hero */
    .status-hero {
      background: linear-gradient(155deg, #0f1e42 0%, var(--primary) 55%, #1a4199 100%);
      padding: 56px 24px 52px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .status-hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse 70% 60% at 50% 110%, rgba(37,99,235,0.2) 0%, transparent 65%);
      pointer-events: none;
    }

    .status-hero-inner {
      position: relative;
      max-width: 600px;
      margin: 0 auto;
    }

    /* Big status pill */
    .status-banner {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: rgba(5,150,105,0.15);
      border: 1px solid rgba(5,150,105,0.35);
      color: #6EE7B7;
      padding: 10px 22px;
      border-radius: 5px;
      font-size: 14px;
      font-weight: 600;
      margin-bottom: 24px;
    }

    .pulse-dot {
      width: 9px;
      height: 9px;
      background: #34D399;
      border-radius: 50%;
      position: relative;
      flex-shrink: 0;
    }

    .pulse-dot::after {
      content: '';
      position: absolute;
      inset: -4px;
      border-radius: 50%;
      background: rgba(52, 211, 153, 0.3);
      animation: pulse 2s ease-in-out infinite;
    }

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

    .status-hero h1 {
      font-size: 34px;
      font-weight: 700;
      color: white;
      margin-bottom: 12px;
      letter-spacing: -0.01em;
    }

    @media (max-width: 600px) { .status-hero h1 { font-size: 24px; } }

    .status-hero-sub {
      font-size: 14.5px;
      color: rgba(255,255,255,0.6);
      line-height: 1.6;
    }

    .status-updated {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-top: 16px;
      font-size: 12px;
      color: rgba(255,255,255,0.4);
    }

    .status-updated svg { width: 12px; height: 12px; }

    /* Uptime bar strip */
    .uptime-strip {
      background: var(--card);
      border-bottom: 1px solid var(--border);
      padding: 0 24px;
    }

    .uptime-strip-inner {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      align-items: stretch;
      gap: 0;
    }

    .uptime-stat {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 20px 16px;
      border-right: 1px solid var(--border);
      text-align: center;
    }

    .uptime-stat:last-child { border-right: none; }

    .uptime-stat-value {
      font-size: 22px;
      font-weight: 700;
      color: var(--foreground);
      letter-spacing: -0.02em;
      line-height: 1;
      margin-bottom: 5px;
    }

    .uptime-stat-value.green { color: var(--green); }

    .uptime-stat-label {
      font-size: 11.5px;
      color: var(--muted);
      font-weight: 500;
    }

    @media (max-width: 600px) {
      .uptime-strip-inner { flex-wrap: wrap; }
      .uptime-stat { flex: 1 1 calc(50% - 1px); border-bottom: 1px solid var(--border); }
      .uptime-stat:nth-child(2) { border-right: none; }
      .uptime-stat:nth-child(3),
      .uptime-stat:nth-child(4) { border-bottom: none; }
    }

    /* Main content */
    .main {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 24px 80px;
    }

    .section {
      padding: 52px 0 0;
    }

    .section-label {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      font-size: 10.5px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--primary);
      background: var(--primary-light);
      padding: 5px 12px;
      border-radius: 5px;
      margin-bottom: 14px;
    }

    .section-label svg { width: 12px; height: 12px; }

    .section-title {
      font-size: 22px;
      font-weight: 700;
      color: var(--foreground);
      margin-bottom: 8px;
      letter-spacing: -0.01em;
    }

    .section-intro {
      font-size: 14.5px;
      color: var(--muted);
      max-width: 580px;
      line-height: 1.65;
      margin-bottom: 24px;
    }

    .divider {
      border: none;
      border-top: 1px solid var(--border);
      margin: 48px 0 0;
    }

    /* Services table */
    .services-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 5px;
      overflow: hidden;
    }

    .services-card-header {
      background: var(--card-header);
      border-bottom: 1px solid var(--border);
      padding: 13px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .services-card-header-left {
      display: flex;
      align-items: center;
      gap: 9px;
      font-size: 13px;
      font-weight: 700;
      color: var(--foreground);
    }

    .services-card-header-left svg { color: var(--primary); }

    .all-clear-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: var(--green-light);
      color: var(--green);
      padding: 4px 10px;
      border-radius: 5px;
      font-size: 11.5px;
      font-weight: 700;
    }

    .service-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 20px;
      border-bottom: 1px solid var(--border);
      gap: 16px;
    }

    .service-row:last-child { border-bottom: none; }

    .service-row:hover { background: var(--secondary); }

    .service-left {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
    }

    .service-icon {
      width: 32px;
      height: 32px;
      background: var(--primary-light);
      border-radius: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .service-icon svg { color: var(--primary); }

    .service-name {
      font-size: 14px;
      font-weight: 600;
      color: var(--foreground);
    }

    .service-desc {
      font-size: 12px;
      color: var(--muted);
      margin-top: 1px;
    }

    .status-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 12px;
      border-radius: 5px;
      font-size: 12px;
      font-weight: 700;
      flex-shrink: 0;
      white-space: nowrap;
    }

    .status-badge.operational {
      background: var(--green-light);
      color: var(--green);
    }

    .status-badge.degraded {
      background: var(--yellow-light);
      color: var(--yellow);
    }

    .status-badge.outage {
      background: var(--red-light);
      color: var(--red);
    }

    .status-badge .dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: currentColor;
    }

    /* Uptime bar history */
    .uptime-history {
      margin-top: 20px;
    }

    .uptime-history-label {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 12px;
      color: var(--muted);
      margin-bottom: 8px;
    }

    .bar-track {
      display: flex;
      gap: 2px;
      height: 28px;
    }

    .bar-day {
      flex: 1;
      border-radius: 2px;
      background: var(--green-light);
      border: 1px solid rgba(5,150,105,0.15);
      cursor: pointer;
      transition: transform 0.1s;
      position: relative;
    }

    .bar-day:hover { transform: scaleY(1.1); }
    .bar-day.operational { background: #A7F3D0; border-color: rgba(5,150,105,0.2); }
    .bar-day.empty { background: var(--secondary); border-color: var(--border); }

    .bar-legend {
      display: flex;
      justify-content: space-between;
      font-size: 11px;
      color: var(--muted);
      margin-top: 6px;
    }

    /* Two-col grid */
    .two-col {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    @media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }

    /* Info card */
    .info-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 5px;
      overflow: hidden;
    }

    .info-card-header {
      background: var(--card-header);
      border-bottom: 1px solid var(--border);
      padding: 13px 18px;
      display: flex;
      align-items: center;
      gap: 9px;
      font-size: 13px;
      font-weight: 700;
      color: var(--foreground);
    }

    .info-card-header svg { color: var(--primary); }

    .info-card-body { padding: 18px; }

    /* Bullet list */
    .bullet-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .bullet-item {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      font-size: 13.5px;
      color: var(--foreground);
      line-height: 1.5;
    }

    .bullet-dot {
      width: 6px;
      height: 6px;
      background: var(--primary);
      border-radius: 50%;
      flex-shrink: 0;
      margin-top: 7px;
      opacity: 0.5;
    }

    /* Incident log */
    .incident-log {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 5px;
      overflow: hidden;
    }

    .incident-log-header {
      background: var(--card-header);
      border-bottom: 1px solid var(--border);
      padding: 13px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .incident-log-header-left {
      display: flex;
      align-items: center;
      gap: 9px;
      font-size: 13px;
      font-weight: 700;
      color: var(--foreground);
    }

    .incident-log-header-left svg { color: var(--primary); }

    .clear-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: var(--green-light);
      color: var(--green);
      padding: 4px 10px;
      border-radius: 5px;
      font-size: 11.5px;
      font-weight: 700;
    }

    .incident-empty {
      padding: 40px 20px;
      text-align: center;
    }

    .incident-empty-icon {
      width: 48px;
      height: 48px;
      background: var(--green-light);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 14px;
    }

    .incident-empty-icon svg { color: var(--green); }

    .incident-empty-title {
      font-size: 14px;
      font-weight: 700;
      color: var(--foreground);
      margin-bottom: 5px;
    }

    .incident-empty-sub {
      font-size: 13px;
      color: var(--muted);
    }

    /* Maintenance banner */
    .maintenance-banner {
      background: var(--secondary);
      border: 1px solid var(--border);
      border-radius: 5px;
      padding: 16px 20px;
      display: flex;
      align-items: flex-start;
      gap: 12px;
      margin-bottom: 16px;
    }

    .maintenance-banner svg { color: var(--muted); flex-shrink: 0; margin-top: 1px; }

    .maintenance-banner-text {
      font-size: 13.5px;
      color: var(--muted);
      line-height: 1.55;
    }

    .maintenance-banner-text strong { color: var(--foreground); }

    /* Monitoring grid */
    .monitor-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
    }

    @media (max-width: 800px) { .monitor-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 480px) { .monitor-grid { grid-template-columns: 1fr; } }

    .monitor-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 5px;
      padding: 20px 18px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .monitor-card-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .monitor-icon {
      width: 36px;
      height: 36px;
      background: var(--primary-light);
      border-radius: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .monitor-icon svg { color: var(--primary); }

    .monitor-status-dot {
      width: 9px;
      height: 9px;
      background: #34D399;
      border-radius: 50%;
      position: relative;
    }

    .monitor-status-dot::after {
      content: '';
      position: absolute;
      inset: -3px;
      border-radius: 50%;
      background: rgba(52,211,153,0.25);
      animation: pulse 2.2s ease-in-out infinite;
    }

    .monitor-title {
      font-size: 13px;
      font-weight: 700;
      color: var(--foreground);
    }

    .monitor-desc {
      font-size: 12px;
      color: var(--muted);
      line-height: 1.5;
    }

    /* Support card */
    .support-card {
      background: var(--primary-dark);
      border-radius: 5px;
      padding: 40px 36px;
      position: relative;
      overflow: hidden;
      margin-top: 52px;
    }

    .support-card::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at 85% 50%, rgba(37,99,235,0.2), transparent 55%);
    }

    .support-inner {
      position: relative;
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 32px;
      align-items: center;
    }

    @media (max-width: 700px) { .support-inner { grid-template-columns: 1fr; } }

    .support-title {
      font-size: 18px;
      font-weight: 700;
      color: white;
      margin-bottom: 8px;
    }

    .support-desc {
      font-size: 13.5px;
      color: rgba(255,255,255,0.65);
      line-height: 1.6;
      margin-bottom: 16px;
    }

    .support-fields {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .support-field {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.12);
      color: rgba(255,255,255,0.75);
      padding: 5px 12px;
      border-radius: 5px;
      font-size: 12px;
      font-weight: 500;
    }

    .support-field svg { width: 11px; height: 11px; opacity: 0.7; }

    .btn-support {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      background: white;
      color: var(--primary-dark);
      padding: 11px 22px;
      border-radius: 5px;
      font-size: 13.5px;
      font-weight: 700;
      text-decoration: none;
      white-space: nowrap;
      transition: opacity 0.15s;
      flex-shrink: 0;
    }

    .btn-support:hover { opacity: 0.92; }

        /* Highlight box */
    .highlight-box {
      background: var(--primary-light);
      border-left: 3px solid var(--primary);
      border-radius: 0 5px 5px 0;
      padding: 13px 18px;
      margin-top: 20px;
      font-size: 13.5px;
      color: var(--primary-dark);
      line-height: 1.6;
    }

    /* Maintenance impacts */
    .impact-list {
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    .impact-row {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 0;
      border-bottom: 1px solid var(--border);
      font-size: 13.5px;
    }

    .impact-row:last-child { border-bottom: none; }

    .impact-icon {
      width: 22px;
      height: 22px;
      border-radius: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .impact-icon.pause { background: var(--yellow-light); }
    .impact-icon.pause svg { color: var(--yellow); }
    .impact-icon.ok { background: var(--green-light); }
    .impact-icon.ok svg { color: var(--green); }

    .impact-text { color: var(--foreground); }
    .impact-note { color: var(--muted); font-size: 12.5px; margin-top: 1px; }

    /* Responsive */
    @media (max-width: 960px) {
      .nav-links { display: none; }
      .metrics-inner { grid-template-columns: repeat(2, 1fr); }
      .metric-item:nth-child(2) { border-right: none; }
      .two-col { grid-template-columns: 1fr; }
      .uptime-grid { grid-template-columns: 1fr; }
      .commitment-grid { grid-template-columns: 1fr; }
      .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
      .footer-links { flex-wrap: wrap; }
    }

    @media (max-width: 700px) {
      .support-inner { grid-template-columns: 1fr; }
      .monitor-grid { grid-template-columns: repeat(2, 1fr); }
    }

    @media (max-width: 480px) {
      .status-hero { padding: 52px 16px 44px; }
      .metrics-inner { grid-template-columns: 1fr; }
      .metric-item { border-right: none; border-bottom: 1px solid var(--border); }
      .metric-item:last-child { border-bottom: none; }
      .monitor-grid { grid-template-columns: 1fr; }
      .services-table { font-size: 12.5px; }
      .footer-inner { align-items: center; text-align: center; }
      .footer-links { justify-content: center; }
    }
