/* Estilização personalizada para inputs de arquivo */
.file-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    left: -9999px;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-input-custom {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    min-height: 45px;
}

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

.file-input-custom:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.file-input-custom .file-icon {
    margin-right: 10px;
    color: #6c757d;
    font-size: 18px;
}

.file-input-custom .file-text {
    color: #495057;
    font-size: 14px;
    flex-grow: 1;
}

.file-input-custom .file-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.file-input-custom .file-button:hover {
    background-color: #0056b3;
}

.file-input-custom.has-file {
    background-color: #d4edda;
    border-color: #28a745;
}

.file-input-custom.has-file .file-text {
    color: #155724;
}

.file-input-custom.has-file .file-button {
    background-color: #28a745;
}

.file-input-custom.has-file .file-button:hover {
    background-color: #1e7e34;
}

/* Estilo para quando há erro de validação */
.file-input-custom.is-invalid {
    border-color: #dc3545;
    background-color: #f8d7da;
}

.file-input-custom.is-invalid .file-text {
    color: #721c24;
}
