:root {
    --bg: #15181c;
    --bg-elevated: #1e2227;
    --border: #2b3038;
    --text: #e8e8e8;
    --text-dim: #9aa1ab;
    --accent: #5cb85c;
    --accent-dark: #4a9d4a;
    --danger: #d9534f;
    --radius: 6px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header {
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.logo span {
    color: var(--accent);
}

.nav {
    display: flex;
    gap: 24px;
}

.nav a {
    color: var(--text-dim);
    font-weight: 500;
}

.nav a:hover,
.nav a.active {
    color: var(--text);
    text-decoration: none;
}

.page {
    flex: 1;
    padding: 40px 20px;
}

h1 {
    font-size: 28px;
    margin: 0 0 8px;
}

h2 {
    font-size: 20px;
    margin: 32px 0 16px;
}

.subtitle {
    color: var(--text-dim);
    margin: 0 0 32px;
}

.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.card .meta {
    color: var(--text-dim);
    font-size: 13px;
    margin-bottom: 12px;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-dim);
    display: inline-block;
}

.dot.online {
    background: var(--accent);
}

.dot.offline {
    background: var(--danger);
}

.empty-state {
    color: var(--text-dim);
    padding: 24px 0;
}

form {
    max-width: 360px;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--text-dim);
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
}

.field textarea {
    resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--accent);
}

.field input:disabled {
    opacity: 0.6;
}

.admin-form {
    max-width: 480px;
    margin-bottom: 24px;
}

.admin-form .btn {
    margin-right: 8px;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: #0d1a0d;
    border: none;
    border-radius: var(--radius);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn:hover {
    background: var(--accent-dark);
}

.btn.secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn.secondary:hover {
    border-color: var(--accent);
}

.form-error {
    display: none;
    background: rgba(217, 83, 79, 0.15);
    border: 1px solid var(--danger);
    color: #f5a8a5;
    padding: 10px 14px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 14px;
}

.form-success {
    background: rgba(92, 184, 92, 0.15);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 10px 14px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 14px;
}

.form-footer {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-dim);
}

.profile-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 480px;
}

.profile-box .role-badge {
    display: inline-block;
    background: rgba(92, 184, 92, 0.15);
    color: var(--accent);
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    margin-top: 4px;
}

.download-box {
    max-width: 480px;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 20px;
    color: var(--text-dim);
    font-size: 13px;
    text-align: center;
}
