/* --- BASIS INSTELLINGEN --- */
:root {
    --primary-color: #2ec4b6; /* Turquoise/Water blauw */
    --secondary-color: #20bf55; /* Serre groen */
    --dark-color: #011627; /* Donkerblauw voor tekst en headers */
    --light-bg: #f8f9fa; /* Lichtgrijze achtergrond */
    --admin-color: #e71d36; /* Rood accent voor admin acties */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--light-bg);
    color: var(--dark-color);
    margin: 0;
    padding: 0;
}

main {
    max-width: 1100px;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-radius: 8px;
}

/* --- NAVIGATIE --- */
header {
    background-color: var(--dark-color);
    padding: 15px 30px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    color: #fff;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

/* --- TABELLEN --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background-color: #f1f3f5;
    color: var(--dark-color);
    font-weight: 600;
}

tr:hover {
    background-color: #f8f9fa;
}

/* --- FORMS & INPUTS --- */
form {
    background: #f1f3f5;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

input[type="text"], input[type="date"], input[type="email"], input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* --- BUTTONS --- */
button, input[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

button:hover, input[type="submit"]:hover {
    background-color: #24a195;
}

button.secondary {
    background-color: #6c757d;
}

button.secondary:hover {
    background-color: #5a6268;
}

/* --- EXTRA STYLING --- */
.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.badge-pool { background-color: var(--primary-color); }
.badge-greenhouse { background-color: var(--secondary-color); }

/* --- LOGIN SPECIFIEKE STYLING --- */
.login-container {
    display: table;
    width: 100%;
    margin-top: 20px;
}

.login-card {
    display: table-cell;
    width: 45%;
    vertical-align: top;
    padding-right: 40px;
}

.login-showcase {
    display: table-cell;
    width: 55%;
    vertical-align: top;
}

.subtitle {
    color: #666;
    margin-top: -10px;
    margin-bottom: 30px;
    font-size: 14px;
}

/* Formulier optimalisatie */
.clean-form {
    background: #ffffff;
    padding: 0;
    border-radius: 0;
}

.form-group {
    margin-bottom: 20px;
}

.btn-block {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
}

.form-footer {
    margin-top: 25px;
    font-size: 14px;
    text-align: center;
    color: #555;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

/* Showcase Blokken met Achtergrondafbeeldingen */
.showcase-box {
    height: 180px;
    margin-bottom: 20px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Dynamische koppeling naar de afbeeldingenmap */
.pool-bg {
    background-image: url('../images/pool_hero.png');
}

.greenhouse-bg {
    background-image: url('../images/greenhouse_hero.png');
}

/* Donkere transparante laag over de foto's zodat witte tekst leesbaar is */
.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(1, 22, 39, 0.85));
    color: #ffffff;
    padding: 20px;
}

.showcase-overlay h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
    color: #ffffff;
}

.showcase-overlay p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
}