:root {
    --primary-color: #D32F2F; /* stelling rood */
    --text-color: #333;
    --bg-color: #f5f5f5;
    --header-height: 60px;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    color: var(--text-color);
}

main {
    flex: 1; /* neemt alle vrije ruimte tussen header en footer */
    padding: 20px;
}

header {
    background-color: var(--primary-color);
    color: white;
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 20px;
}

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

nav {
    background-color: #B71C1C; /* donkerder rood */
    color: white;
    padding: 10px 20px;
}

nav a {
    color: white;
    margin-right: 15px;
    text-decoration: none;
    font-weight: bold;
}

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

footer {
    background-color: #B71C1C;
    color: white;
    text-align: center;
    padding: 10px;
}

/* Login pagina styling */
.login-container {
    max-width: 400px;
    margin: 60px auto;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-align: center;
}

.login-container h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.login-container form {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.login-container label {
    margin-bottom: 5px;
    font-weight: bold;
}

.login-container input[type="email"],
.login-container input[type="password"] {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.login-container button {
    background-color: var(--primary-color);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.login-container button:hover {
    background-color: #B71C1C; /* donkerder rood bij hover */
}

.login-container p.error {
    color: #D32F2F;
    margin-bottom: 15px;
    font-weight: bold;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #f8f8f8, #e0e0e0);
    margin: 0;
    padding: 0;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Algemene tabel styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

thead {
    background-color: var(--primary-color);
    color: white;
}

thead th {
    padding: 12px 15px;
    text-align: left;
    font-weight: bold;
    font-size: 1rem;
}

tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9; /* lichte alternatie */
}

tbody tr:hover {
    background-color: #ffe5e5; /* lichte rode hover */
}

table a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

table a:hover {
    text-decoration: underline;
}

table th:first-child, table td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

table th:last-child, table td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Algemene formulier styling */
form {
    max-width: 600px;   /* breder dan login */
    margin: 20px auto;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

form label {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form textarea {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
}

form button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

form button:hover {
    background-color: #B71C1C; /* donkerder rood */
}

form .form-error {
    color: #D32F2F;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
}

form textarea {
    min-height: 80px;
}

/* Modal styling */
.modal {
    display: none; /* verborgen standaard */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4); /* donkere overlay */
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    position: relative;
}

.modal .close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.modal .close:hover {
    color: var(--primary-color);
}

.card {
    background-color: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.dashboard-section {
    margin-bottom: 30px;
}

.dashboard-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}
