/* Algemene achtergrond */

/* Zorg ervoor dat de body niet gecentreerd wordt door flexbox */
body {
    margin: 0;
    padding: 0;
    background: url('https://aspergeboerderijsandur.nl/app/themes/aspergeboerderijsandur/dist/images/bg.jpg') no-repeat bottom center fixed;
    background-color: #f4f1e8;
    font-family: "Source Sans Pro", sans-serif;
    color: #2c3e50;

    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column; /* Zet de container onder de header */
}

.container {

  width: 90%;
/*  max-width: 800px; */
/*  height: min(90vw, 700px); /* Hoogte wordt max 800px en past zich aan breedte aan */



    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 3px solid #d0c7b8; /* Zachte crèmekleurige rand */

    margin-top: 80px; /* Houd ruimte vrij onder de header */
    margin-bottom: 20px; /* Extra marge voor scrollen */
}


/* Kopteksten */
h1, h2 {
    color: #2c3e50;
    font-family: "Source Sans Pro", sans-serif;
    font-weight: bold;
}

h1 {
    font-size: 30px;
    margin-bottom: 15px;
    color: #385723; /* Donkergroen */
}

h2 {
    font-size: 22px;
    margin-bottom: 15px;
    font-family: "Source Sans Pro", sans-serif;
}

/* Links */
a {
    color: #2d5f2d; /* Natuurlijke groentint */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
    color: #1f3d1f; /* Donkerder groen */
}

/* Formulier styling */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

/* Inputvelden */
input, select {
    padding: 12px;
    width: 100%;
    max-width: 450px;
    border: 2px solid #b8a995;
    border-radius: 6px;
    font-size: 16px;
    background: #faf6f0;
    transition: border-color 0.3s ease;
    outline: none;
}

input:focus, select:focus {
    border-color: #3b6027;
    background: #ffffff;
}

/* Knoppen */
button {
    padding: 12px 20px;
    background-color: #92a06a; /* Diep groen */
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
}

button:hover {
    background-color: #92a06a;
    transform: scale(1.05);
}

/* Success & Error berichten */
.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: bold;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Scroll-container voor tabellen */
.scroll-container {
    max-height: 350px;
    overflow-y: auto;
    border: 2px solid #b8a995;
    padding: 15px;
    background-color: #fffdf7;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

/* Tabel styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: #f6f2eb;
    border-radius: 10px;
}

th, td {
    padding: 14px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    font-size: 16px;
    color: #2c3e50;
}

th {
    background: #92a06a;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* Afwisselende rijkleuren */
tr:nth-child(even) {
    background-color: #eae6db;
}

tr:hover {
    background-color: #d5dbdb;
    transition: 0.3s ease;
}

/* Responsieve styling */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    input, select, button {
        width: 100%;
    }

    th, td {
        padding: 10px;
        font-size: 14px;
    }
}
/* Scroll-container voor Laatste Kloktijden */
.scroll-container {
    max-height: 350px; /* Hoogte aanpassen indien nodig */
    overflow-y: auto;
    border: 2px solid #b8a995;
    padding: 15px;
    background-color: #fffdf7;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

/* Stijl voor de tabel binnen de scroll-container */
.scroll-container table {
    width: 100%;
    border-collapse: collapse;
}

/* Tabellen stijlen */
.scroll-container th, .scroll-container td {
    padding: 14px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    font-size: 16px;
    color: #2c3e50;
}

/* Sticky table header */
.scroll-container th {
    background: #385723;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* Afwisselende rij-kleuren */
.scroll-container tr:nth-child(even) {
    background-color: #eae6db;
}

.scroll-container tr:hover {
    background-color: #d5dbdb;
    transition: 0.3s ease;
}



/* Zorg ervoor dat de header altijd bovenaan blijft */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #92a06a; /* Donkergrijze achtergrond */
    color: white;
    padding: 15px 20px;
    display: flex;
   justify-content: space-between;
  /*  justify-content: center; */
    align-items: center;
    z-index: 1000; /* Zorgt ervoor dat de header boven andere elementen blijft */
    box-sizing: border-box; /* Voorkomt dat padding de breedte vergroot */

    padding-bottom: 1.5rem !important;
    padding-top: 1.5rem !important;

}

.nav{
      text-align: right;
}
.navbarbuttons{
  justify-content: center;
  text-align: center;
}

/* Zorg ervoor dat de tekst niet naar rechts uit beeld schuift */
.navbar h1 {
    color: white;
    margin: 0;
    padding: 0;
    white-space: nowrap; /* Voorkomt afbreken van de tekst */
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.navbar ul li {
    margin-left: 20px;
}

.navbar ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.navbar ul li a:hover {
    text-decoration: underline;
}

.header{
  align-items: top;
}


.logo {
    height: 50px; /* Pas de hoogte aan naar wens */
    margin-right: 20px; /* Ruimte tussen logo en de knoppen */
}


.klikbare-naam {
    cursor: pointer;
    color: blue;
    text-decoration: underline;
}
.klikbare-naam:hover {
    color: darkblue;
}


button.uitklokken {
    background-color: #d9534f !important; /* Rood */
    color: white !important;
    border: none;
}

button.uitklokken:hover {
    background-color: #c9302c !important; /* Donkerder rood bij hover */
}



form[action="clock_out.php"] button {
    background-color: #d9534f !important; /* Rood */
    color: white !important;
    border: none;
}

form[action="clock_out.php"] button:hover {
    background-color: #c9302c !important; /* Donkerder rood bij hover */
}




.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.form-group {
    flex: 1;
    min-width: 200px; /* Zorgt ervoor dat ze onder elkaar komen bij kleine schermen */
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
    }
}





/* Container voor login en gebruikerslijst */
.dashboard-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap; /* Zorgt ervoor dat ze onder elkaar komen als er niet genoeg ruimte is */
}

.login-section,
.gebruikerslijst {
    flex: 1;
    min-width: 300px; /* Zorgt ervoor dat de blokken niet te smal worden */
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

/* Media query voor kleinere schermen */
@media screen and (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
        align-items: center;
    }

    .login-section,
    .gebruikerslijst {
        width: 100%;
        text-align: center;
    }

    table {
        width: 100%;
    }
}


/* Verberg het menu-toggle pictogram op grotere schermen */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* Responsief ontwerp voor kleinere schermen */
@media screen and (max-width: 1000px) {
    .menu-toggle {
        display: block;
    }

    .navbarbuttons nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #444;
        position: absolute;
        top: 60px;
        left: 0;
        text-align: center;
    }

    .navbarbuttons nav ul.show {
        display: flex;
    }

    .navbarbuttons nav ul li {
        padding: 15px;
        border-bottom: 1px solid #555;
    }
}
