.profile-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.profile-avatar {
    text-align: center;
    margin-bottom: 2rem;
}

.avatar-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    margin-bottom: 1rem;
}

.avatar-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gray);
    margin: 0 auto 1rem;
    border: 4px solid var(--primary-color);
}

.profile-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.section-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.info-group {
    margin-bottom: 1rem;
}

.info-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
    display: block;
}

.info-value {
    color: var(--gray);
    padding: 0.5rem 0;
    min-height: 1.5rem;
}

.info-value.empty {
    color: var(--gray-light);
    font-style: italic;
}

/* View/Edit mode styles */
.view-mode .form-control {
    display: none !important;
    border: none;
    background: transparent;
    padding: 0.5rem 0;
    color: var(--gray);
}

.view-mode .radio-group,
.view-mode .form-check {
    display: none !important;
}

.edit-mode .form-control {
    border: 2px solid var(--gray-light);
    background: white;
}

.edit-mode .info-value {
    display: none !important;
}

.view-mode .edit-only {
    display: none !important;
}

.edit-mode .view-only {
    display: none !important;
}

.edit-mode .form-control,
.edit-mode .radio-group,
.edit-mode .form-check {
    display: block !important;
}

/* Specific styling for form controls in both modes */
.form-control {
    border: 2px solid var(--gray-light);
    background: white;
    padding: 0.5rem 0.75rem;
}

.view-mode .info-value {
    display: block;
    color: var(--gray);
    padding: 0.5rem 0;
    min-height: 1.5rem;
}

/* Action buttons */
.profile-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-light);
}

.btn-edit {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: white;
}

.btn-edit:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success message */
.alert-success {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
