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

:root {
  --bg: #0a111b;
  --sidebar: #0d1724;
  --surface: #111d2b;
  --surface-2: #142233;
  --border: #203146;
  --border-soft: rgba(130, 162, 197, .12);
  --text: #eef4fc;
  --muted: #8ea2bb;
  --subtle: #60758f;
  --blue: #2684ff;
  --blue-2: #1767d7;
  --cyan: #35c8e5;
  --green: #2de0a0;
  --amber: #f5bd62;
  --purple: #a38bff;
  --radius: 15px;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; color: var(--text); font-family: 'DM Sans', sans-serif; background: radial-gradient(ellipse at 70% -15%, rgba(29, 77, 126, .17), transparent 40%), var(--bg); font-size: 14px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.app-shell { min-height: 100vh; }
.sidebar { width: 256px; position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; flex-direction: column; background: linear-gradient(180deg, #101c2a 0%, #0d1723 100%); border-right: 1px solid var(--border-soft); }
.brand { height: 76px; display: flex; align-items: center; gap: 13px; padding: 0 27px; border-bottom: 1px solid var(--border-soft); font: 800 23px 'Manrope', sans-serif; letter-spacing: -.8px; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 30px; color: var(--blue); }
.brand-mark svg { width: 29px; fill: currentColor; }
.brand-accent { color: #3a91ff; }
.nav-list { padding: 17px 10px; display: flex; flex-direction: column; gap: 6px; }
.nav-item { height: 49px; display: flex; align-items: center; gap: 15px; padding: 0 15px; border-radius: 10px; color: #92a6bf; font-size: 14px; font-weight: 500; transition: background .15s, color .15s; }
.nav-item:hover { color: #e9f3ff; background: rgba(90, 127, 169, .10); }
.nav-item.active { background: linear-gradient(110deg, #1767d5, #1d58a9); color: #fff; box-shadow: 0 7px 20px rgba(17, 95, 207, .18); }
.nav-icon { width: 20px; text-align: center; font-size: 21px; line-height: 1; font-weight: 700; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid var(--border-soft); padding: 17px 18px; display: flex; align-items: center; gap: 10px; }
.profile-orb { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #d9eaff; font-weight: 700; background: linear-gradient(145deg, #24466d, #1a2d45); border: 1px solid #315477; }
.profile-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.profile-copy strong { font-size: 12px; }
.profile-copy span { color: var(--muted); font-size: 10px; }
.more-dots { margin-left: auto; color: var(--muted); letter-spacing: 2px; }
.main-area { margin-left: 256px; min-height: 100vh; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; border-bottom: 1px solid var(--border-soft); background: rgba(10, 17, 27, .76); }
.crumb { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.crumb-muted, .crumb-slash { color: var(--subtle); }
.crumb strong { font-weight: 600; color: #c9d8e9; }
.topbar-right { display: flex; align-items: center; gap: 21px; color: var(--muted); font-size: 12px; }
.connection { display: flex; align-items: center; gap: 8px; color: #b6c6d8; }
.connection i { display: block; width: 8px; height: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 11px rgba(45,224,160,.3); }
.top-divider { height: 22px; width: 1px; background: var(--border); }
.clock-time { color: #dce7f4; font-weight: 600; font-variant-numeric: tabular-nums; }
.mobile-menu { display: none; background: none; color: var(--text); border: 0; font-size: 22px; }
.page-content { max-width: 1650px; padding: 31px 34px 20px; margin: 0 auto; }
.page { display: none; animation: appear .2s ease-out; }
.page.active { display: block; }
@keyframes appear { from { opacity: .45; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.eyebrow { margin: 0 0 8px; color: #4d9aff; font-size: 10px; font-weight: 700; letter-spacing: 1.7px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 6px; font: 800 29px 'Manrope', sans-serif; letter-spacing: -.9px; }
.page-subtitle { color: var(--muted); margin-bottom: 0; font-size: 13px; }
.heading-actions { display: flex; align-items: center; gap: 10px; }
.date-pill, .btn { border: 1px solid var(--border); border-radius: 9px; padding: 10px 13px; color: #bdcce0; background: rgba(20, 34, 51, .72); font-size: 12px; }
.btn { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: border-color .15s, background .15s; }
.btn:hover { border-color: #3c6da6; background: #172b41; }
.btn span { font-size: 17px; color: #65a8ff; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 17px; }
.stat-card, .panel, .system-card { background: linear-gradient(145deg, rgba(18, 31, 46, .96), rgba(15, 26, 39, .96)); border: 1px solid var(--border); border-radius: var(--radius); }
.stat-card { padding: 18px 19px 16px; min-height: 130px; }
.stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.stat-label { color: var(--muted); font-size: 12px; }
.stat-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 18px; background: rgba(38,132,255,.12); color: #5ba2ff; }
.stat-icon.violet { color: var(--purple); background: rgba(163,139,255,.12); }
.stat-icon.cyan { color: var(--cyan); background: rgba(53,200,229,.12); }
.stat-icon.green { color: var(--green); background: rgba(45,224,160,.1); }
.stat-value { font: 800 24px 'Manrope', sans-serif; letter-spacing: -.6px; }
.stat-value small { font: 500 11px 'DM Sans', sans-serif; color: var(--muted); letter-spacing: 0; }
.stat-foot { display: flex; align-items: center; gap: 7px; color: #8196af; font-size: 10px; margin-top: 7px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.green { background: var(--green); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 17px; align-items: stretch; }
.panel { padding: 21px; min-width: 0; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.panel-heading h2, .security-banner h2 { margin-bottom: 5px; font: 700 15px 'Manrope', sans-serif; }
.panel-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.panel-kicker { color: #637b98; font-size: 9px; letter-spacing: 1.4px; font-weight: 700; white-space: nowrap; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.service-card { min-width: 0; min-height: 70px; padding: 12px; border-radius: 11px; border: 1px solid rgba(111, 143, 179, .14); background: rgba(23, 39, 57, .58); display: flex; align-items: center; gap: 11px; transition: transform .15s, border-color .15s, background .15s; }
.service-card:hover, .system-card:hover { transform: translateY(-2px); border-color: rgba(58, 145, 255, .46); background-color: rgba(28, 48, 70, .75); }
.service-logo { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 15px; background: #203a57; color: #8dc2ff; }
.service-logo.portainer { background: rgba(38,132,255,.16); color: #63a9ff; }
.service-logo.grafana { background: rgba(244,145,47,.13); color: #ffb75e; }
.service-logo.n8n { background: rgba(231,76,110,.13); color: #ff819e; font-size: 11px; }
.service-logo.uptime { background: rgba(45,224,160,.12); color: #4de7ae; }
.service-logo.dozzle { background: rgba(163,139,255,.13); color: #b4a4ff; font-size: 22px; }
.service-logo.kopia { background: rgba(53,200,229,.12); color: #63d7ed; }
.service-logo.caddy { background: rgba(45,224,160,.12); color: #55e8b0; }
.service-logo.pi { background: rgba(245,189,98,.12); color: #f5c66e; font-size: 19px; }
.service-logo.prometheus { background: rgba(239,91,67,.13); color: #ff8b76; }
.service-logo.fail2ban { background: rgba(245,189,98,.13); color: #f5c66e; }
.service-logo.camera { background: rgba(53,200,229,.13); color: #61d7eb; }
.service-logo.duane { background: rgba(38,132,255,.16); color: #68adff; }
.service-logo.vault { background: rgba(163,139,255,.13); color: #b9a9ff; }
.service-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.service-copy strong { font-size: 12px; font-weight: 600; }
.service-copy small { color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.external { margin-left: auto; color: #657f9b; font-size: 15px; }
.metric-placeholder { display: flex; align-items: center; gap: 13px; padding: 7px 0 13px; }
.metric-ring { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#2c83f6 0 22%, #21354b 22% 100%); position: relative; }
.metric-ring:before { content: ""; position: absolute; inset: 4px; background: #122031; border-radius: 50%; }
.metric-ring span { position: relative; font-size: 12px; font-weight: 700; }
.metric-ring span small { color: var(--muted); font-size: 8px; }
.metric-ring.ring-purple { background: conic-gradient(var(--purple) 0 45%, #21354b 45% 100%); }
.metric-ring.ring-cyan { background: conic-gradient(var(--cyan) 0 30%, #21354b 30% 100%); }
.metric-placeholder > div:last-child { display: flex; flex-direction: column; gap: 4px; }
.metric-placeholder strong { font-size: 11px; }
.metric-placeholder small { font-size: 10px; color: var(--muted); }
.notice { margin-top: 9px; display: flex; align-items: flex-start; gap: 9px; padding: 11px 12px; border: 1px solid rgba(75, 143, 223, .17); border-radius: 9px; background: rgba(31, 91, 156, .09); color: #91a8c3; font-size: 10px; line-height: 1.6; }
.notice-icon { width: 16px; height: 16px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: rgba(38,132,255,.18); color: #69adff; font-weight: 700; font-size: 10px; }
.activity-panel { margin-top: 17px; }
.text-link, .card-link { color: #62a7ff; font-size: 11px; font-weight: 600; }
.text-link span { margin-left: 5px; }
.roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.roadmap-item { display: flex; align-items: flex-start; gap: 10px; border: 1px solid rgba(111,143,179,.13); border-radius: 10px; padding: 13px; min-width: 0; }
.roadmap-check, .roadmap-number { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; color: #62e7b2; background: rgba(45,224,160,.12); font-size: 12px; font-weight: 700; }
.roadmap-number { color: #8ba6c3; background: rgba(111,143,179,.12); }
.roadmap-item > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.roadmap-item strong { font-size: 11px; }
.roadmap-item small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.roadmap-status { margin-left: auto; color: #54e5ae; font-size: 9px; white-space: nowrap; }
.roadmap-status.planned { color: #f1bd68; }
.footer { display: flex; justify-content: space-between; gap: 20px; padding: 23px 2px 5px; color: #60748c; font-size: 10px; }
.footer-dot { color: #3289ff; margin: 0 4px; }
.page-icon { width: 47px; height: 47px; display: grid; place-items: center; color: #65a9ff; background: rgba(38,132,255,.1); border: 1px solid rgba(64,140,236,.19); border-radius: 13px; font-size: 24px; }
.section-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.system-card { padding: 20px; min-width: 0; transition: transform .15s, border-color .15s; }
.system-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 19px; }
.system-card h3 { margin-bottom: 8px; font: 700 16px 'Manrope', sans-serif; }
.system-card p { color: var(--muted); font-size: 12px; line-height: 1.7; min-height: 61px; margin-bottom: 18px; }
.tag { display: inline-flex; align-items: center; border-radius: 6px; padding: 5px 8px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.tag-blue { color: #75b4ff; background: rgba(38,132,255,.12); }
.tag-green { color: #50e4ad; background: rgba(45,224,160,.10); }
.tag-amber { color: #f2c16e; background: rgba(245,189,98,.10); }
.system-meta { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border-soft); padding: 12px 0; margin-bottom: 9px; font-size: 10px; color: var(--muted); }
.system-meta strong { color: #c6d6e7; font-weight: 600; text-align: right; }
.muted-link { color: #7589a1; cursor: default; }
.service-list { display: flex; flex-direction: column; gap: 9px; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 13px 16px; min-height: 68px; background: rgba(17,29,43,.85); border: 1px solid var(--border); border-radius: 12px; transition: border-color .15s, background .15s; }
.list-row:hover { border-color: rgba(58,145,255,.45); background: #142438; }
.list-main { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.list-main strong { font-size: 12px; }
.list-main small { color: var(--muted); font-size: 11px; }
.row-arrow { color: #6b8aa9; font-size: 16px; }
.page-notice { max-width: 700px; margin-top: 16px; }
.heading-with-icon { display: flex; align-items: center; gap: 15px; }
.big-page-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; color: #5ca5ff; font-size: 28px; background: linear-gradient(145deg, rgba(38,132,255,.18), rgba(38,132,255,.04)); border: 1px solid rgba(38,132,255,.2); }
.security-banner { display: flex; align-items: center; gap: 17px; border: 1px solid rgba(38,132,255,.22); background: linear-gradient(110deg, rgba(24,81,145,.20), rgba(17,29,43,.75)); padding: 20px; border-radius: 14px; margin-bottom: 16px; }
.security-shield { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; color: #68adff; background: rgba(38,132,255,.15); font-size: 26px; }
.security-banner h2 { font-size: 15px; }
.security-banner p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.empty-state { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; background: rgba(17,29,43,.55); border: 1px dashed #2a4058; border-radius: 15px; }
.empty-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: rgba(38,132,255,.12); color: #69adff; font-size: 24px; margin-bottom: 18px; }
.empty-state h2 { margin-bottom: 8px; font: 700 17px 'Manrope', sans-serif; }
.empty-state p { max-width: 400px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.settings-panel { max-width: 850px; padding: 0 20px; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 0; border-bottom: 1px solid var(--border-soft); }
.settings-row:last-child { border-bottom: 0; }
.settings-row > div { display: flex; flex-direction: column; gap: 5px; }
.settings-row strong { font-size: 12px; }
.settings-row small { color: var(--muted); font-size: 11px; }
@media (min-width: 1600px) { .page-content { padding-left: 42px; padding-right: 42px; } .stat-card { padding: 21px 23px; } }
@media (max-width: 1200px) { .sidebar { width: 220px; } .main-area { margin-left: 220px; } .brand { padding: 0 19px; font-size: 21px; } .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .content-grid { grid-template-columns: 1fr; } .section-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .roadmap { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 20px 0 40px rgba(0,0,0,.25); } .sidebar.open { transform: translateX(0); } .main-area { margin-left: 0; } .topbar { height: 64px; padding: 0 16px; gap: 12px; } .mobile-menu { display: block; } .crumb { margin-right: auto; } .topbar-right { gap: 10px; font-size: 10px; } .clock-date, .top-divider { display: none; } .page-content { padding: 24px 16px 16px; } .page-heading { align-items: flex-start; } h1 { font-size: 25px; } .heading-actions { flex-direction: column; align-items: flex-end; } .date-pill { display: none; } .stat-grid { gap: 10px; } .stat-card { padding: 14px; min-height: 122px; } .stat-value { font-size: 20px; } .service-grid { grid-template-columns: 1fr; } .section-grid { grid-template-columns: 1fr; } .footer { flex-direction: column; gap: 8px; } .page-heading > .tag { margin-top: 8px; } .heading-with-icon { align-items: flex-start; } .big-page-icon { width: 42px; height: 42px; font-size: 22px; } }
