:root {
    --achtergrond: #f2f2f2;
    --tekst: #222;
    --voorkant: #fff;
    --accent: #333;
    --accent-hover: #555;
    --rand: #ccc;
}


 .dark {
    --achtergrond: #1a1a1a;
    --tekst: #eee;
    --voorkant: #2a2a2a;
    --accent: #555;
    --accent-hover: #777;
    --rand: #444;
}

body {
    font-family: Arial, sans-serif;
    background: var(--achtergrond);
    color: var(--tekst);
    margin: 0;
    padding: 20px;
}

 
 .form-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 0;
}


h2, h3 {
    color: var(--tekst);
    border-bottom: 2px solid var(--rand);
    padding-bottom: 5px;
}


nav {
    background: var(--accent);
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 6px;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin-right: 10px;
}

nav a:hover {
    text-decoration: underline;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.nav-links a {
    background: #eee;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    text-align: center;
    font-size: 15px;
    transition: background 0.2s;
}

.nav-links a:hover {
    background: #ddd;
}



.box {
    background: var(--voorkant);
    border: 1px solid var(--rand);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
}

.box h3 { margin-top: 0; font-size: 18px; color: #333; 
} 

form button[type="submit"] { margin-top: 20px; 
}

 a.btn-secondary { display: inline-block; background: #555; color: white !important; padding: 10px 14px; border-radius: 8px; text-decoration: none; margin-bottom: 20px; 
}

.profielfoto img {
    object-fit: cover;
    border: 4px solid #444;
    margin-bottom: 10px;
}

/* vierkant */
.profielfoto.vierkant img {
    width: 200px;
    height: 200px;
}

/* rond */
.profielfoto.rond img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
}

/* rechthoek */
.profielfoto.rechthoek img {
    width: 250px;
    height: 150px;
}


.thumb {
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin: 5px;
    cursor: pointer;
    border: 3px solid #666;
    border-radius: 4px;
    transition: 0.2s;
}

.thumb:hover {
    border-color: #000;
    transform: scale(1.05);
}


#overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#overlay img {
    max-width: 90%;
    max-height: 90%;
    border: 4px solid #fff;
    border-radius: 6px;
}



form label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="date"],
form textarea,
form select {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    border: 1px solid var(--rand);
    border-radius: 4px;
    background: #fff;
}

button {
    margin-top: 15px;
    padding: 10px 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background: var(--accent-hover);
}

 

small {
    color: #666;
}
 
.form-card {
    background: #ffffff;
    width: 380px;
    margin-top:30px;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    animation: fadeIn 0.4s ease;
}

/* Fade-in animatie */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

 
.form-card h2 {
    margin-top: 0;
    text-align: center;
    font-weight: 600;
    color: #333;
}

 
.form-card label {
    display: block;
    margin-top: 15px;
    font-size: 14px;
    color: #444;
}

 
.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="password"],
.form-card input[type="number"],
.form-card input[type="file"] {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-card input:focus {
    border-color: #007aff;
    outline: none;
}
 
.form-card button,
.form-card input[type="submit"] {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background: #007aff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.form-card button:hover,
.form-card input[type="submit"]:hover {
    background: #005fcc;
}

 
.form-card a {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #007aff;
    text-decoration: none;
    
}

.form-card a:hover {
    text-decoration: underline;
    
}
.error-box {
    background: #ffdddd;
    border: 1px solid #cc0000;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    color: #a00000;
    text-align: center;
    font-weight: bold;
}

#langbar {
    display: flex;
    flex-direction: row;
    gap: 10px;        
    flex-wrap: wrap;   
}

#langbar a, #langbar a:link {
    display: inline-block!important;
    text-decoration: none;
    color: #666;
    font-weight: 400;
    font-size:12px;
}

#langbar a:hover {
}

#langbar span {
}
