* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #0f172a; color: #e2e8f0; min-height: 100vh; }

nav {
  background: #1e293b; padding: 12px 24px; display: flex; align-items: center; gap: 20px;
  border-bottom: 1px solid #334155; position: sticky; top: 0; z-index: 10;
}
.nav-brand { font-weight: 700; font-size: 18px; color: #38bdf8; }
.nav-domain { color: #94a3b8; font-size: 14px; }
.nav-status { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.status-dot.online { background: #22c55e; box-shadow: 0 0 8px #22c55e88; }
.status-dot.offline { background: #ef4444; }

.container { display: flex; min-height: calc(100vh - 52px); }

aside { width: 220px; background: #1e293b; border-right: 1px solid #334155; padding: 12px 0; flex-shrink: 0; }
.menu { list-style: none; }
.menu li {
  padding: 10px 24px; cursor: pointer; color: #94a3b8; font-size: 14px; transition: all .15s;
  border-left: 3px solid transparent;
}
.menu li:hover { background: #334155; color: #e2e8f0; }
.menu li.active { background: #334155; color: #38bdf8; border-left-color: #38bdf8; font-weight: 600; }

main { flex: 1; padding: 28px 32px; overflow-y: auto; }

.tab { display: none; }
.tab.active { display: block; }

h1 { font-size: 24px; margin-bottom: 20px; color: #f1f5f9; }
h2 { font-size: 18px; margin: 24px 0 10px; color: #38bdf8; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.card { background: #1e293b; border: 1px solid #334155; border-radius: 8px; padding: 20px; }
.card-label { font-size: 12px; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.card-value { font-size: 28px; font-weight: 700; color: #38bdf8; }
.card-value.card-danger { color: #ef4444; }
.card-value.card-success { color: #22c55e; }

.info-box { background: #1e293b; border: 1px solid #334155; border-radius: 8px; padding: 14px 20px; color: #94a3b8; font-size: 14px; }

table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #334155; }
th { color: #94a3b8; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
td { color: #e2e8f0; }
tr:hover td { background: #1e293b; }
td .badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.badge-ok { background: #166534; color: #86efac; }
.badge-fail { background: #7f1d1d; color: #fca5a5; }

form { margin: 16px 0; }
.inline-form { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
label { display: block; margin-bottom: 12px; font-size: 13px; color: #94a3b8; }
label input, label textarea, input, textarea {
  display: block; width: 100%; margin-top: 4px; background: #0f172a; border: 1px solid #334155;
  color: #e2e8f0; padding: 8px 12px; border-radius: 6px; font-size: 14px;
}
label input:focus, label textarea:focus { outline: none; border-color: #38bdf8; }
.inline-form input { width: auto; min-width: 200px; }
button {
  background: #2563eb; color: #fff; border: none; padding: 8px 18px; border-radius: 6px;
  cursor: pointer; font-size: 14px; font-weight: 600; transition: background .15s;
}
button:hover { background: #1d4ed8; }
button.danger { background: #dc2626; }
button.danger:hover { background: #b91c1c; }

#configMsg, #testMsg { margin-left: 12px; font-size: 13px; color: #22c55e; }
.warning { margin-top: 12px; padding: 10px 14px; background: #713f12; border-radius: 6px; font-size: 13px; color: #fde047; }

pre {
  background: #0f172a; border: 1px solid #334155; border-radius: 6px; padding: 14px;
  font-size: 13px; overflow-x: auto; color: #a5b4fc; margin: 8px 0; font-family: 'JetBrains Mono', 'Cascadia Code', monospace;
}
code { background: #1e293b; padding: 1px 5px; border-radius: 3px; font-size: 13px; color: #f472b6; }
p { margin: 8px 0; line-height: 1.6; }

.delete-btn { background: none; border: none; color: #ef4444; cursor: pointer; font-size: 18px; padding: 0 4px; }
.delete-btn:hover { color: #fca5a5; }

.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox-label input { width: auto; }

