:root {
    color-scheme: light;
    --bg: #f4f6f8;
    --card: #ffffff;
    --text: #1f2933;
    --muted: #5f6c7b;
    --border: #d9e2ec;
    --accent: #0b69a3;
    --accent-hover: #095a8a;
    --error-bg: #fde8e8;
    --error-text: #9b1c1c;
    --success-bg: #e3f9e5;
    --success-text: #0f5132;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.page-header h1 {
    margin: 0;
    font-size: 1.5rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.muted {
    color: var(--muted);
}

.form {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

label {
    font-weight: 600;
}

input,
select,
button {
    font: inherit;
}

input,
select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
}

button {
    padding: 0.65rem 1rem;
    border: none;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
}

button:hover {
    background: var(--accent-hover);
}

button.secondary {
    background: #627d98;
}

button.secondary:hover {
    background: #486581;
}

a {
    color: var(--accent);
}

.flash {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.flash-error {
    background: var(--error-bg);
    color: var(--error-text);
}

.flash-success {
    background: var(--success-bg);
    color: var(--success-text);
}

.roles-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.roles-table th,
.roles-table td {
    border: 1px solid var(--border);
    padding: 0.6rem 0.75rem;
    text-align: left;
}

.roles-table th {
    background: #f0f4f8;
}
