/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 8px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 12px;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

.edit-form .form-group {
    margin-bottom: 16px;
}

.edit-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.edit-form input,
.edit-form textarea,
.edit-form select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
}

.edit-form input:focus,
.edit-form textarea:focus,
.edit-form select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.modal-actions,
.edit-form-page .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* Eigen pagina: foto bewerken */
.edit-photo-page .edit-photo-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    max-width: 900px;
    margin-top: 1.5rem;
}

.edit-photo-preview {
    background: var(--kleur-achtergrond, #f5f5f5);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.edit-photo-preview {
    position: relative;
}

.edit-photo-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.preview-label {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.edit-photo-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.edit-children-section h4,
.edit-add-child h4 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    color: #333;
}

.edit-children-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.edit-child-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    aspect-ratio: 1;
}

.edit-child-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.child-delete-form {
    position: absolute;
    top: 6px;
    right: 6px;
    margin: 0;
}

.btn-remove-child {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(200, 50, 50, 0.9);
    color: white;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-remove-child:hover {
    background: #c00;
}

.add-child-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.add-child-form input[type="file"] {
    flex: 1;
    min-width: 150px;
    padding: 8px;
}

.edit-form-page {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.edit-photo-page .category-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin: 10px 0;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.edit-photo-page .btn-secondary {
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

@media (max-width: 768px) {
    .edit-photo-page .edit-photo-layout {
        grid-template-columns: 1fr;
    }
}

.btn-primary {
    background-color: #0066cc;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #0052a3;
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #333;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.edit-btn {
    background-color:#20b090;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

.edit-btn:hover {
    background-color: #085544;
}

