* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: #e5e7eb;
}

a {
    color: #93c5fd;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.topbar {
    background: #111827;
    border-bottom: 1px solid #1f2937;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar .brand {
    font-size: 20px;
    font-weight: 700;
}

.topbar a {
    margin-left: 16px;
    color: #e5e7eb;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 16px;
    padding: 28px;
    width: 100%;
    max-width: 420px;
}

.panel {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 16px;
    padding: 24px;
}

.stat-card span {
    display: block;
    color: #9ca3af;
    margin-bottom: 8px;
}

.stat-card strong {
    font-size: 32px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #cbd5e1;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    background: #020617;
    color: #e5e7eb;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 12px;
    outline: none;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

button,
.button {
    display: inline-block;
    background: #5865f2;
    color: white;
    border: 0;
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 700;
}

button:hover,
.button:hover {
    background: #4752c4;
    text-decoration: none;
}

.button.secondary {
    background: #334155;
    margin-left: 8px;
}

.grid-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.grid-form .full {
    grid-column: 1 / -1;
}

.checkbox-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.checkbox-row input {
    width: auto;
}

.alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin: 16px 0;
    font-weight: 700;
}

.alert.success {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.alert.error {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border-bottom: 1px solid #1f2937;
    padding: 14px;
    text-align: left;
    vertical-align: top;
}

th {
    color: #cbd5e1;
    font-size: 14px;
}

code {
    background: #020617;
    border: 1px solid #334155;
    padding: 3px 6px;
    border-radius: 6px;
}

.actions a {
    margin-right: 10px;
}

.actions .danger {
    color: #fca5a5;
}

@media (max-width: 800px) {
    .stats-grid,
    .grid-form {
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .topbar a {
        margin-left: 0;
        margin-right: 12px;
    }
}