/* Generieke Stijlen & Dark Mode */
body {
    background: #f5f5f5;
    transition: background 0.3s, color 0.3s;
}
body.dark-mode {
    background: #1a1a2e;
    color: #ffffff;
}
body.dark-mode .card {
    background: #16213e;
    border-color: #0f3460;
}
body.dark-mode .card-body,
body.dark-mode .card-title,
body.dark-mode .card-text {
    color: #ffffff;
}
body.dark-mode .question-card,
body.dark-mode .stats {
    background: #0f3460;
    color: #ffffff;
}
body.dark-mode .form-control,
body.dark-mode .form-select {
    background: #1a1a2e;
    border-color: #0f3460;
    color: #ffffff;
}
body.dark-mode .table {
    color: #ffffff;
}
body.dark-mode .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Dark Mode Knop */
.dark-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

/* Dashboard Modules */
.module-card {
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s, filter 0.3s;
}
.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Stijl voor gearchiveerde / uitgeschakelde (oude) modules */
.module-card.disabled-module {
    opacity: 0.6 !important;
    filter: grayscale(100%) !important;
    -webkit-filter: grayscale(100%) !important;
    background-color: #e9ecef !important;
}

body.dark-mode .module-card.disabled-module {
    background-color: #121829 !important;
}

.module-card.disabled-module img {
    filter: grayscale(100%) !important;
    -webkit-filter: grayscale(100%) !important;
    opacity: 0.7 !important;
}

.module-card.disabled-module:hover {
    filter: grayscale(40%) !important;
    -webkit-filter: grayscale(40%) !important;
    opacity: 0.85 !important;
}

/* Kaart Container */
#map {
    height: 550px;
    width: 100%;
    border-radius: 8px;
    background: #e0e0e0;
}
body.dark-mode #map {
    background: #0f3460;
}

/* Leaflet wrapper reset */
.custom-div-icon,
.custom-pin {
    background: transparent !important;
    border: none !important;
}

/* Ronde Markers (Basis) */
.marker {
    position: absolute !important;
    transform: translate(-50%, -50%);
    width: 32px !important;
    height: 32px !important;
    background-color: #dc3545;
    border: 3px solid #ffffff;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: bold !important;
    color: #ffffff !important;
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
    box-sizing: border-box;
    z-index: 100;
}

.marker.highlight {
    background-color: #0d6efd !important;
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.5);
}

.marker.active {
    background-color: #0dcaf0 !important;
    transform: translate(-50%, -50%) scale(1.2);
    animation: pulse 1s infinite;
}

.marker.completed {
    background-color: #198754 !important;
}

/* Ronde Pins voor Aanwijs Quiz */
.marker-pin {
    width: 24px !important;
    height: 24px !important;
    background-color: #dc3545;
    border: 3px solid #ffffff;
    border-radius: 50% !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    box-sizing: border-box;
}

.marker-pin:hover { transform: scale(1.3); }
.marker-pin.correct { background-color: #198754 !important; }
.marker-pin.wrong { background-color: #6c757d !important; opacity: 0.5; }

/* Admin Map Editor */
.map-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
    background: #e0e0e0;
    border-radius: 8px;
    overflow: auto;
    cursor: crosshair;
}
body.dark-mode .map-wrapper { background: #0f3460; }
.map-image { max-width: 100%; height: auto; cursor: crosshair; }

.marker.draggable { cursor: move; }
.marker.draggable:hover { transform: translate(-50%, -50%) scale(1.1); background-color: #ff6666 !important; }
.marker.editing { background-color: #ff9800 !important; border: 3px solid #fff; box-shadow: 0 0 0 3px #ff9800; }