﻿:root {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #0f172a;
    color: #e2e8f0;
    line-height: 1.4;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    padding: 2rem clamp(1rem, 4vw, 4rem);
    background: #020617;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.top-bar h1 {
    margin: 0;
    font-size: clamp(1.4rem, 4vw, 1.9rem);
}

.top-bar p {
    margin: 0.2rem 0 0;
    color: #94a3b8;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.status-pill {
    background: linear-gradient(120deg, #22d3ee, #0ea5e9);
    color: #0f172a;
    padding: 0.4rem 1.2rem;
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.2);
    background: rgba(15,23,42,0.7);
}

.user-pill form {
    margin: 0;
}

.user-pill button {
    background: transparent;
    border: none;
    color: #22d3ee;
    cursor: pointer;
    font-weight: 600;
}

main {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

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

.card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 1rem;
    padding: 1.1rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(2, 6, 23, 0.5);
}

.card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.card h2 {
    margin: 0;
    color: #f1f5f9;
    font-size: 1.6rem;
}

.meta {
    list-style: none;
    padding: 0;
    margin: 0.8rem 0 0;
    color: #cbd5f5;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.progress {
    width: 100%;
    height: 10px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    margin: 0.8rem 0;
}

.progress div {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(120deg, #22d3ee, #0ea5e9);
    width: 0;
    transition: width 0.4s ease;
}

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

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.info-card {
    margin-top: 0.5rem;
}

.label {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin: 0 0 0.2rem;
}

/* Auth pages */
.auth-body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at top, #1e293b, #020617);
    padding: 1.5rem;
}

.auth-card {
    background: rgba(15, 23, 42, 0.9);
    padding: 2rem;
    border-radius: 1rem;
    width: min(380px, 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.6);
}

.auth-card h1 {
    margin: 0 0 1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.auth-form label {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    color: #cbd5f5;
}

.auth-form input {
    margin-top: 0.35rem;
    padding: 0.6rem 0.8rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.6);
    color: #e2e8f0;
}

.auth-form button {
    padding: 0.8rem;
    border-radius: 0.6rem;
    border: none;
    background: linear-gradient(120deg, #22d3ee, #0ea5e9);
    color: #0f172a;
    font-weight: 600;
    cursor: pointer;
}

.form-error {
    background: rgba(248, 113, 113, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.4);
    padding: 0.6rem 0.8rem;
    border-radius: 0.6rem;
    color: #fecaca;
}

.form-info {
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.4);
    padding: 0.6rem 0.8rem;
    border-radius: 0.6rem;
    color: #bbf7d0;
}

.auth-meta {
    text-align: center;
    margin-top: 1rem;
}

.auth-meta a {
    color: #22d3ee;
    text-decoration: none;
}


.top-link {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.7);
}

@media (max-width: 720px) {
    body {
        padding: 1.2rem;
    }

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-actions {
        width: 100%;
        justify-content: space-between;
    }

    .user-pill {
        width: 100%;
        justify-content: space-between;
    }
}

.temp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.6rem;
    margin-top: 0.6rem;
}

.temp-hint {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.temp-header {
    align-items: center;
    gap: 0.6rem;
}

.temp-header h2 {
    margin-bottom: 0.2rem;
}

.temp-status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.82rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(148, 163, 184, 0.08);
    color: #e2e8f0;
    white-space: nowrap;
}

.temp-status.temp-normal {
    border-color: rgba(74, 222, 128, 0.5);
    background: rgba(22, 163, 74, 0.15);
    color: #4ade80;
}

.temp-status.temp-high {
    border-color: rgba(234, 179, 8, 0.6);
    background: rgba(248, 180, 0, 0.16);
    color: #fbbf24;
}

.temp-status.temp-critical {
    border-color: rgba(248, 113, 113, 0.6);
    background: rgba(248, 113, 113, 0.16);
    color: #f87171;
}

.temp-status.temp-low {
    border-color: rgba(14, 165, 233, 0.6);
    background: rgba(14, 165, 233, 0.16);
    color: #38bdf8;
}

.temp-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.temp-label {
    margin: 0.2rem 0 0;
    color: #cbd5f5;
    font-size: 0.95rem;
}

.temp-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.7rem;
    margin-top: 0.4rem;
}

.temp-mini {
    padding: 0.8rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.7);
}

.temp-mini-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
}

.temp-mini-status {
    font-size: 0.75rem;
    padding: 0.15rem 0.55rem;
}

.temp-mini-value {
    margin: 0.25rem 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.temp-mini-sub {
    margin: 0.05rem 0;
    color: #cbd5f5;
    font-size: 0.9rem;
}

.cpu-temp-inline {
    margin-top: 0.6rem;
    padding: 0.7rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.65);
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
}

.cpu-temp-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.cpu-temp-current {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.cpu-temp-meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.cpu-temp-meta .temp-status {
    align-self: flex-start;
}

.service-header {
    align-items: center;
    gap: 0.6rem;
}

.service-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    border-radius: 0.7rem;
    background: rgba(34, 211, 238, 0.15);
    color: #e2e8f0;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
}

.service-list {
    margin-top: 0.4rem;
}

.service-pill,
.service-list span {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    font-weight: 600;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.event-item {
    padding: 0.8rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.15);
    background: rgba(15, 23, 42, 0.7);
    color: #e2e8f0;
}

.event-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
    gap: 0.6rem;
}

.event-action {
    font-weight: 700;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-path {
    display: block;
    color: #cbd5e1;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-badge {
    font-size: 0.9rem;
    color: #e2e8f0;
    opacity: 0.9;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(148, 163, 184, 0.1);
}

.event-badge-error {
    border-color: rgba(248, 113, 113, 0.6);
    background: rgba(248, 113, 113, 0.12);
    color: #fecdd3;
}

.event-meta-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #cbd5e1;
    margin: 0.1rem 0 0.3rem;
}

.event-meta-row span {
    white-space: nowrap;
}

.event-payload {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-top: 0.1rem;
    line-height: 1.3;
}


