.profile-container {
    width: fit-content;
}

.profile-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

.profile-section-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.profile-field-group {
    margin-bottom: 1.5rem;
}

.profile-field-group:last-child {
    margin-bottom: 0;
}

.profile-field-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.profile-input {
    width: 100%;
    max-width: 300px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    font-size: 0.9rem;
}

.profile-input:focus {
    outline: none;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.profile-readonly-value {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.25rem;
    font-size: 0.9rem;
    max-width: 300px;
}

.profile-link {
    color: #0d6efd;
    text-decoration: none;
    font-size: 0.85rem;
}

.profile-link:hover {
    text-decoration: underline;
}

.profile-help-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.profile-checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.profile-checkbox {
    margin: 0;
}

.profile-checkbox-label {
    margin: 0;
    font-weight: normal;
    font-size: 0.9rem;
}

.profile-upload-section {
    padding: 1rem;
    border: 2px dashed #dee2e6;
    border-radius: 0.375rem;
    text-align: center;
}

.profile-upload-input {
    margin-bottom: 0.5rem;
}

.profile-upload-label {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.profile-upload-button {
    padding: 0.5rem 1rem;
    color: black;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.profile-upload-button:hover {
    background-color: #e9ecef;
}

.profile-permission-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.profile-permission-item:last-child {
    border-bottom: none;
}

.profile-permission-label {
    font-weight: 500;
    margin: 0;
}

.profile-permission-value {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.profile-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-category-tag {
    padding: 0.25rem 0.5rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.25rem;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .profile-container {
        margin: 0 1rem;
    }
    
    .profile-section {
        padding: 1rem;
    }
    
    .profile-input,
    .profile-readonly-value {
        max-width: 100%;
    }
    
    .profile-permission-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}