/* Profile Image Upload Styles */
.profile-image-container {
    position: relative;
    display: inline-block;
}

.profile-image-container img {
    border: 3px solid #e9ecef;
    transition: all 0.3s ease;
}

.profile-image-container:hover img {
    border-color: #007bff;
    transform: scale(1.05);
}

.profile-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.profile-image-container:hover .profile-image-overlay {
    opacity: 1;
}

.profile-image-overlay i {
    color: white;
    font-size: 24px;
}

.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.file-upload-area.dragover {
    border-color: #007bff;
    background-color: #e3f2fd;
}

.upload-progress {
    width: 100%;
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 10px;
}

.upload-progress-bar {
    height: 100%;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.image-preview {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    margin: 10px auto;
    display: block;
}

.alert-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
}

/* Loading spinner for image upload */
.upload-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Image validation messages */
.image-validation {
    font-size: 0.75rem;
    margin-top: 5px;
}

.image-validation.valid {
    color: #28a745;
}

.image-validation.invalid {
    color: #dc3545;
}

/* Responsive design */
@media (max-width: 768px) {
    .profile-image-container img {
        width: 100px !important;
        height: 100px !important;
    }
    
    .file-upload-area {
        padding: 15px;
    }
}
