/* Algemene stijlen */
body {
    font-family: Trebuchet MS, sans-serif;
    background: linear-gradient(135deg, #100F12, #764ba2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: black;
    overflow: hidden;
}

/* Wrapper om alles goed uit te lijnen */
.wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    padding-bottom: 80px; /* Voorkomt dat de container onder de footer schuift */
    overflow: hidden;
    box-sizing: border-box;
}

/* Container met dynamische hoogte */
.container {
    /*background: linear-gradient(135deg, #181229, #352372);*/
    background-color: white;;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
    text-align: center;
    overflow-y: auto;
    max-height: calc(100vh - 120px); /* Beperkt de hoogte op kleine schermen */

    flex-direction: column;
    justify-content: center; /* Inhoud verticaal centreren */
}



/* Scroll correctie voor kleine schermen | Responsive design*/
@media (max-height: 800px) {
    .wrapper {
        min-height: calc(100vh - 120);
    }
    .container {
        max-height: calc(100vh - 170px);
    }
    table {
        font-size: 14px;
    }

    th, td {
        padding: 8px;
    }
}

h1 {
color: #a50034;
}
h2 {
    color: #6b489d;
}

label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}

input[type="text"] {
    width: 90%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

button {
    /*background: #007bff;*/
    background: #34b233;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
}

button:hover {
    background: #0056b3;
}

/* Error-meldingen blijven binnen de container */
.error {
    color: red;
    background: #ffe6e6;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid red;
    border-radius: 5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.success {
    color: green;
    background: #e6ffe6;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid green;
    border-radius: 5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* buttons op webpagina's */
.dashboard {
    display: inline-block;
    margin-top: 10px;
    padding: 10px;
    background: #34b233;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}
.dashboard:hover {
    background: #0056b3;
    color: white;
}
/* Footer blijft altijd in beeld */
footer {
    text-align: center;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #181229, #352372);
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -4px 10px rgba(255, 255, 255, 0.2);
    position: fixed;
    bottom: 0;
    left: 0;
    color: white
}

.menu-overlay {
    display: none;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 0;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: height 0.3s ease;
}

.menu-content {
    background: #181229;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px;
    width: auto;
    max-width: 400px;
}

.menu-content a {
    color: white;
    text-decoration: none;
    padding: 10px 0;
    display: block;
}

.menu-content a:hover {
    text-decoration: underline;
}

.menu-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.close-button {
    background: #ff0000;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
}

.close-button:hover {
    background: #cc0000;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
th, td {
    padding: 8px;
    text-align: left;
}
th {
    background-color:#6b489d;
    color: white;
}
tr:hover {
    /*background-color: #e5ba3f;*/
    background-color: #00b9e1;
    color: black;
}

a {
    font-style: italic;
    text-decoration: none;
    color: inherit;
}
a:hover {
    color: red;
}
