:root {
    --bg: #0d1117;
    --surface: #161b22;
    --surface2: #21262d;
    --text: #c9d1d9;
    --muted: #8b949e;
    --accent: #58a6ff;
    --danger: #f85149;
    --success: #56d364;
    --border: rgba(148, 163, 184, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, rgba(56, 139, 253, 0.15), transparent 20%),
                radial-gradient(circle at bottom right, rgba(80, 250, 123, 0.12), transparent 20%),
                var(--bg);
    color: var(--text);
    min-height: 100vh;
}

.page {
    width: min(1200px, calc(100% - 32px));
    margin: 24px auto;
}

.header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
}

.header h1 {
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 2vw, 2.3rem);
}

.header p {
    margin: 0;
    color: var(--muted);
}

.status-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

button {
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    cursor: pointer;
    background: var(--accent);
    color: #0b1a2a;
    font-weight: 600;
}

button.secondary {
    background: rgba(255,255,255,.08);
    color: var(--text);
}

.status {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.status.online { background: rgba(56, 219, 143, 0.18); color: var(--success); }
.status.offline { background: rgba(248, 81, 73, 0.17); color: var(--danger); }

.login-panel,
.content {
    margin-top: 22px;
    padding: 24px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid var(--border);
}

.login-panel h2 {
    margin: 0 0 16px;
}

.login-panel input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    margin-bottom: 14px;
}

.hint {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.top-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 940px;
}

thead th {
    text-align: left;
    padding: 14px 12px;
    font-size: 0.92rem;
    color: var(--muted);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

tbody tr:hover {
    background: rgba(255,255,255,0.03);
}

td {
    padding: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    vertical-align: middle;
}

.col-actions button {
    margin-right: 8px;
    margin-bottom: 6px;
}

.hidden {
    display: none !important;
}

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(22, 82, 163, 0.95);
    color: #fff;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}
