:root {
    --portal-blue: #4279aa;
    --portal-blue-dark: #2f5a7f;
    --portal-accent: #6388ac;
}

body {
    background: #f4f7fb;
    min-height: 100vh;
}

.portal-header {
    background: linear-gradient(135deg, var(--portal-blue) 0%, var(--portal-blue-dark) 100%);
    color: #fff;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(47, 90, 127, 0.25);
}

.portal-logo {
    height: 48px;
    width: auto;
    background: #fff;
    border-radius: 8px;
    padding: 4px 8px;
}

.portal-kicker {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
}

.portal-title {
    font-size: 1.75rem;
    font-weight: 700;
}

.portal-subtitle {
    opacity: 0.85;
    font-size: 0.95rem;
}

.monitoring-bar {
    border: none;
    border-left: 4px solid var(--portal-accent);
}

.resource-card {
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.resource-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

.resource-card .card-header {
    background: #fff;
    border-bottom: 1px solid #eef2f7;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    background: #e9ecef;
    color: #495057;
}

.status-pill::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.status-pill.status-up {
    background: #d1e7dd;
    color: #0f5132;
}

.status-pill.status-down {
    background: #f8d7da;
    color: #842029;
}

.status-pill.status-unknown {
    background: #e2e3e5;
    color: #41464b;
}

.status-pill.status-running {
    background: #cfe2ff;
    color: #084298;
}

.metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.metric-box {
    background: #f8fafc;
    border: 1px solid #e9eef5;
    border-radius: 0.5rem;
    padding: 0.65rem 0.75rem;
}

.metric-box .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    margin-bottom: 0.15rem;
}

.metric-box .value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
}

.badges-row img {
    height: 28px;
    width: auto;
}

.task-btn:disabled {
    pointer-events: none;
}

.resource-info dt {
    text-transform: capitalize;
}

@media (max-width: 576px) {
    .portal-title {
        font-size: 1.35rem;
    }
}

.auth-page {
    background: linear-gradient(135deg, #4279aa 0%, #2f5a7f 100%);
    min-height: 100vh;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    border: none;
}

.auth-logo {
    height: 56px;
    width: auto;
}

.verification-code {
    letter-spacing: 0.35em;
    font-size: 1.5rem;
    font-weight: 600;
}

.qr-image {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.5rem;
    background: #fff;
}

.cmk-embed {
    width: 100%;
    min-height: 420px;
    border: 0;
    background: #fff;
}

.cmk-embed-resource {
    width: 100%;
    min-height: 260px;
    border: 1px solid #e9eef5;
    border-radius: 0.5rem;
    background: #fff;
}

.chart-box {
    background: #f8fafc;
    border: 1px solid #e9eef5;
    border-radius: 0.5rem;
    padding: 0.75rem;
    min-height: 160px;
}

.chart-box canvas {
    width: 100% !important;
    height: 120px !important;
}

.chart-label {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0.35rem;
}

.monitoring-panels {
    border-top: 1px solid #eef2f7;
    padding-top: 0.75rem;
}
