* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Achtergrond */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/img/background.jpg') no-repeat center center fixed;
    background-size: cover;
    filter: blur(8px) brightness(0.7);
    z-index: -1;
}

/* Header en Footer */
header,
footer {
    text-align: center;
    padding: 1em;
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}

.main-header {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1em;
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.alert {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #ffdddd;
    color: #a94442;
}

.alert-success {
    background-color: #ddffdd;
    color: #3c763d;
}


.logo-container {
    position: absolute;
    left: 1em;
    top: 50%;
    transform: translateY(-50%);
}

.logo {
    height: 50px;
}

.header-title {
    font-size: 1.5rem;
    color: white;
    margin: 0;
    text-align: center;
    width: 100%;
}

.main-footer {
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    text-align: center;
    padding: 1.5em 1em;
    margin-top: auto;
}

.footer-content p {
    margin: 0;
    font-size: 0.9rem;
}

/* Layout */
main {
    flex: 1;
    padding: 2em;
}

footer {
    margin-top: auto;
}

.login-container,
main {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 2em;
    margin: 2em auto;
}

/* Login */
.login-container h2 {
    text-align: center;
    margin-bottom: 1em;
}

.login-container input[type="email"],
.login-container input[type="password"] {
    width: 100%;
    padding: 0.75em;
    margin-bottom: 1em;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #e6f3ff;
    font-size: 1em;
}

.login-container button {
    width: 100%;
    padding: 0.75em;
    background-color: #F09027;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-container button:hover {
    background-color: #F09027;
}

.selected-row {
    background-color: rgba(0, 0, 0, 0.7);
    /* zwart met transparantie */
    color: white;
    /* witte tekst */
}

.melding-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.melding-header h2 {
    margin: 0;
    font-size: 1.6em;
    line-height: 1.2;
}

.melding-logo {
    height: 1.6em;
    /* gelijk aan de h2 font-size */
    object-fit: contain;
}

/* Tabellen */
.relatie-tabel {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 700px;
}

.relatie-tabel th,
.relatie-tabel td {
    padding: 10px;
    border-bottom: 1px solid #ccc;
    word-break: break-word;
    text-align: left;
}

.relatie-tabel th {
    background-color: #080808;
    color: white;
}

/* Knoppen */

.button-row {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5em;
}

.button-row button {
    padding: 0.8em 1.5em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    color: white;
}



.menu-button {
    display: inline-block;
    padding: 1em 2em;
    background-color: #F09027;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    text-align: center;
}

.menu-button:hover {
    background-color: #e64013;
}

.menu-button-alert {
    background-color: #ca241f;
}

.menu-button-alert:hover {
    background-color: #c70700;
}

.close-btn {
    padding: 0.8em 1.5em;
    background-color: #F09027;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
}

.close-btn:hover {
    background-color: #e64013;
}

.print-btn {
    padding: 0.8em 1.5em;
    background-color: #0076ec ;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    
}

.print-btn:hover {
    background-color: #004080;
    /* iets donkerder bij hover */
}



.storing-btn {
    background-color: #cc0000;
}

.storing-btn:hover {
    background-color: #990000;
}

/* Apparaten header en filter */
.apparaten-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.terugknop-wrapper {
    text-align: right;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1em;
    margin-bottom: 1em;
    max-width: 100%;
    padding: 0 1em;
    box-sizing: border-box;
}


.filter-form input[type="text"] {
    flex: 1 1 200px;
    /* Laat de velden schalen */
    max-width: 300px;
    width: 100%;
    box-sizing: border-box;
    background-color: whitesmoke;
}

.filter-form select {
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 5px;
    min-width: 200px;
    background-color: #e6f3ff;
    font-size: 1em;
}

.filter-form button {
    flex: 1 1 200px;
    /* Laat de velden schalen */
    max-width: 300px;
    width: 100%;
    box-sizing: border-box;
    background-color: black;
}

.storing-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1em;
    margin-bottom: 1em;
    max-width: 100%;
    padding: 0 1em;
    box-sizing: border-box;
}


.storing-form input[type="text"] {
    flex: 1 1 200px;
    /* Laat de velden schalen */
    max-width: 300px;
    width: 100%;
    box-sizing: border-box;
    background-color: whitesmoke;
}

.storing-form select {
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 5px;
    min-width: 200px;
    background-color: #e6f3ff;
    font-size: 1em;
}

.storing-form button {
    flex: 1 1 200px;
    /* Laat de velden schalen */
    max-width: 300px;
    width: 100%;
    box-sizing: border-box;

}

.storing-form a.menu-button {
    flex: 1 1 200px;
    /* Laat de velden schalen */
    max-width: 300px;
    width: 100%;
    box-sizing: border-box;
    background-color: #F09027;
}

.storing-form a.menu-button:hover {
    background-color: #e64013;
}

.storing-form a.menu-button {
    flex: 1 1 200px;
    /* Laat de velden schalen */
    max-width: 300px;
    width: 100%;
    box-sizing: border-box;
    background-color: #F09027;
}

.storing-form a.menu-button:hover {
    background-color: #e64013;
}

/* Pagination */
.pagination,
.pagination.centered {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-top: 2em;
    /* hoger zodat er ruimte is onder de tabel */
    margin-bottom: 2em;
    /* optioneel voor extra lucht */
}


.page-link {
    display: inline-block;
    padding: 0.5em 0.9em;
    background-color: #222221;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.page-link:hover {
    background-color: black;
}

.page-link.active {
    background-color: peru;
    font-weight: bold;
}

.page-link.disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

/* Popup overlay en venster */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}


.popup {
    flex-grow: 1;
    height: auto;
    /* laat de popup zich aanpassen aan inhoud */
    background: white;
    border-radius: 10px;
    padding: 2em;
    max-width: 1100px;
    width: 98%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.popup body {
    font-family: Arial, sans-serif;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}


.popup h2,
h3 {
    text-align: center;
    color: black;
    margin-top: 0;
}


.popup p {
    margin: 0;
    color: red;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .header-title {
        font-size: 1.2rem;
        padding: 0 3em;
    }

    .logo {
        height: 30px;
    }

    .logo-container {
        left: 0.5em;
    }

    .login-container {
        margin: 2em 1em;
        padding: 1.5em;
    }

    .relatie-tabel th,
    .relatie-tabel td {
        font-size: 14px;
        padding: 8px;
    }

    .filter-form {
        flex-direction: column;
    }

    .filter-form input,
    .filter-form button {
        width: 100%;
    }

    @media (max-width: 900px) {
        .popup {
            max-width: 95%;
            padding: 1em;
        }
    }


}