:root {
    --primary: #231655;
    --primary-light: #3b2a85;
    --accent: #ffb703;
    --bg: #f4f5fb;
    --text: #1f2933;
    --danger: #e02424;
}

* {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

/* Auth / login */

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, var(--primary-light), var(--primary));
}

.auth-card {
    background: white;
    padding: 2.5rem 3rem;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    max-width: 420px;
    width: 100%;
}

.auth-title {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 700;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1.8rem;
}

/* Form */

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    color: #4b5563;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="date"],
input[type="number"],
select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fff;
}

input:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(35, 22, 85, 0.15);
}

button,
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

.btn-outline {
    background: white;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

/* Layout */

.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 230px;
    background: var(--primary);
    color: white;
    padding: 1.5rem 1rem;
}

.sidebar h1 {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.nav-link {
    display: block;
    padding: 0.6rem 0.9rem;
    margin-bottom: 0.2rem;
    border-radius: 999px;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.95rem;
}

.nav-link.active,
.nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.main {
    flex: 1;
    padding: 1.5rem 2rem;
}

/* Cards & tables */

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

.page-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
}

.card {
    background: white;
    border-radius: 16px;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    margin-bottom: 1.2rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table th,
.table td {
    padding: 0.55rem 0.6rem;
    border-bottom: 1px solid #e5e7eb;
}

.table th {
    text-align: left;
    font-weight: 600;
    color: #6b7280;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background: rgba(35, 22, 85, 0.08);
    color: var(--primary);
}

.month-header {
    font-size: 1rem;
    font-weight: 600;
    margin: 1rem 0 0.4rem;
    color: #374151;
}

/* Kleine utilities */

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }


.hidden {
    display: none;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem 1.7rem;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.3);
}

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

.modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

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


/* Forceer verbergen voor modals */
.hidden {
    display: none !important;
}
