:root {
    color-scheme: dark;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: #111827;
    border-bottom: 1px solid #1f2937;
}

.topbar-title {
    font-weight: 700;
    color: #67e8f9;
}

.topbar-nav a {
    color: #e2e8f0;
    margin-left: 16px;
    text-decoration: none;
}

.topbar-nav a:hover {
    color: #67e8f9;
}

.inline-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
}

.link-button {
    background: none;
    border: none;
    color: #f87171;
    cursor: pointer;
    font: inherit;
}

.container {
    max-width: 960px;
    margin: 24px auto;
    padding: 0 16px;
}

.card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.card.narrow {
    max-width: 380px;
    margin: 60px auto;
}

label {
    display: block;
    margin-top: 12px;
    margin-bottom: 4px;
    color: #94a3b8;
    font-size: 0.9em;
}

input[type="text"],
input[type="password"],
input[type="file"],
select {
    width: 100%;
    padding: 8px;
    background: #0b1220;
    border: 1px solid #334155;
    color: #e2e8f0;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    margin-top: 16px;
    padding: 10px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background: #334155;
    color: #e2e8f0;
}

button.primary,
.primary-link {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 6px;
    display: inline-block;
}

.error {
    color: #f87171;
}

.success {
    color: #4ade80;
}

.muted {
    color: #94a3b8;
}

.list-table {
    width: 100%;
    border-collapse: collapse;
}

.list-table th,
.list-table td {
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid #1f2937;
}

.list-table .actions a {
    margin-right: 10px;
    color: #67e8f9;
}
