/* ═══════════════════════════════════════════════════════════════
   Linexcom Status — Stylesheet
   Design system mirrors AiKapal Maritime (Inter + Navy/Teal)
═══════════════════════════════════════════════════════════════ */

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ── Design Tokens (exact match to AiKapal) ──────────────── */
:root {
  --navy:        #0B1F3A;
  --navy-mid:    #1A3A5C;
  --blue:        #1B6CA8;
  --blue-light:  #2A8FD8;
  --teal:        #00B4C8;
  --white:       #FFFFFF;
  --off-white:   #F7F9FC;
  --gray-100:    #F1F5F9;
  --gray-200:    #E2E8F0;
  --gray-400:    #94A3B8;
  --gray-600:    #475569;
  --gray-800:    #1E293B;
  --text:        #2D3748;
  --text-light:  #64748B;
  --accent:      #00B4C8;
  --success:     #10B981;
  --warning:     #F59E0B;
  --danger:      #EF4444;
  --purple:      #6366F1;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 4px 24px rgba(11,31,58,0.08);
  --shadow-md:   0 8px 40px rgba(11,31,58,0.14);
  --transition:  all 0.25s ease;
  --max-w:       1200px;
  --font-main:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Base ─────────────────────────────────────────────────── */
body {
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 72px 0; }
.section--gray { background: var(--off-white); }
.section--navy { background: var(--navy); color: var(--white); }

/* ── Typography ──────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 8px;
}
.section--navy .section-title { color: var(--white); }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.site-header.scrolled {
  border-bottom-color: var(--gray-200);
  box-shadow: 0 2px 20px rgba(11,31,58,0.07);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  flex-shrink: 0;
}
.logo-icon {
  width: 36px; height: 36px;
  background: var(--navy);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 18px; height: 18px; stroke: var(--white); }
.logo-text span { color: var(--teal); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-menu a {
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: 6px;
  transition: var(--transition);
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--navy);
  background: var(--gray-100);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 24px 20px;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
}
.mobile-nav a:hover { background: var(--gray-100); color: var(--navy); }
.mobile-nav-divider { height: 1px; background: var(--gray-200); margin: 8px 0; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(27,108,168,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--gray-200);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.btn-danger {
  background: var(--danger);
  color: var(--white);
  border-color: var(--danger);
}
.btn-danger:hover { background: #DC2626; border-color: #DC2626; }
.btn-success {
  background: var(--success);
  color: var(--white);
  border-color: var(--success);
}
.btn-success:hover { background: #059669; border-color: #059669; }
.btn-sm { padding: 7px 16px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 15px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Status Badges ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.badge-operational  { background: #D1FAE5; color: #065F46; }
.badge-degraded     { background: #FEF3C7; color: #92400E; }
.badge-outage       { background: #FEE2E2; color: #991B1B; }
.badge-maintenance  { background: #EDE9FE; color: #5B21B6; }
.badge-development  { background: var(--gray-100); color: var(--gray-600); }
.badge-nodata       { background: var(--gray-100); color: var(--gray-600); }
/* Incident status badges */
.badge-investigating { background: #FEE2E2; color: #991B1B; }
.badge-identified    { background: #FEF3C7; color: #92400E; }
.badge-monitoring    { background: #EDE9FE; color: #5B21B6; }
.badge-resolved      { background: #D1FAE5; color: #065F46; }
/* Impact badges */
.badge-critical { background: #FEE2E2; color: #991B1B; }
.badge-major    { background: #FEF3C7; color: #92400E; }
.badge-minor    { background: #FFF7ED; color: #9A3412; }
.badge-none     { background: var(--gray-100); color: var(--gray-600); }

/* ── Status Banner (hero area) ───────────────────────────── */
.status-banner {
  padding: 56px 0 48px;
  text-align: center;
  margin-top: 68px;
}
.status-banner.operational { background: linear-gradient(160deg, #ECFDF5 0%, #D1FAE5 100%); }
.status-banner.degraded    { background: linear-gradient(160deg, #FFFBEB 0%, #FEF3C7 100%); }
.status-banner.outage      { background: linear-gradient(160deg, #FEF2F2 0%, #FEE2E2 100%); }
.status-banner.maintenance { background: linear-gradient(160deg, #F5F3FF 0%, #EDE9FE 100%); }

.status-banner-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.operational .status-banner-icon { background: #A7F3D0; }
.degraded    .status-banner-icon { background: #FDE68A; }
.outage      .status-banner-icon { background: #FECACA; }
.maintenance .status-banner-icon { background: #DDD6FE; }
.status-banner-icon svg { width: 32px; height: 32px; }
.operational .status-banner-icon svg { stroke: #065F46; }
.degraded    .status-banner-icon svg { stroke: #92400E; }
.outage      .status-banner-icon svg { stroke: #991B1B; }
.maintenance .status-banner-icon svg { stroke: #5B21B6; }

.status-banner h1 {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  margin-bottom: 10px;
}
.operational h1 { color: #065F46; }
.degraded    h1 { color: #92400E; }
.outage      h1 { color: #991B1B; }
.maintenance h1 { color: #5B21B6; }

.status-banner p {
  font-size: 15px;
  color: var(--text-light);
}
.status-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-light);
}
.status-meta span { display: flex; align-items: center; gap: 6px; }

/* ── Services Section ────────────────────────────────────── */
.services-section { padding: 48px 0; }
.category-block { margin-bottom: 40px; }
.category-block:last-child { margin-bottom: 0; }
.category-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-light);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 0;
}

.service-row {
  display: grid;
  grid-template-columns: 220px 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}
.service-row:last-child { border-bottom: none; }

.service-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.service-desc {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}

.uptime-bars {
  display: flex;
  gap: 2px;
  align-items: center;
  overflow: hidden;
}
.uptime-bar {
  flex: 1;
  min-width: 4px;
  height: 28px;
  border-radius: 2px;
  position: relative;
  cursor: default;
  transition: opacity 0.15s;
}
.uptime-bar:hover { opacity: 0.75; }
.uptime-bar.operational { background: #10B981; }
.uptime-bar.degraded    { background: #F59E0B; }
.uptime-bar.outage      { background: #EF4444; }
.uptime-bar.nodata      { background: #E2E8F0; }

/* Tooltip */
.uptime-bar[data-tip] { position: relative; }
.uptime-bar[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--white);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  padding: 5px 9px;
  border-radius: 6px;
  pointer-events: none;
  z-index: 10;
}
.uptime-bar[data-tip]:hover::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--navy);
  pointer-events: none;
  z-index: 10;
}

.uptime-pct {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  min-width: 52px;
  text-align: right;
}
.uptime-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 10px;
  color: var(--gray-400);
}

/* ── Incident Cards ──────────────────────────────────────── */
.incident-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 16px;
  border-left: 4px solid;
}
.incident-card.investigating { border-left-color: var(--danger); }
.incident-card.identified    { border-left-color: var(--warning); }
.incident-card.monitoring    { border-left-color: var(--purple); }
.incident-card.resolved      { border-left-color: var(--success); }

.incident-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.incident-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.incident-meta {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.incident-update {
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-top: 12px;
}
.incident-update p { font-size: 14px; color: var(--text); }
.incident-update time { font-size: 11px; color: var(--text-light); margin-top: 4px; display: block; }

/* Timeline for detail view */
.update-timeline { position: relative; }
.update-timeline::before {
  content: '';
  position: absolute;
  left: 10px; top: 0; bottom: 0;
  width: 2px;
  background: var(--gray-200);
}
.timeline-item {
  display: flex;
  gap: 20px;
  padding-bottom: 24px;
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--gray-200);
  flex-shrink: 0;
  z-index: 1;
  background: var(--gray-400);
}
.timeline-dot.investigating { background: var(--danger); box-shadow: 0 0 0 2px #FECACA; }
.timeline-dot.identified    { background: var(--warning); box-shadow: 0 0 0 2px #FDE68A; }
.timeline-dot.monitoring    { background: var(--purple); box-shadow: 0 0 0 2px #DDD6FE; }
.timeline-dot.resolved      { background: var(--success); box-shadow: 0 0 0 2px #A7F3D0; }
.timeline-body { flex: 1; }
.timeline-body strong { font-size: 13px; font-weight: 600; color: var(--navy); }
.timeline-body p { font-size: 14px; color: var(--text); margin-top: 4px; line-height: 1.6; }
.timeline-body time { font-size: 11px; color: var(--text-light); margin-top: 4px; display: block; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

/* ── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  line-height: 1.5;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27,108,168,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 12px; color: var(--text-light); margin-top: 5px; }

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.alert-warning { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.alert-info    { background: #DBEAFE; color: #1E40AF; border: 1px solid #BFDBFE; }

/* ── Table ───────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td {
  padding: 12px 16px;
  text-align: left;
  font-size: 13.5px;
  border-bottom: 1px solid var(--gray-200);
}
th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  background: var(--gray-100);
}
tr:hover td { background: var(--off-white); }
tr:last-child td { border-bottom: none; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 56px 0 0;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.footer-brand .site-logo { color: var(--white); margin-bottom: 14px; }
.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  max-width: 260px;
}
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.social-link {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.social-link:hover { background: rgba(255,255,255,0.16); color: var(--white); }

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  flex-wrap: wrap;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,0.4); }
.footer-bottom-links a:hover { color: var(--white); }

/* ── Admin Layout ────────────────────────────────────────── */
.admin-body {
  background: var(--gray-100);
  min-height: 100vh;
}
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  width: 240px;
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
}
.admin-sidebar-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 8px;
}
.admin-sidebar-logo .site-logo { color: var(--white); font-size: 16px; }
.admin-sidebar-logo .logo-text span { color: var(--teal); }

.admin-nav { flex: 1; padding: 8px 12px; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
  margin-bottom: 2px;
}
.admin-nav a svg { width: 16px; height: 16px; flex-shrink: 0; }
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}
.admin-nav a.active { background: rgba(0,180,200,0.15); color: var(--teal); }
.admin-nav-section {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.3);
  padding: 12px 14px 6px;
}
.admin-sidebar-footer {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.admin-sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.admin-sidebar-footer a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.admin-sidebar-footer a svg { width: 15px; height: 15px; }

/* Main content */
.admin-main {
  margin-left: 240px;
  flex: 1;
  min-width: 0;
}
.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-topbar h1 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}
.admin-content { padding: 28px; }

/* Admin stats cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.stat-card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 8px;
}
.stat-card-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.stat-card-sub {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 6px;
}
.stat-card.green  { border-top: 3px solid var(--success); }
.stat-card.yellow { border-top: 3px solid var(--warning); }
.stat-card.red    { border-top: 3px solid var(--danger); }
.stat-card.blue   { border-top: 3px solid var(--blue); }

/* ── Empty state ─────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 56px 24px;
  color: var(--text-light);
}
.empty-state svg { width: 48px; height: 48px; margin: 0 auto 16px; opacity: 0.35; }
.empty-state p { font-size: 14px; }

/* ── Login page ──────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
}
.login-card {
  width: 380px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
}
.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  text-align: center;
}
.login-logo h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
}
.login-logo p { font-size: 13px; color: var(--text-light); }

/* ── Inline status toggle ────────────────────────────────── */
.status-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.status-dot.operational { background: var(--success); }
.status-dot.degraded    { background: var(--warning); }
.status-dot.outage      { background: var(--danger); }
.status-dot.maintenance { background: var(--purple); }
.status-dot.development { background: var(--gray-400); }

/* ── Page header strip ───────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.page-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}

/* ── Modal overlay ───────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(11,31,58,0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 32px;
  width: 100%;
  max-width: 540px;
  box-shadow: var(--shadow-md);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}
.modal-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--gray-100);
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-600);
  transition: var(--transition);
}
.modal-close:hover { background: var(--gray-200); }

/* ── Utility ─────────────────────────────────────────────── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-sm   { font-size: 13px; }
.text-xs   { font-size: 11px; }
.text-muted { color: var(--text-light); }
.text-navy  { color: var(--navy); }
.fw-700 { font-weight: 700; }
.divider { height: 1px; background: var(--gray-200); margin: 24px 0; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .service-row { grid-template-columns: 180px 1fr auto; }
  .service-row .uptime-pct { display: none; }
}

@media (max-width: 768px) {
  .nav-menu, .nav-actions { display: none; }
  .hamburger { display: flex; }

  .status-banner { padding: 40px 0 32px; }
  .services-section { padding: 32px 0; }
  .section { padding: 48px 0; }

  .service-row { grid-template-columns: 1fr auto; gap: 12px; }
  .uptime-bars { display: none; }
  .service-name { font-size: 13px; }

  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-content { padding: 20px 16px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .stat-grid { grid-template-columns: 1fr; }
}
