
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Aptos", sans-serif;
}

#map {
    height: 100vh;
    width: 100%;
}

/* Kaartweergave */
#mapContainer, #map {
    height: 100%;
    width: 100%;
}

/* Inklapbaar menu */
#projectMenu {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    max-width: 250px;
    font-family: "Aptos", sans-serif;
}

.menu {
    display: none;
    position: fixed;
    bottom: 80px; /* Verhoog de afstand vanaf de onderkant */
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    z-index: 1000;
    max-width: 320px; /* Maak het menu breder */
    width: 90%;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    font-family: "Aptos", sans-serif;
    transition: bottom 0.3s ease;
}

.menu.active {
    display: block;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-button {
    position: fixed;
    bottom: 20px;
    left: 10px;
    z-index: 1001;
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.menu-button:hover {
    background: linear-gradient(90deg, #0056b3, #003d80);
    transform: scale(1.05);
}
.add-marker-btn {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 1000;
	background-color: #007bff;
	color: white;
	padding: 10px 15px;
	border: none;
	border-radius: 5px;
	font-size: 14px;
	cursor: pointer;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.add-marker-btn:hover {
	background-color: #0056b3;
}

#menuContent h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

#menuContent p {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
    margin: 5px 0;
}

#menuContent button {
    display: block;
    background: linear-gradient(90deg, #4CAF50, #388E3C);
    color: white;
    padding: 12px;
    width: 100%;
    border: none;
    cursor: pointer;
    border-radius: 25px;
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background-color 0.3s ease;
}

#menuContent button:hover {
    background: linear-gradient(90deg, #388E3C, #2E7D32);
    transform: scale(1.05);
}

#menuToggle {
    background: none;
    color: white;
    font-size: 24px;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
}

#menuToggle:hover {
    color: #00bfff;
}

.menu-link {
    display: inline-block;
    background: linear-gradient(90deg, #007bff, #0056b3); /* Blauw gradient */
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: transform 0.2s ease, background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
    width: 90%;
    display: block;
}

.menu-link:hover {
    background: linear-gradient(90deg, #0056b3, #003d80);
    transform: scale(1.05);
    color: white;
}

.toast {
    min-width: 200px;
    margin-bottom: 10px;
    padding: 15px 20px;
    color: white;
    background-color: #28a745; /* Groen voor succes */
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    animation: fadein 0.5s, fadeout 0.5s 3s;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.toast.error {
    background-color: #dc3545; /* Rood voor fouten */
}

@keyframes fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeout {
    from { opacity: 1; }
    to { opacity: 0; }
}


/* Aanvullende stijlen voor mobiele responsiviteit */
@media (max-width: 768px) {
    #projectMenu {
        max-width: 90%;
        top: 5px;
        left: 5px;
    }

    #menuContent h3, #menuContent p {
        font-size: 12px;
    }

    #menuContent button {
        font-size: 12px;
    }
}


@font-face {
    font-family: 'Aptos';
    font-weight: normal;
    font-style: normal;
    src: url('../fonts/aptos/Aptos.woff2') format('woff2'),
         url('../fonts/aptos/Aptos.woff') format('woff');
}

@font-face {
    font-family: 'Aptos';
    font-weight: bold;
    font-style: normal;
    src: url('../fonts/aptos/Aptos-Bold.woff2') format('woff2'),
         url('../fonts/aptos/Aptos-Bold.woff') format('woff');
}

@font-face {
    font-family: 'Aptos';
    font-weight: 900;
    font-style: normal;
    src: url('../fonts/aptos/Aptos-Black.woff2') format('woff2'),
         url('../fonts/aptos/Aptos-Black.woff') format('woff');
}

/* Mobielvriendelijke styling */
.container {
    width: 90%;
    margin: auto;
    max-width: 1200px;
}

h1, h2, h3 {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5em;
}

/* Knopstijlen */
.button {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
}

.button:hover {
    background-color: #0056b3;
}

/* Formulier styling */
form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

label {
    display: block;
    margin: 15px 0 5px;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

input[type="checkbox"] {
    margin-right: 10px;
}

/* Flex-styling voor responsieve lijsten */
ul {
    list-style-type: none;
    padding: 0;
}

li {
    background: #fff;
    padding: 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Responsieve styling */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .button {
        width: 100%;
        text-align: center;
        padding: 15px;
    }
}

.thumbnail {
    width: 100px;
    cursor: pointer;
    border: 1px solid #ccc;
    margin-top: 5px;
}

.photo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.photo-container {
    position: relative;
    text-align: center;
}

.large-photo {
    max-width: 90%;
    max-height: 80vh;
    border: 2px solid white;
}

.photo-overlay button {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 10px;
    background-color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

/* Css van inlog pagina */
.inlog-pagina {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('/assets/images/inlog-achtergrond.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.inlog-container {
    background: rgba(255, 255, 255, 0.95); /* Witte achtergrond met lichte transparantie */
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.inlog-container h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

.inlog-container label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #555;
}

.inlog-container input[type="text"],
.inlog-container input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.inlog-container input[type="text"]:focus,
.inlog-container input[type="password"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 6px rgba(0, 123, 255, 0.5);
}

.inlog-container button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
    margin-top: 10px;
}

.inlog-container button[type="submit"]:hover {
    transform: scale(1.05);
    background: linear-gradient(90deg, #0056b3, #003d80);
}

/*Css van admin-dashboard*/

.admin-dashboard {
    font-family: "Aptos", sans-serif;
    padding: 0;
    margin: 0;
    position: relative;
    background-image: url('/assets/images/inlog-achtergrond2.jpg'); /* Vervang dit pad indien nodig */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

.admin-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    color: white;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-size: 18px;
    border-bottom: 2px solid #f0f0f0;
}

.admin-dashboard-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.admin-dashboard-header .header-buttons a {
    margin-left: 20px;
    background: linear-gradient(90deg, #007bff, #0056b3); /* Blauw gradient */
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s ease, background-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.admin-dashboard-header .header-buttons a:hover {
    background: linear-gradient(90deg, #0056b3, #003d80);
    transform: scale(1.05);
}

.project-overview {
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

.project-overview h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-list li {
    background: #ffffff;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.project-list li:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.project-list li h3 {
    font-size: 18px;
    color: #007bff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-details {
    padding: 20px;
    border-top: 1px solid #ddd;
    margin-top: 15px;
    font-size: 14px;
    color: #333;
    background-color: #f8f9fb;
    border-radius: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.project-details label {
    font-weight: bold;
    margin-right: 10px;
}

.project-details button[type="submit"] {
    background: linear-gradient(90deg, #007bff, #0056b3); /* Blauw gradient */
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.2s ease, background-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.project-details button[type="submit"]:hover {
    background: linear-gradient(90deg, #0056b3, #003d80);
    transform: scale(1.05);
}

.project-details a.button {
    background: linear-gradient(90deg, #007bff, #0056b3); /* Blauw gradient */
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    margin-top: 10px;
    display: inline-block;
    transition: transform 0.2s ease, background-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.project-details a.button:hover {
    background: linear-gradient(90deg, #0056b3, #003d80);
    transform: scale(1.05);
}

.logout-button {
    background: linear-gradient(90deg, #e57373, #d32f2f);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s ease, background-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.logout-button:hover {
    background: linear-gradient(90deg, #d32f2f, #b71c1c);
    transform: scale(1.05);
}

.welcome-message {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(90deg, #007bff, #0056b3); /* Blauw gradient achtergrond */
    color: white;
    font-size: 24px;
    font-weight: bold;
    border-radius: 25px; /* Ronde hoeken */
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 0;
}

/* Css van create project */
.create-project {
    font-family: "Aptos", sans-serif;
    background-image: url('/assets/images/inlog-achtergrond.jpg'); /* Pas dit pad aan naar je afbeelding */
    background-size: cover; /* Bedekt het hele scherm */
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.create-project-container {
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
    border-radius: 20px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    max-width: 600px; /* Voeg maximale breedte toe voor consistentie */
    width: 100%;
}

.create-project h2 {
    font-size: 24px;
    color: #333;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.create-project label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    font-weight: bold;
}

.create-project input[type="text"],
.create-project input[type="email"],
.create-project input[type="file"],
.create-project textarea,
.create-project select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.create-project input[type="text"]:focus,
.create-project input[type="email"]:focus,
.create-project input[type="file"]:focus,
.create-project textarea:focus,
.create-project select:focus {
    border-color: #007bff;
    box-shadow: 0 0 6px rgba(0, 123, 255, 0.5);
}

.create-project button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
    margin-top: 10px;
}

.create-project button[type="submit"]:hover {
    transform: scale(1.05);
    background: linear-gradient(90deg, #0056b3, #003d80);
}

.current-step {
    font-size: 16px;
    color: #333;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

/*Css van create user*/
.create-user {
    font-family: "Aptos", sans-serif;
    background-image: url('/assets/images/inlog-achtergrond.jpg'); /* Pas dit pad aan indien nodig */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.create-user-container {
    max-width: 400px;
    width: 100%;
    padding: 40px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.create-user h2 {
    font-size: 24px;
    color: #333;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.create-user label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    font-weight: bold;
    text-align: left;
}

.create-user input[type="text"],
.create-user input[type="password"],
.create-user select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.create-user input[type="text"]:focus,
.create-user input[type="password"]:focus,
.create-user select:focus {
    border-color: #007bff;
    box-shadow: 0 0 6px rgba(0, 123, 255, 0.5);
}

.create-user button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
    margin-top: 10px;
}

.create-user button[type="submit"]:hover {
    transform: scale(1.05);
    background: linear-gradient(90deg, #0056b3, #003d80);
}

.create-user a {
    display: block;
    margin-top: 20px;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.create-user a:hover {
    color: #0056b3;
}


/* --- Additional Leaflet Enhancements --- */

/* Vergroot de zoomknoppen */
.leaflet-control-zoom-in, .leaflet-control-zoom-out {
    font-size: 1.5rem;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.leaflet-control-zoom-in:hover, .leaflet-control-zoom-out:hover {
    background-color: #e0e0e0;
    transform: scale(1.1);
}

/* Schaal markers beter */
.leaflet-marker-icon {
    width: 50px;
    height: 50px;
    transform: translate(-25px, -50px);
}

/* Maak pop-up knoppen groter */
.leaflet-popup-content button {
    font-size: 1rem;
    padding: 10px 20px;
    border-radius: 8px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: white;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.leaflet-popup-content button:hover {
    background: linear-gradient(90deg, #0056b3, #003d80);
    transform: scale(1.05);
}

/* --- Responsieve Fixes --- */
@media (max-width: 768px) {
    /* Zorg dat knoppen en markers groter zijn op mobiel */
    .leaflet-control-zoom-in, .leaflet-control-zoom-out {
        width: 70px;
        height: 70px;
        line-height: 70px;
    }

    .leaflet-marker-icon {
        width: 60px;
        height: 60px;
        transform: translate(-30px, -60px);
    }

    /* Popup knoppen mobielvriendelijk */
    .leaflet-popup-content button {
        font-size: 1.2rem;
        padding: 15px 25px;
    }

    /* Menu-knop mobiel optimaliseren */
    .menu-button {
        font-size: 1.4rem;
        padding: 20px 30px;
        bottom: 15px;
        right: 15px;
    }
}

