* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #dff5fc;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background: white;
    color: black;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-bottom: 3px solid #00b1ec;
}

header .logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 10px;
}

header h2 {
    font-size: 1.5em;
    font-weight: 300;
    color: #333;
}

form {
    padding: 40px;
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    color: #00b1ec;
    margin-bottom: 20px;
    font-size: 1.5em;
}

/* ==================== MODULE ICONS ==================== */
.module-icon {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: contain;
}

.module-icon-lg {
    width: 48px;
    height: 48px;
    margin-right: 15px;
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: contain;
}

/* Checkbox groep met iconen (in "Gebruikte modules") */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: 500;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.checkbox-group label:hover {
    color: #00b1ec;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #00b1ec;
    flex-shrink: 0;
}

/* ==================== MODULE RECHTEN LAYOUT ==================== */
.module-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #00b1ec;
}

.module-rights-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.module-rights-row h4 {
    color: #333;
    margin: 0;
    font-size: 1.25em;
    min-width: 120px;
}

.module-rights-row .form-group {
    flex: 1;
    margin: 0;
}

.module-rights-row select {
    width: 100%;
}

/* ==================== PROFIEL CONTAINERS ==================== */
.profiel-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 3px solid #00b1ec;
    box-shadow: 0 2px 8px rgba(0, 177, 236, 0.15);
    position: relative;
}

.profiel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.profiel-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5em;
}

.profiel-nummer {
    color: #00b1ec;
    font-weight: 600;
}

.profiel-section {
    margin-bottom: 25px;
}

.profiel-section h4 {
    color: #0090c4;
    margin-bottom: 15px;
    font-size: 1.2em;
}

/* Processing info styling */
.processing-info {
    background: #e3f2fd;
    border: 2px solid #00b1ec;
    border-radius: 8px;
    padding: 15px 20px;
    margin-top: 20px;
}

.processing-info p {
    margin: 0;
    color: #0090c4;
}

/* ==================== HANDBOEKEN/RISICOANALYSES/PRESTATIEKAARTEN ==================== */
.handboek-item,
.risicoanalyse-item,
.prestatiekaart-item {
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 3px solid #00b1ec;
}

.handboek-item h5,
.risicoanalyse-item h5,
.prestatiekaart-item h5 {
    color: #00b1ec;
    margin-bottom: 12px;
}

/* ==================== FORM ELEMENTS ==================== */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #00b1ec;
    box-shadow: 0 0 0 3px rgba(0, 177, 236, 0.1);
}

small {
    display: block;
    margin-top: 5px;
    color: #0090c4;
    font-weight: 600;
    font-size: 0.9em;
}

/* Beheerdersverklaring */
.admin-declaration {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.admin-declaration h3 {
    color: #856404;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.admin-declaration-text {
    font-weight: 600;
    color: #856404;
}

/* Buttons */
.btn-primary,
.btn-add {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    width: 100%;
}

.btn-primary {
    background: #00C853;
    color: white;
}

.btn-primary:hover {
    background: #00a043;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 200, 83, 0.3);
}

.btn-add {
    background: #333;
    color: white;
    margin-bottom: 20px;
}

.btn-add:hover {
    background: #00b1ec;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 177, 236, 0.3);
}

.remove-btn {
    background: #333;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #d9534f;
    transform: rotate(90deg);
}

.form-actions {
    margin-top: 40px;
    text-align: center;
}

.success-message {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
    padding: 30px;
    text-align: center;
    border-radius: 6px;
    margin: 40px;
}

.success-message h3 {
    font-size: 2em;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    body { padding: 10px; }
    form { padding: 20px; }
    header .logo { max-width: 150px; }
    
    .module-icon {
        width: 36px;
        height: 36px;
    }
    
    .module-icon-lg {
        width: 42px;
        height: 42px;
    }
    
    .module-rights-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .module-rights-row h4 {
        margin-bottom: 0;
    }
    
    .remove-btn {
        position: absolute;
        top: 15px;
        right: 15px;
    }
    
    .profiel-container {
        padding: 20px;
    }
}