/* فایل: css/profile-picture.css */

.custom-profile-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.custom-avatar-container {
    flex: 1 1 35%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-avatar-container img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.custom-profile-upload-container {
    flex: 1 1 60%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 10px;
}

.custom-info-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: right;
    font-size: 14px;
    color: #ffffff;
}

.custom-upload-label {
    background: none;
    color: #ffffff;
    border: 2px solid #ffffff;
    cursor: pointer;
    border-radius: 15px;
    padding: 8px 16px;
    transition: background-color 0.3s, border-color 0.3s;
    font-size: 14px;
    margin-right: 0;
}

.custom-upload-label:hover {
    background-color: #ff4d4d;
    border-color: #ff4d4d;
    color: #ffffff;
}

.custom-loader {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.custom-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ffa500;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* استایل‌های ریسپانسیو */
@media (max-width: 768px) {
    .custom-profile-container {
        flex-direction: column;
        align-items: center;
    }

    .custom-avatar-container,
    .custom-profile-upload-container {
        flex: 1 1 100%;
        width: 100%;
    }

    .custom-profile-upload-container {
        align-items: center;
        text-align: center;
    }

    .custom-upload-label {
        margin-right: 0;
    }
}
