/* Modern Form Styling - Gemeenschappelijke CSS voor moderne formulieren */

.content-area {
    margin-left: 240px;
    padding: 24px;
}

.form-container {
    max-width: 800px;
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.form-field {
    margin-bottom: 0;
}

.form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.form-field input, 
.form-field select, 
.form-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus, 
.form-field select:focus, 
.form-field textarea:focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.2);
}

.readonly-field {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    cursor: not-allowed;
}

.btn {
    background: #27ae60;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    background: #219a52;
}

.btn-full-width {
    width: 100%;
}

.btn-delete {
    background: #c0392b;
}

.btn-delete:hover {
    background: #a93226;
}

.melding {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.melding.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.melding.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.form-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.form-actions .btn {
    min-width: 140px;
}

/* Responsive design */
@media (max-width: 700px), (orientation: landscape) and (max-width: 900px) {
    .content-area {
        margin-left: 0;
        padding: 16px;
    }
    
    .form-container {
        padding: 20px 16px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .form-actions .btn {
        width: 100%;
        min-width: auto;
    }
}

/* Specifieke styling voor kleine formulier elementen */
.form-field small {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 4px;
    display: block;
}

/* Checkbox en radio button styling */
.form-field input[type="checkbox"], 
.form-field input[type="radio"] {
    width: auto;
    margin-right: 8px;
}

.form-field label.checkbox-label {
    font-weight: normal;
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

/* Passwordveld met requirements */
.password-requirements {
    font-size: 0.9em;
    color: #666;
    margin-top: 6px;
    line-height: 1.4;
}

/* Back link styling */
.back-link {
    text-align: center;
    margin-top: 24px;
}

.back-link a {
    color: #27ae60;
    text-decoration: none;
    font-weight: 500;
}

.back-link a:hover {
    text-decoration: underline;
}

/* Span-2 voor elementen die 2 kolommen moeten innemen */
.span-2 {
    grid-column: span 2;
}

/* Voor als je een centered form wilt (zoals wachtwoord wijzigen) */
.form-container.centered {
    max-width: 500px;
    margin: 0 auto;
}