/* main_style.css */

/* Algemene reset en basisinstellingen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #002b5c;
    color: #fff;
    padding: 2em 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #003366;
}

header img {
    position: absolute;
    left: 20px;
    height: 40px;
}

header h1 {
    font-size: 1.5em;
    text-align: center;
}

/* Breadcrumbs */
.breadcrumbs {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9em;
    white-space: nowrap;
}

.breadcrumbs a {
    color: #fff;
    text-decoration: none;
    margin: 0 5px;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: #fff;
    font-weight: bold;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Container voor index.php */
.container {
    max-width: 1200px;
    margin: 4em auto 0 auto;
    padding: 20px;
    border: 2px solid #002b5c;
    border-radius: 8px;
    background-color: #fff;
    text-align: center;
}

/* Tweede container: ms01-voorvoegsel */
.ms01-container {
    max-width: 1000px;
    margin: 3em auto;
    padding: 30px;
    background-color: #e6f0ff;
    border-left: 8px solid #002b5c;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: left;
}

.ms01-title {
    font-size: 1.8em;
    color: #002b5c;
    margin-bottom: 0.5em;
    text-align: center;
}

.ms01-text {
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1.5em;
    text-align: center;
}

.ms01-highlight {
    background-color: #fff;
    border: 2px dashed #002b5c;
    padding: 20px;
    border-radius: 6px;
    font-size: 1em;
    color: #002b5c;
}

.ms01-highlight p {
    margin: 0.5em 0;
}

/* Main content */
main {
    flex: 1;
    padding: 20px;
}

/* Footer */
footer {
    position: sticky;
    bottom: 0;
    background-color: #002b5c;
    color: #fff;
    text-align: center;
    padding: 1em 20px; 
    font-size: 0.9em;
    border-top: 1px solid #003366;
}

/* Responsiviteit */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.2em;
    }

    header img {
        height: 30px;
    }

    .breadcrumbs {
        display: none;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1em;
    }
}

/* Statusmelding na verzenden */
#status-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}

.message-box {
    padding: 1em 2em;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-size: 16px;
    text-align: center;
    max-width: 90vw;
    width: fit-content;
    border: 2px solid #222;
}

/* Statusmelding types met animatie */
#status-message.success,
#status-message.error {
    animation: fadeOut 5s ease-in-out forwards;
}

#status-message.success .message-box {
    background-color: #28a745;
    color: #fff;
}

#status-message.error .message-box {
    background-color: #cc0000;
    color: #fff;
}

/* Fade-out animatie */
@keyframes fadeOut {
    0% { opacity: 1; visibility: visible; }
    80% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}
