* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0b1120;
    color: #e2e8f0;
}

.login-panel {
    width: 90%;
    max-width: 420px;
    margin: 12vh auto;
    padding: 32px;
    background: #172337;
    border: 1px solid #293548;
    border-radius: 16px;
}

h1, h2, h3 {
    margin-top: 0;
}

label {
    display: block;
    margin-top: 18px;
    color: #94a3b8;
}

input {
    width: 100%;
    padding: 13px;
    margin: 8px 0;
    color: white;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
}

button {
    padding: 12px 20px;
    background: #2563eb;
    color: white;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

button:hover {
    background: #1d4ed8;
}

button:disabled {
    opacity: 0.5;
    cursor: wait;
}

.login-panel button {
    width: 100%;
    margin-top: 16px;
}

#loginMessage {
    color: #f87171;
}

#dashboard {
    max-width: 1400px;
    margin: auto;
    padding: 25px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #293548;
}

.overview {
    margin: 30px 0;
}

.metrics-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.metric, .details {
    background: #172337;
    border: 1px solid #293548;
    border-radius: 14px;
    padding: 25px;
}

.metric h3 {
    color: #94a3b8;
    font-size: 15px;
}

.metric strong {
    display: block;
    font-size: 32px;
    margin: 20px 0;
}

progress {
    width: 100%;
    height: 12px;
    accent-color: #34d399;
}

.details {
    margin-top: 24px;
}

p {
    color: #94a3b8;
    line-height: 1.5;
}

.online {
    color: #4ade80;
}

.offline {
    color: #f87171;
}

#serviceList {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.service-card {
    padding: 18px;
    border: 1px solid #334155;
    border-radius: 10px;
    background: #0f172a;
}

.service-card strong {
    display: block;
    margin-bottom: 10px;
}

.service-active {
    color: #4ade80;
}

.service-inactive {
    color: #fbbf24;
}

.service-unknown {
    color: #94a3b8;
}
