/* Planning CSS - Hubmedia */

/* Thumbnail preview */
.thumbnail-preview {
    width: 40px;
    height: 40px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.2s;
}
.thumbnail-preview:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Mobiele formulier styling */
@media (max-width: 768px) {
    select, textarea {
        width: 100% !important;
        font-size: 16px !important;
        padding: 12px !important;
        margin-bottom: 8px !important;
        border-radius: 8px !important;
        border: 2px solid #ddd !important;
    }
    textarea {
        min-height: 100px !important;
    }
    .btn-success, .btn-primary, input[type="submit"] {
        width: 100% !important;
        padding: 15px !important;
        font-size: 18px !important;
        margin-top: 10px !important;
        border-radius: 10px !important;
    }
}

/* Radio button als knoppen */
.radio-btn-group {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}
.radio-btn-group label {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    background: #fff;
    transition: all 0.2s;
}
.radio-btn-group input[type="radio"] {
    display: none;
}
.radio-btn-group input[type="radio"]:checked + label {
    background: #28a745;
    color: white;
    border-color: #28a745;
}
.radio-btn-group input[type="radio"][value="nee"]:checked + label {
    background: #dc3545;
    border-color: #dc3545;
}

/* File input styling */
.file-upload-wrapper {
    display: block;
    width: 100%;
    padding: 15px;
    margin: 8px 0;
    background: #fff;
    border: 2px dashed #17a2b8;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
}
.file-upload-wrapper:hover {
    background: #e3f2fd;
}

/* Labels */
.form-label-custom {
    display: block;
    font-size: 16px;
    font-weight: bold;
    margin: 15px 0 8px 0;
    color: #333;
}

/* Foto stappen styling */
.foto-stap {
    margin-bottom: 15px;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ddd;
}
.foto-stap-header {
    font-weight: bold;
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}
.foto-stap.completed {
    background: #d4edda;
    border-color: #28a745;
}
.foto-stap.completed .foto-stap-header {
    color: #155724;
}

/* Popup modal */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}
.popup-overlay.active {
    display: flex;
}
.popup-content {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}
.popup-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
}
.popup-title.ja {
    background: #d4edda;
    color: #155724;
}
.popup-title.nee {
    background: #f8d7da;
    color: #721c24;
}
.popup-option {
    display: block;
    width: 100%;
    padding: 18px 15px;
    margin: 10px 0;
    border: 2px solid #ddd;
    border-radius: 12px;
    background: #fff;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}
.popup-option:hover {
    background: #f0f0f0;
    transform: scale(1.02);
}
.popup-option.selected {
    background: #28a745;
    color: #fff;
    border-color: #28a745;
}
.popup-option.selected.nee {
    background: #dc3545;
    border-color: #dc3545;
}
.popup-cancel {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 15px;
    border: none;
    border-radius: 12px;
    background: #6c757d;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

/* Lightbox overlay */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.lightbox-overlay.active {
    display: flex;
}
.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* Open/dicht status */
.open {
    color: #28a745;
    font-weight: bold;
}
.gesloten {
    color: #dc3545;
    font-weight: bold;
}
.sluit-bijna {
    color: #ffc107;
    font-weight: bold;
}
.opent-bijna {
    color: #17a2b8;
    font-weight: bold;
}

/* Locatie items */
.locatie-item {
    transition: all 0.2s;
}
.locatie-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Voltooid items */
.voltooid-item {
    transition: all 0.2s;
}
.voltooid-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Archive button */
.btn-archive {
    background: #28a745;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}
.btn-archive:hover {
    background: #218838;
}
