/* Bennett's DayZ Admin Panel — Dark Theme */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0d1117;
    --card: #161b22;
    --border: #30363d;
    --accent: #f0a500;
    --accent-hover: #d4930a;
    --text: #c9d1d9;
    --text-muted: #8b949e;
    --text-dim: #6e7681;
    --danger: #f85149;
    --success: #3fb950;
    --radius: 8px;
    --nav-height: 60px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* ── Navbar ── */
.navbar {
    height: var(--nav-height);
    background: var(--card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 900;
}

.nav-brand {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-brand .nav-subtitle {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 14px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.15s;
}

.nav-link:hover { background: #21262d; color: var(--text); }
.nav-link.active { background: #21262d; color: var(--accent); }
.nav-logout { color: var(--danger) !important; }
.nav-logout:hover { background: rgba(248, 81, 73, 0.1) !important; }

.nav-user {
    color: var(--text-dim);
    font-size: 13px;
    padding: 0 8px;
}

/* ── Login Page ── */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: radial-gradient(ellipse at center top, #161b22 0%, #0d1117 70%);
}

.login-container {
    width: 100%;
    max-width: 380px;
    padding: 40px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
}

.login-logo {
    margin-bottom: 16px;
}

.login-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 28px;
    line-height: 1.3;
}

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

.alert {
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 20px;
    text-align: left;
}

.alert-error {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.3);
    color: var(--danger);
}

.login-form { text-align: left; }

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 10px 14px;
    background: #0d1117;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s;
    outline: none;
}

.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(240, 165, 0, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 11px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 8px;
}

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

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
}

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

/* ── Content Container ── */
.content-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 20px;
}

.page-header {
    margin-bottom: 28px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 14px;
}

/* ── Stats Grid ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    transition: border-color 0.15s;
}

.stat-card:hover { border-color: var(--accent); }

.stat-server-name {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 14px;
}

.stat-bar-wrap {
    height: 4px;
    background: #21262d;
    border-radius: 2px;
    overflow: hidden;
}

.stat-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.5s ease;
    max-width: 100%;
}

.total-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-top: 2px solid var(--accent);
    border-radius: 10px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.total-label {
    font-size: 15px;
    color: var(--text-muted);
}

.total-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-sub { font-size: 13px; color: var(--text-dim); margin-top: 6px; }

.refresh-hint { text-align: center; }
