/* Review Rooster – Nederlandstalige GUI */
:root {
    --bg: #f5f5f5;
    --card: #fff;
    --border: #ddd;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --text: #1f2937;
    --error: #dc2626;
    --success: #16a34a;
}

* {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.header nav {
    display: flex;
    gap: 1rem;
}

.header nav a {
    color: var(--primary);
    text-decoration: none;
}

.header nav a:hover {
    text-decoration: underline;
}

.header nav .nav-logout-form {
    display: inline;
    margin: 0;
}

.header nav .nav-link-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: var(--primary);
    cursor: pointer;
    font: inherit;
    text-decoration: none;
}

.header nav .nav-link-button:hover {
    text-decoration: underline;
}

.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

.flashes {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

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

.flash.error {
    background: #fef2f2;
    color: var(--error);
    border: 1px solid #fecaca;
}

.flash.success {
    background: #f0fdf4;
    color: var(--success);
    border: 1px solid #bbf7d0;
}

/* Login */
.login-box {
    max-width: 360px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--card);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.login-box h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.login-box label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.login-box input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
}

.login-box button {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}

.login-box button:hover {
    background: var(--primary-hover);
}

/* Dashboard */
.dashboard h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.inline-form {
    display: inline;
}

.actions button,
.actions .button {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.actions button:hover,
.actions .button:hover {
    background: var(--primary-hover);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

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

.schedule-table th {
    background: var(--bg);
    font-weight: 600;
}

.schedule-table tbody tr:last-child td {
    border-bottom: none;
}

.schedule-table tbody tr:hover {
    background: #f9fafb;
}

/* Instellingen */
.settings h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.settings p {
    margin-bottom: 1.5rem;
    color: #6b7280;
}

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

.settings legend {
    font-weight: 600;
    padding: 0 0.5rem;
}

.settings label {
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.settings label:first-of-type {
    margin-top: 0;
}

.settings input[type="text"],
.settings input[type="url"],
.settings input[type="number"],
.settings input[type="date"],
.settings input[type="password"],
.settings textarea {
    width: 100%;
    max-width: 480px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
}

.settings textarea {
    min-height: 80px;
    resize: vertical;
}

.settings button[type="submit"] {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}

.settings button[type="submit"]:hover {
    background: var(--primary-hover);
}

/* Modals */
.modal[hidden] {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 50;
}

.modal-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: min(720px, 100%);
    max-height: 90vh;
    overflow: auto;
    padding: 1rem 1.25rem;
}

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

.modal-header h3 {
    margin: 0;
}

.modal-close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal label {
    display: block;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.modal input,
.modal textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
}

.modal textarea {
    resize: vertical;
}

.modal-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
}

.button-secondary {
    background: #e5e7eb;
    color: #111827;
}

.settings-note {
    margin: 0 0 0.5rem 0;
    color: #4b5563;
    font-size: 0.95rem;
}

/* Surveillance dagweergave */
.surveillance-day {
    margin-top: 1.25rem;
}

.surveillance-day-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.05rem;
}

.surveillance-linked-row td {
    background: #f5f9ff;
}

.schedule-table tbody tr.exam-color-0 td {
    background: #e9f3ff;
}

.schedule-table tbody tr.exam-color-1 td {
    background: #efeaff;
}

.schedule-table tbody tr.exam-color-2 td {
    background: #e8f8ee;
}

.schedule-table tbody tr.exam-color-3 td {
    background: #fff1df;
}

.schedule-table tbody tr.exam-color-4 td {
    background: #ffe7f2;
}

.schedule-table tbody tr.exam-color-5 td {
    background: #edf6e5;
}

.schedule-table tbody tr.surveillance-day-separator td {
    padding: 0.4rem 0;
    border-bottom: none;
    background: #fff;
}

/* Modulekeuze */
.module-picker h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.module-picker p {
    margin-bottom: 1.25rem;
    color: #6b7280;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.module-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.module-card h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary);
}

.module-card p {
    margin: 0;
    color: #374151;
}

.module-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}
