/* Modern File Upload Component */
.file-upload-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

/* Generic File Upload (for other uses) */
.file-upload-area {
    border: 2px dashed var(--border-light);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: var(--background-light);
    position: relative;
    overflow: hidden;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
}

.file-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

/* Avatar specific styling - Redesign Iteration 3 (FAB) */
.avatar-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: var(--background-light);
}

.avatar-edit-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    z-index: 20;
    border: 2px solid #fff;
}

.avatar-edit-btn:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

.avatar-edit-btn i {
    font-size: 1.1rem;
}

/* Hidden input but accessible via label/trigger */
.modern-file-input {
    display: none;
}

/* Custom File Input Labels - Padrão do Sistema */
.custom-file-input-label {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.custom-file-input-label:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

.custom-file-input-label:active {
    background-color: #e9ecef;
}

.custom-file-input-label .file-input-text {
    color: #6c757d;
}

.custom-file-input-label-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    text-align: center;
    min-height: 120px;
}

.custom-file-input-label-large:hover {
    border-color: var(--primary-color, #F5544D);
    background-color: #fff;
}

.custom-file-input-label-large .file-input-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.custom-file-input-label-large i {
    font-size: 2rem;
    color: var(--primary-color, #F5544D);
}

.custom-file-input-label-large.comment-file-input {
    padding: 1rem 1.5rem;
    min-height: 80px;
}

.custom-file-input-label-large.comment-file-input i {
    font-size: 1.5rem;
}

.custom-file-input-label-large.comment-file-input .file-input-text {
    font-size: 0.8125rem;
    margin-top: 0.375rem;
}

.file-preview-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background-color: #e7f1ff;
    border: 1px solid #b3d7ff;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #004085;
}

.file-preview-badge .btn-close {
    font-size: 0.75rem;
    padding: 0.125rem;
    opacity: 0.7;
}

.file-preview-badge .btn-close:hover {
    opacity: 1;
}

[data-bs-theme="dark"] .custom-file-input-label {
    background-color: #2c3e50;
    border-color: #495057;
    color: #f3f3f3;
}

[data-bs-theme="dark"] .custom-file-input-label:hover {
    background-color: #34495e;
    border-color: #6c757d;
}

[data-bs-theme="dark"] .custom-file-input-label-large {
    background-color: #2c3e50;
    border-color: #495057;
}

[data-bs-theme="dark"] .custom-file-input-label-large:hover {
    background-color: #34495e;
    border-color: var(--primary-color, #F5544D);
}

[data-bs-theme="dark"] .file-preview-badge {
    background-color: #1a3a5a;
    border-color: #2d5a8a;
    color: #b3d7ff;
}
