* { box-sizing: border-box; }

/* GLOBAL */
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: #062b3f;
  color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HEADER */
.hero {
  padding: 40px 0 56px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between; /* pushes logo fully right */
}

.header-logo {
  height: 75px;        /* matches your reference image */
  width: auto;
  margin-left: auto;  /* extra safety */
}

.brand-text h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
}

.brand-text span {
  font-size: 22px;
    opacity: 0.75;
    letter-spacing: 3px;
    font-weight: 200;
}

/* WELCOME */
.welcome {
  margin: 28px 0 32px;
}

.welcome h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.welcome span { color: #2ec4ff; }

.welcome p {
  max-width: 520px;
  opacity: .85;
}

/* STATUS CARDS */
.status-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.status-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-radius: 18px;
}

.status-card img { width: 140px; }

.green { background:#1f7a5b }
.blue  { background:#1b4f8a }
.amber { background:#7a5f1f }
.gray  { background:#5b6470 }

/* WAVE */
.wave-divider svg {
  width: 100%;
  height: 90px;
}

.wave-divider path {
  fill: #062b3f;
}

/* SYSTEM */
.system-section {
  background: #fff;
  color: #000;
  padding: 48px 0;
}

.system-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
}

/* LEFT */
.donut-wrap svg { width: 160px; }

.donut-label { font-size: 9px; fill:#374151; }
.donut-percent { font-size: 28px; fill:#16a34a; }

.donut-container {
  position: relative;
  width: 180px;
  margin: 0 auto; /* center horizontally */
}

.donut-container svg {
  width: 100%;
  height: auto;
  display: block;
}

.donut-center-text {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  pointer-events: none; /* prevents interaction issues */
}

/* ✅ CSS HANDLES LINE BREAK */
.donut-label {
  max-width: 90px;        /* forces wrap when needed */
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: #111827;
  word-break: break-word;
}

.donut-value {
  margin-top: 6px;
  font-size: 32px;
  font-weight: 800;
  color: #22c55e;
}
.donut-svg {
  width: 180px;
  display: block;
  margin: 0 auto; /* horizontally center in section */
}

.donut-title {
    font-size: 9px;
    font-weight: 400;
    fill: #111827;
  letter-spacing: 0.8px;
}

.donut-value {
  font-size: 32px;
  font-weight: 800;
  fill: #22c55e;
}


.stats {
  padding: 0;
  list-style: none;
}

.stats li {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin: 6px 0;
}

.stats span { color: #2563eb; }

.health-score {
  margin-top: 14px;
  display: flex;
  gap: 12px;
}

/* RIGHT */
.phase-bar {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.phase { padding: 10px 22px; color:#fff; font-size:12px; }
.phase.blue{background:#0ea5e9}
.phase.red{background:#fb7185}
.phase.green{background:#4ade80}

.monitor-grid {
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap:16px;
}

.monitor {
  background:#f8fafc;
  padding:16px;
  border-radius:12px;
}

.monitor.whmcs{background:#e0f2fe}
.monitor.wazuh{background:#fee2e2}
.monitor.zabbix{background:#dcfce7}

.ring {
  width:36px;
  height:36px;
  border-radius:50%;
  border:4px solid;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:10px;
  margin-bottom:8px;
}

.ring.blue{border-color:#0ea5e9;color:#0ea5e9}
.ring.red{border-color:#ef4444;color:#ef4444}
.ring.green{border-color:#22c55e;color:#22c55e}

/* APPS */
.apps-section {
  background:#083850;
  padding:48px 0;
}

.apps-header {
  display:flex;
  justify-content:space-between;
  margin-bottom:24px;
}

.apps-header button {
  background:#1fc1ff;
  border:none;
  color:white;
  padding:8px 16px;
  border-radius:20px;
}

.apps-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
      background: #1fc1ff3d;
    padding: 20px;
    border-radius: 20px;
}

.app-card {
  background:white;
  color:#062b3f;
  padding:16px;
  border-radius:14px;
  display:flex;
  gap:14px;
}

.app-card p{
  padding: 5px 0px;
  margin: 0px;
}
.app-card img { width:70px; }

/* ================= HEADER ICON BLOCKS ================= */

.status-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* Card */
.status-card {
  display: flex;
  align-items: center;
  gap: 0px;
  padding: 8px;
  border-radius: 18px;
}

/* Icon */
.status-card img {
  width: 120px;              /* consistent icon size */
  height: auto;
  flex-shrink: 0;
}

/* Text stack (label + value) */
.icon-text {
  display: flex;
  flex-direction: column;   /* forces next line */
  justify-content: center;
}

/* Label (Security, System, Alerts...) */
.icon-text .label {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.85;
  line-height: 1.2;
}

/* Value (Good, Stable, 3, time) */
.icon-text .value {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 3px;
}

/* Smaller value variant (time text) */
.icon-text .value.small {
  font-size: 14px;
  font-weight: 600;
}

/* ================= MONITORING SECTION ================= */
.monitoring-section {
  background: #ffffff;
  padding: 48px 0;
  color: #111827;
}

/* ---------- PHASE BAR ---------- */
.phase-strip {
  display: flex;
  width: fit-content;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 auto 28px;
}

.phase {
  padding: 12px 36px 12px 28px;
  font-weight: 700;
  font-size: 13px;
  color: white;
  clip-path: polygon(0 0, 92% 0, 100% 50%, 92% 100%, 0 100%);
  width: 18rem;
}

.p-blue { background: #0ea5e9; }
.p-red { background: #fb7185; }
.p-green { background: #6bd37a; }

/* ---------- GRID ---------- */
.monitoring-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}


/* Overlapping header */
.monitor-header {
  position: absolute;
  top: 12px;
  left: 16px;
  right: 16px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  font-weight: 700;
  z-index: 2;
}

/* Subtitle spacing fix */
.monitor-body .subtitle,
.monitor-card .subtitle {
  margin-top: 18px;
  margin-bottom: 10px;
  display: grid;
  font-weight: 600;
}

/* FIXED 5‑ROW METRIC AREA */
.metrics-grid {
  display: grid;
  grid-template-rows: repeat(5, 26px); /* ✅ force 5 rows */
  row-gap: 4px;
}

/* Metric rows */
.metric-row,
.metrics-grid > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* Keep empty rows visible */
.metrics-grid > div:empty {
  visibility: hidden;
}

/* Progress bubble positioning */
.progress {
  flex-shrink: 0;
}


/* SYSTEM */
.system-section {
  background:#fff;
  color:#111827;
  padding:48px 0;
}

.system-layout {
  display:grid;
  grid-template-columns:320px 1fr;
  gap:40px;
}

/* LEFT */
.overall-system { display:flex; flex-direction:column; gap:18px; }

.donut-wrap svg { width:160px; margin:auto; }
.donut-label { font-size:9px; fill:#374151; }
.donut-percent { font-size:30px; font-weight:800; fill:#22c55e; }
 
.stats-card div { 
    display:flex; 
    justify-content:space-between;
    font-size:13px;     
    background: #f2f2f2;
    border: 1px dashed #bebebe;
    gap: 10px;
    margin: 6px 0px;
    padding: 7px;
    border-radius: 7px;
}
.stats-card b { color:#2563eb; }



.health-badge {
  width: 44px;
  height: 44px;
  background: #22c55e;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.health-content strong {
  font-size: 15px;
  line-height: 1.3;
}

.align-middle {
  display: flex;
  align-items: center;   /* ✅ vertical middle alignment */
  gap: 14px;
}
 
 .dashed-underline {
  text-decoration: underline;
  text-decoration-style: dashed;
  text-decoration-thickness: 1px; /* optional */
  text-underline-offset: 4px;     /* optional spacing */
  color: #3b8ec6;
}

.health-score-para p {
  display: flex;
  justify-content: space-between;   /* ✅ number to the right */
  align-items: center;
  font-size:13px;     
    background: #f2f2f2;
    border: 1px dashed #bebebe;
    gap: 10px;
    margin: 6px 0px;
    padding: 7px;
    border-radius: 7px;
}

.health-score-para p span {
  color: #2563eb;                   /* ✅ blue number */
  font-weight: 700;
  font-size: 14px;
}


.health-badge {
  width:44px; height:44px;
  background:#22c55e;
  color:#fff;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
}

/* MONITORING */
.phase-strip { display:flex; margin-bottom:24px; }
.phase {
  padding:12px 32px 12px 30px;
  color:white;
  font-weight:700;
  font-size:13px;
  clip-path: polygon(0 0,92% 0,100% 50%,92% 100%,0 100%);
}
.phase.blue{background:#0ea5e9; margin-right: -23px; z-index: 2;}
.phase.red{background:#fb7185; margin-right: -23px;  z-index: 1;}
.phase.green{background:#6bd37a; clip-path: none;}

.monitor-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}

.monitor-card {
  background:#f8fafc;
  border-radius:14px;
  padding:103px 16px 0px;
  min-height:265px;
  position:relative;
}

.monitor-card.whmcs { background:#e9f5ff }
.monitor-card.wazuh { background:#fff1f2 }
.monitor-card.zabbix { background:#ecfdf5 }

.monitor-header {
  position:absolute;
  top:14px;
  left:16px;
  right:16px;
  display:flex;
  justify-content:space-between;
  font-weight:700;
}

.subtitle { margin:10px 0; font-weight:600; }

.metrics-grid {
  display:grid;
  grid-template-rows:repeat(5,26px);
}
.metrics-grid div {
  display:flex;
  justify-content:space-between;
      background-color: white;
    padding: 6px;
  font-size:13px;
}
.metrics-grid div:empty { visibility:hidden; }

.ring {
  width:80px;
  height:80px;
  border-radius:50%;
  border:4px solid;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
}
.ring.blue{border-color:#0ea5e9;color:#fff; background-color: #0ea5e9a1}
.ring.red{border-color:#ef4444;color:#fff; background-color: #f44336b3}
.ring.green{border-color:#22c55e;color:#fff; background-color: #22c55ec4}