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

:root {
    color-scheme: dark;
    --bg: #0b1018;
    --surface: #111a26;
    --surface2: #151f2d;
    --border: #202d3d;
    --muted: #8290a3;
    --text: #edf2f8;
    --accent: #55a6ff;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, Arial, sans-serif; font-size: 13px; }
a { color: inherit; text-decoration: none; }
.layout { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 248px; background: #0e151f; border-right: 1px solid var(--border); padding: 27px 16px 18px; display: flex; flex-direction: column; z-index: 2; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 35px; font-size: 13px; font-weight: 800; letter-spacing: 1.1px; }
.brand-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(145deg,#398df0,#1755a7); font-size: 19px; }
.brand-light { color: #91a2b8; font-weight: 500; margin-left: 4px; }
.nav-caption { color: #64748a; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; padding: 17px 11px 9px; }
.nav-item { display: flex; align-items: center; gap: 12px; color: #a8b5c6; padding: 11px 12px; border-radius: 7px; margin: 2px 0; font-size: 12px; transition: .2s; }
.nav-item span { width: 17px; color: #8295ad; font-size: 16px; text-align: center; }
.nav-item:hover, .nav-item.active { background: #192b40; color: #fff; }
.nav-item.active { box-shadow: inset 2px 0 #55a6ff; }
.nav-item.active span { color: #65b0ff; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid var(--border); padding: 18px 7px 0; display: flex; align-items: center; gap: 8px; color: #aab7c7; font-size: 11px; }
.sidebar-bottom small { margin-left: auto; color: #65758b; }
.status-dot, .server-indicator i, .site-state i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #e2a849; }
.main { margin-left: 248px; padding: 0 38px; max-width: 1800px; }
.topbar { height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.eyebrow, .welcome-label { color: #6e9dcf; font-size: 9px; font-weight: 700; letter-spacing: 1.6px; }
h1 { font-size: 21px; margin: 6px 0 0; letter-spacing: -.5px; }
.top-right { display: flex; align-items: center; gap: 20px; }
.server-indicator { display: flex; align-items: center; gap: 8px; color: #a9b8ca; font-size: 10px; letter-spacing: .8px; }
.server-indicator i { background: #e2a849; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #1d3550; color: #9acbff; font-size: 11px; font-weight: 700; }
.welcome { margin: 27px 0 29px; padding: 25px 28px; min-height: 142px; border: 1px solid #23466a; border-radius: 11px; background: radial-gradient(ellipse at 85% 20%,#1a3b5c 0,transparent 42%),linear-gradient(110deg,#14263a,#111c2a); display: flex; align-items: center; justify-content: space-between; overflow: hidden; }
.welcome h2 { font-size: 19px; margin: 9px 0 7px; }
.welcome p { margin: 0; color: #9aacc0; font-size: 12px; }
.welcome-mark { color: #8ec5ff; font-weight: 800; font-size: 22px; letter-spacing: 2px; opacity: .65; }
.welcome-mark span { color: #6e8eae; font-size: 10px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 27px 0 13px; }
.section-heading h3, .panel-heading h3 { margin: 0; font-size: 14px; font-weight: 600; }
.section-heading > span, .panel-heading > span { color: #74849a; font-size: 10px; }
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.stat-card, .panel-card { background: var(--surface); border: 1px solid var(--border); border-radius: 9px; }
.stat-card { padding: 16px 17px 14px; min-height: 119px; }
.stat-top { display: flex; align-items: center; justify-content: space-between; color: #8d9caf; font-size: 9px; font-weight: 700; letter-spacing: .8px; }
.stat-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; font-size: 15px; }
.blue { color: #65b3ff; background: #17334e; }
.violet { color: #b4a1ff; background: #2b2547; }
.orange { color: #f2b65e; background: #3c3020; }
.red { color: #ff8585; background: #40252b; }
.stat-value { font-size: 25px; font-weight: 700; margin: 9px 0 3px; }
.stat-foot { color: #718197; font-size: 10px; }
.sites { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.site-card { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 15px 13px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; }
.site-symbol { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 8px; background: #1b2c40; color: #80baff; font-weight: 700; }
.site-info { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.site-info strong { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.site-info span { color: #c5d2e0; font-size: 13px; font-weight: 700; }
.site-state { margin-left: auto; white-space: nowrap; color: #d8bd91; font-size: 11px; font-weight: 600; }
.site-state i { width: 6px; height: 6px; margin-right: 5px; vertical-align: 1px; }
.bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 25px; }
.panel-card { padding: 17px 18px; min-height: 175px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; padding-bottom: 13px; border-bottom: 1px solid var(--border); }
.service-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #1c2836; color: #bdc8d6; font-size: 11px; }
.service-row:last-child { border: 0; }
.service-row b { font-size: 10px; font-weight: 500; }
.pending { color: #d5aa69; }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 13px 15px 0; }
.empty-state > span { font-size: 24px; color: #6689ad; }
.empty-state p { color: #c2cedc; font-size: 11px; margin: 7px 0; }
.empty-state small { max-width: 310px; color: #74849a; font-size: 10px; line-height: 1.6; }
footer { padding: 25px 0 20px; color: #718197; font-size: 9px; letter-spacing: 1px; }
footer span { margin-left: 9px; letter-spacing: 0; color: #53647a; }
@media (max-width: 1150px) {
    .main { padding: 0 24px; }
    .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .sites { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .sidebar { position: static; width: auto; padding: 17px 14px; }
    .brand { padding-bottom: 12px; }
    .nav-caption, .nav-item, .sidebar-bottom { display: none; }
    .main { margin: 0; padding: 0 15px; }
    .topbar { height: 75px; }
    .welcome { padding: 20px; }
    .welcome-mark { display: none; }
    .section-heading { align-items: flex-start; gap: 8px; flex-direction: column; }
    .stats { gap: 9px; }
    .stat-card { padding: 13px; }
    .bottom-grid { grid-template-columns: 1fr; }
    .site-state { font-size: 10px; }
}

.login-page {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 50% 35%, rgba(35, 77, 119, .22), transparent 55%),
        var(--bg);
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.login-brand {
    padding: 0;
    margin-bottom: 30px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 34px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.login-eyebrow {
    color: #6e9dcf;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.6px;
}

.login-card h1 {
    margin: 11px 0 9px;
    font-size: 23px;
}

.login-description {
    margin: 0 0 27px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.login-card label {
    display: block;
    margin: 17px 0 8px;
    color: #b9c6d6;
    font-size: 11px;
    font-weight: 600;
}

.login-card input {
    width: 100%;
    height: 44px;
    padding: 0 13px;
    color: var(--text);
    background: #0c1420;
    border: 1px solid var(--border);
    border-radius: 7px;
    outline: none;
    font: inherit;
    transition: border-color .2s, box-shadow .2s;
}

.login-card input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(85, 166, 255, .12);
}

.login-card button {
    width: 100%;
    height: 45px;
    margin-top: 25px;
    color: #fff;
    background: linear-gradient(110deg, #398df0, #2368bd);
    border: 0;
    border-radius: 7px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: filter .2s, transform .2s;
}

.login-card button:hover {
    filter: brightness(1.12);
}

.login-card button:active {
    transform: translateY(1px);
}

.login-error {
    padding: 11px 13px;
    color: #ffaaaa;
    background: rgba(170, 53, 62, .13);
    border: 1px solid rgba(220, 90, 100, .25);
    border-radius: 7px;
    font-size: 11px;
    line-height: 1.5;
}

.login-footer {
    margin-top: 28px;
    color: #718197;
    font-size: 9px;
    letter-spacing: 1px;
    text-align: center;
}

.login-footer span {
    margin-left: 7px;
    color: #53647a;
    letter-spacing: 0;
}

@media (max-width: 480px) {
    .login-card {
        padding: 26px 21px;
    }

    .login-footer span {
        display: block;
        margin: 7px 0 0;
    }
}

.logout-form {
    margin: 0;
}

.logout-button {
    padding: 9px 14px;
    color: #aebed0;
    background: #151f2d;
    border: 1px solid #29394c;
    border-radius: 7px;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
    transition: .2s;
}

.logout-button:hover {
    color: #fff;
    border-color: #55a6ff;
    background: #192b40;
}
