:root {
    --wg-green: #22c55e;
    --wg-dark:  #0f1117;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #0d1117;
    color: #c9d1d9;
}

main {
    flex: 1;
}

.navbar-brand {
    letter-spacing: .03em;
}

/* Cards */
.card {
    background-color: #161b22;
    border-color: #30363d;
}

.card-header {
    background-color: #1c2128;
    border-bottom-color: #30363d;
}

/* Tables */
.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255,255,255,.03);
    --bs-table-hover-bg: rgba(255,255,255,.05);
    color: #c9d1d9;
}

.table thead th {
    border-bottom: 1px solid #30363d;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #8b949e;
}

/* Stat cards */
.stat-card {
    border-left: 4px solid var(--wg-green);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--wg-green);
}

/* Code / key display */
.wg-key {
    font-family: 'Courier New', monospace;
    font-size: .75rem;
    word-break: break-all;
    color: #79c0ff;
}

/* Badges */
.badge-role-admin  { background-color: #22c55e; }
.badge-role-user   { background-color: #3b82f6; }

/* Form controls on dark bg */
.form-control, .form-select {
    background-color: #0d1117;
    border-color: #30363d;
    color: #c9d1d9;
}

.form-control:focus, .form-select:focus {
    background-color: #0d1117;
    border-color: #22c55e;
    color: #c9d1d9;
    box-shadow: 0 0 0 .2rem rgba(34,197,94,.25);
}

.form-control::placeholder {
    color: #484f58;
}

/* Nav active indicator */
.navbar .nav-link.active {
    color: #22c55e !important;
}

/* Sidebar-style section headings */
.section-title {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #8b949e;
    padding: .25rem 0;
    border-bottom: 1px solid #21262d;
    margin-bottom: 1rem;
}

/* Version badge */
.version-badge {
    font-family: monospace;
    font-size: .75rem;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 4px;
    padding: 1px 6px;
    color: #8b949e;
}

/* Scrollable config preview */
.config-preview {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: .8rem;
    line-height: 1.6;
    color: #79c0ff;
    white-space: pre;
    overflow-x: auto;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .stat-card .stat-value { font-size: 1.5rem; }
}
