@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --ink: #000000;
  --muted: #4d4d4d;
  --line: #d9d9d9;
  --paper: #ffffff;
  --white: #ffffff;
  --navy: #000000;
  --green: #00d700;
  --green-soft: #e8ffe8;
  --amber: #d99a32;
  --amber-soft: #fff3da;
  --red: #d75c55;
  --red-soft: #fde9e6;
  --blue: #4a7fd1;
  --blue-soft: #e8f0fd;
  --shadow: 0 14px 35px rgba(0, 0, 0, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: 'DM Sans', sans-serif; font-size: 14px; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(74, 127, 209, .35); outline-offset: 2px; }
.hidden { display: none !important; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 238px; flex: 0 0 238px; background: var(--navy); color: #d8e4e0; display: flex; flex-direction: column; padding: 27px 17px 20px; }
.brand { color: #ffffff; font-size: 21px; font-weight: 700; letter-spacing: -.7px; display: flex; align-items: center; gap: 9px; padding: 0 12px 48px; }
.brand-mark { width: 22px; height: 22px; display: grid; place-items: center; color: #000000; background: #00d700; border-radius: 6px; font-size: 21px; line-height: 1; }
.brand-dot { color: #00d700; }
.sidebar-section-label { text-transform: uppercase; color: #738b89; font-size: 10px; letter-spacing: 1.4px; font-weight: 700; padding: 0 12px 12px; }
.nav-links { display: grid; gap: 5px; }
.nav-link { color: #afc1bd; text-decoration: none; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 7px; font-weight: 600; transition: background .2s, color .2s; }
.nav-link:hover, .nav-link.active { color: #000000; background: #00d700; }
.nav-icon { color: #82a09a; font-family: 'Space Mono', monospace; font-size: 15px; width: 17px; text-align: center; }
.nav-link.active .nav-icon { color: #000000; }
.nav-count { margin-left: auto; background: #b7504d; color: white; padding: 2px 7px; font-size: 10px; border-radius: 20px; }
.sidebar-bottom { margin-top: auto; }
.environment-badge { color: #8fa7a2; border-top: 1px solid #2b454b; border-bottom: 1px solid #2b454b; padding: 15px 12px; display: flex; gap: 8px; align-items: center; font-size: 11px; }
.pulse-dot, .live-indicator span { background: #65d89a; border-radius: 50%; width: 6px; height: 6px; display: inline-block; box-shadow: 0 0 0 4px rgba(101, 216, 154, .12); }
.user-chip { display: flex; gap: 9px; align-items: center; padding: 18px 7px 0; }
.avatar { width: 30px; height: 30px; display: grid; place-items: center; background: #d9a962; color: #493722; border-radius: 50%; font-size: 11px; font-weight: 700; }
.user-chip strong, .user-chip small { display: block; }
.user-chip strong { color: #ffffff; font-size: 12px; }
.user-chip small { color: #78918d; font-size: 10px; margin-top: 2px; }
.icon-button { border: 0; background: transparent; color: #8da5a0; padding: 5px; }
.logout-button { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; margin-left: auto; padding: 0 11px; border: 1px solid rgba(215, 92, 85, .38); border-radius: 5px; background: rgba(215, 92, 85, .1); color: #f0a19b; font-size: 11px; font-weight: 700; transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease; }
.logout-button:hover { border-color: #d75c55; background: #d75c55; color: #ffffff; }
.logout-button:active { transform: translateY(1px); }

.main-content { flex: 1; min-width: 0; }
.topbar { min-height: 66px; padding: 0 42px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.65); }
.breadcrumb { color: #91a09b; font-size: 12px; display: flex; gap: 10px; align-items: center; }
.breadcrumb strong { color: var(--ink); font-weight: 600; }
.breadcrumb-separator { color: #c0cbc8; }
.topbar-actions { display: flex; gap: 18px; align-items: center; }
.demo-label { color: #83928e; font-size: 11px; display: flex; align-items: center; gap: 7px; }
.refresh-button { color: var(--ink); border: 1px solid #d3ded9; background: var(--white); border-radius: 6px; padding: 7px 10px; display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; }
.refresh-button:hover { border-color: #a6bbb2; background: #fbfdfc; }
.refresh-icon { font-size: 17px; color: var(--green); }
kbd { color: #96a29f; border: 1px solid #e0e7e4; border-radius: 3px; padding: 1px 4px; font-size: 9px; font-family: 'Space Mono', monospace; }
.top-icon-button { font-size: 16px; color: #657773; }
.page-content { padding: 40px 42px 30px; max-width: 1680px; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 30px; }
.eyebrow { color: #8a9995; font-size: 11px; letter-spacing: .2px; text-transform: uppercase; font-weight: 600; display: flex; align-items: center; gap: 12px; }
.live-indicator { color: var(--green); font-size: 10px; display: inline-flex; align-items: center; gap: 6px; }
h1 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -1.6px; line-height: 1.1; margin: 9px 0 8px; }
.page-subtitle { color: var(--muted); margin: 0; font-size: 14px; }
.last-sync { font-size: 11px; color: #95a29f; padding-bottom: 3px; }
.last-sync strong { color: #5f716c; margin-left: 5px; font-weight: 600; }
.summary-grid { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 14px; margin-bottom: 39px; }
.summary-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; min-height: 142px; padding: 20px 21px; box-shadow: var(--shadow); }
.summary-card-primary { background: var(--white); color: #000000; border-color: var(--green); border-top: 4px solid var(--green); }
.summary-label { color: #80908b; font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.summary-card-primary .summary-label { color: #000000; }
.summary-card-primary .summary-info { color: #000000; border-color: #000000; }
.summary-info { border: 1px solid #a7b9b5; border-radius: 50%; width: 14px; height: 14px; text-align: center; font-size: 9px; line-height: 13px; }
.summary-value { font-family: 'Space Mono', monospace; color: var(--ink); font-size: 28px; font-weight: 700; margin: 12px 0 7px; letter-spacing: -2px; }
.summary-card-primary .summary-value { color: #000000; }
.summary-card-primary .summary-unit { color: #000000; }
.summary-unit { font-size: 16px; letter-spacing: 0; }
.summary-muted { color: #a2aeab; font-size: 15px; letter-spacing: -1px; }
.summary-trend { font-size: 11px; font-weight: 700; }
.summary-trend span, .summary-foot > span:last-child { color: #98a7a3; font-weight: 400; margin-left: 3px; }
.summary-card-primary .positive, .summary-card-primary .positive span { color: var(--green); }
.health-track { height: 4px; margin-top: 15px; background: #000000; border-radius: 5px; overflow: hidden; }
.health-track span { display: block; background: #00d700; height: 100%; border-radius: inherit; }
.summary-foot { color: #788883; font-size: 11px; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.status-dot.good { background: var(--green); }.status-dot.warning { background: var(--amber); }.status-dot.critical { background: var(--red); }.status-dot.info { background: var(--blue); }
.severity-critical { color: var(--red); font-weight: 700; }.severity-warning { color: var(--amber); font-weight: 700; }.trend-neutral { color: #739687; font-weight: 600; }

.toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 18px; }
.toolbar-title { display: flex; align-items: center; gap: 10px; }
.section-marker { width: 4px; height: 20px; background: var(--green); border-radius: 2px; }
h2 { font-size: 17px; letter-spacing: -.4px; margin: 0; }.server-total { color: #82918c; background: #e7eeeb; border-radius: 20px; padding: 3px 8px; font-size: 10px; font-family: 'Space Mono', monospace; }
.toolbar-controls { display: flex; gap: 8px; align-items: center; }
.search-field, .select-wrap, .filter-button { height: 35px; border: 1px solid var(--line); background: var(--white); border-radius: 5px; display: flex; align-items: center; }
.search-field { color: #80908b; width: 220px; padding-left: 10px; gap: 8px; }.search-field span { font-size: 20px; transform: rotate(-15deg); }.search-field input { border: 0; outline: 0; width: 100%; color: var(--ink); font-size: 11px; }.search-field input::placeholder { color: #a3afac; }
.select-wrap select { border: 0; background: transparent; height: 100%; padding: 0 28px 0 10px; color: #64746f; font-size: 11px; outline: 0; }
.filter-button { padding: 0 10px; color: #657570; font-size: 12px; gap: 7px; }.filter-badge { background: #e6f3ea; color: var(--green); border-radius: 12px; padding: 2px 6px; font-size: 10px; }
.server-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px; }
.server-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 19px 19px 16px; box-shadow: var(--shadow); animation: rise .35s ease both; transition: box-shadow .2s, transform .2s; }.server-card:hover { box-shadow: 0 16px 38px rgba(27,57,48,.11); transform: translateY(-2px); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.server-card-header { display: flex; justify-content: space-between; align-items: start; }.server-name-row { display: flex; gap: 9px; align-items: center; }.server-status-dot { width: 9px; height: 9px; border-radius: 50%; }.server-status-dot.healthy { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }.server-status-dot.warning { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }.server-status-dot.critical { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.server-card h3 { margin: 0; font-size: 16px; letter-spacing: -.4px; }.server-host { color: #93a19d; font-size: 10px; font-family: 'Space Mono', monospace; margin: 6px 0 0 18px; }
.status-pill { padding: 5px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; }.status-pill.healthy { color: #247d51; background: var(--green-soft); }.status-pill.warning { color: #9c6916; background: var(--amber-soft); }.status-pill.critical { color: #a83f3b; background: var(--red-soft); }
.card-menu { color: #a8b3b0; font-size: 16px; border: 0; background: transparent; margin-left: 8px; }
.metrics-block { border-top: 1px solid #edf1ef; margin-top: 17px; padding-top: 15px; }.metric-line { margin-bottom: 14px; }.metric-line:last-child { margin-bottom: 0; }.metric-label-row { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: #7d8b87; margin-bottom: 6px; }.metric-label-row strong { color: #52635e; font-family: 'Space Mono', monospace; font-size: 10px; }.progress { height: 5px; background: #e9efec; border-radius: 5px; overflow: hidden; }.progress span { display: block; height: 100%; border-radius: inherit; }.progress .green { background: var(--green); }.progress .amber { background: var(--amber); }.progress .red { background: var(--red); }
.card-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; padding-top: 15px; border-top: 1px solid #edf1ef; }.fact-label { display: block; color: #9aa6a3; font-size: 9px; margin-bottom: 5px; }.fact-value { color: #40534d; font-family: 'Space Mono', monospace; font-size: 11px; }.fact-value.alert { color: var(--red); }.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 12px; border-top: 1px solid #edf1ef; }.updated-at { color: #a0aca9; font-size: 9px; }.updated-at strong { color: #73837e; font-weight: 500; }.card-actions { display: flex; gap: 7px; }.card-button { border: 1px solid var(--line); background: white; border-radius: 4px; color: #667671; font-size: 10px; padding: 6px 9px; font-weight: 600; }.card-button:hover { border-color: #a4b9af; color: var(--green); }.card-button.primary { color: #247d51; background: #eff9f2; border-color: #d7efdf; }
.empty-state { text-align: center; padding: 70px 20px; color: #85938f; border: 1px dashed #ccd8d3; border-radius: 8px; }.page-footer { text-align: center; margin: 31px 0 0; color: #9aa7a3; font-size: 10px; }.page-footer .status-dot { vertical-align: middle; margin-right: 5px; }.footer-separator { margin: 0 8px; color: #c5cfcc; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(17, 36, 42, .46); z-index: 5; display: grid; place-items: center; padding: 20px; }.detail-panel { position: relative; background: var(--paper); border-radius: 10px; width: min(720px, 100%); max-height: min(760px, 92vh); overflow: auto; padding: 30px; box-shadow: 0 24px 80px rgba(10, 26, 32, .24); }.modal-close { position: absolute; top: 15px; right: 17px; border: 0; background: transparent; color: #758580; font-size: 25px; line-height: 1; }.detail-kicker { color: var(--green); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }.detail-panel h2 { margin: 7px 0 5px; font-size: 26px; }.detail-host { color: #879692; font-family: 'Space Mono', monospace; font-size: 11px; }.detail-status { margin-top: 20px; display: flex; align-items: center; gap: 10px; }.detail-status strong { font-size: 12px; }.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 23px; }.detail-section { background: var(--white); border: 1px solid var(--line); border-radius: 7px; padding: 17px; }.detail-section h3 { margin: 0 0 15px; font-size: 12px; }.detail-stat { display: flex; justify-content: space-between; border-top: 1px solid #edf1ef; padding: 9px 0; color: #7c8c87; font-size: 11px; }.detail-stat:first-of-type { border-top: 0; padding-top: 0; }.detail-stat strong { color: #40534d; font-family: 'Space Mono', monospace; font-size: 10px; }.service-list { display: grid; gap: 8px; }.service-item { display: flex; justify-content: space-between; align-items: center; color: #667671; font-size: 11px; }.service-item span { color: var(--green); font-size: 10px; font-weight: 700; }.service-item span.down { color: var(--red); }.detail-link { display: inline-block; margin-top: 20px; color: var(--blue); font-size: 11px; font-weight: 600; }.toast { position: fixed; right: 24px; bottom: 24px; z-index: 10; background: var(--navy); color: white; padding: 11px 15px; border-radius: 5px; font-size: 11px; box-shadow: var(--shadow); transform: translateY(20px); opacity: 0; pointer-events: none; transition: all .25s; }.toast.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) { .sidebar { width: 190px; flex-basis: 190px; }.topbar, .page-content { padding-left: 26px; padding-right: 26px; }.summary-grid { grid-template-columns: repeat(2, 1fr); }.summary-card-primary { grid-column: span 2; } .toolbar { align-items: flex-start; flex-direction: column; }.toolbar-controls { width: 100%; }.search-field { flex: 1; } }
@media (max-width: 720px) { .app-shell { display: block; }.sidebar { width: 100%; height: auto; padding: 14px 16px; display: block; }.brand { padding: 0 0 14px; }.sidebar-section-label, .sidebar-bottom, .nav-icon { display: none; }.nav-links { display: flex; gap: 4px; overflow-x: auto; }.nav-link { padding: 8px 11px; font-size: 11px; white-space: nowrap; }.topbar { padding: 0 17px; min-height: 55px; }.breadcrumb { font-size: 11px; }.demo-label, .top-icon-button { display: none; }.refresh-button { padding: 6px 8px; }.page-content { padding: 28px 17px 25px; }.page-heading { display: block; }.last-sync { margin-top: 16px; }.summary-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; margin-bottom: 28px; }.summary-card { min-height: 120px; padding: 15px; }.summary-card-primary { grid-column: span 2; }.summary-value { font-size: 23px; }.summary-foot { font-size: 9px; flex-wrap: wrap; }.toolbar-controls { flex-wrap: wrap; }.search-field { flex-basis: 100%; }.select-wrap { flex: 1; }.select-wrap select { width: 100%; padding-right: 4px; }.filter-button span:not(.filter-badge) { display: none; }.server-grid { grid-template-columns: 1fr; }.detail-grid { grid-template-columns: 1fr; }.detail-panel { padding: 23px 17px; }.footer-separator { display: none; } }
