/* Mijn Profiel Pagina Styles */

.mijn-profiel-page {
    padding: 2rem 0 4rem;
    min-height: calc(100vh - 200px);
    background-color: #f8f9fa;
}

.mijn-profiel-page .page-header {
    margin-bottom: 2rem;
}

.mijn-profiel-page .back-link {
    display: inline-block;
    color: #1a4b8c;
    text-decoration: none;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.mijn-profiel-page .back-link:hover {
    color: #0d2d5a;
}

.mijn-profiel-page .page-title {
    font-family: 'Bree Serif', serif;
    font-size: 2.5rem;
    color: #1a4b8c;
    margin-bottom: 0.5rem;
}

.mijn-profiel-page .page-intro {
    color: #666;
    font-size: 1.1rem;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1a4b8c;
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert Messages */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Form Styling */
.profiel-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.form-section {
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h2 {
    font-family: 'Bree Serif', serif;
    font-size: 1.4rem;
    color: #1a4b8c;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

/* Foto Upload */
.foto-upload-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.current-foto {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #1a4b8c;
    flex-shrink: 0;
}

.current-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.foto-upload-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-upload {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #1a4b8c;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background-color 0.2s;
    text-align: center;
}

.btn-upload:hover {
    background-color: #0d2d5a;
}

.upload-hint {
    font-size: 0.85rem;
    color: #888;
}

/* Form Groups */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #1a4b8c;
    box-shadow: 0 0 0 3px rgba(26, 75, 140, 0.1);
    background-color: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.field-hint {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.5rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

.btn-primary,
.btn-secondary {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background-color: #1a4b8c;
    color: white;
}

.btn-primary:hover {
    background-color: #0d2d5a;
}

.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: white;
    color: #666;
    border: 2px solid #ddd;
}

.btn-secondary:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

/* Remove button for images */
.btn-remove {
    padding: 0.5rem 1rem;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.2s;
}

.btn-remove:hover {
    background-color: #c82333;
}

/* Image preview for berichten (not rounded) */
.foto-upload-container .current-foto.bericht-preview {
    width: 200px;
    height: 150px;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .mijn-profiel-page .page-title {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .foto-upload-container {
        flex-direction: column;
        text-align: center;
    }

    .form-section {
        padding: 1.5rem;
    }

    .form-actions {
        flex-direction: column-reverse;
        padding: 1.5rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}
