.file-upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    margin-bottom: 20px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.file-upload-area.active {
    border-color: #F44174;
    background-color: rgba(244, 65, 116, 0.05);
}

.file-upload-area input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-icon {
    font-size: 48px;
    color: #F44174;
    margin-bottom: 10px;
}

.file-list {
    max-height: 300px;
    /* Increased from 200px to accommodate progress bars */
    overflow-y: auto;
    margin-top: 15px;
    width: 100%;
}

.file-list-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Changed from center to flex-start for multi-line content */
    padding: 12px;
    /* Increased padding for more content */
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 10px;
    /* Increased margin for spacing */
    background-color: white;
    flex-direction: column;
    /* Stack file details and progress vertically */
}

.remove-file {
    color: #F44174;
    cursor: pointer;
    font-size: 18px;
    margin-left: 10px;
    align-self: flex-end;
    /* Position at top right */
}

.file-details {
    display: flex;
    align-items: center;
    flex: 1;
    width: 100%;
    /* Ensure full width */
    margin-bottom: 8px;
    /* Add space below file details */
}

.file-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    /* Allow text truncation */
}

.file-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.file-icon {
    margin-right: 10px;
    font-size: 20px;
    flex-shrink: 0;
    /* Prevent icon from shrinking */
}

.file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    margin-right: 10px;
}

.file-size {
    color: #6c757d;
    font-size: 12px;
    white-space: nowrap;
}

/* Progress section styling */
.file-progress-section {
    width: 100%;
    margin-top: 8px;
}

.file-progress-section .progress {
    height: 4px;
    margin-bottom: 5px;
}

.file-progress-section small {
    font-size: 11px;
}

/* Status icons with colors */
.file-progress-section .bi-hourglass-split {
    color: #6c757d;
}

.file-progress-section .bi-arrow-clockwise {
    color: #F44174;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.file-progress-section .text-success {
    color: #28a745 !important;
}

.file-progress-section .text-danger {
    color: #dc3545 !important;
}

/* Error message styling */
.file-progress-section .alert-danger {
    font-size: 0.75rem;
    line-height: 1.2;
    margin-bottom: 0;
    border-radius: 3px;
}

/* Fix for dropdown styling */
.form-group select.form-control {
    width: 100%;
    box-shadow: none !important;
    overflow: hidden;
    appearance: auto;
    /* Ensure dropdown arrow is visible */
}

.form-group select.form-control:focus {
    border-color: #F44174;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(244, 65, 116, 0.25) !important;
}

/* Override any Bootstrap or custom styles that might clip borders */
.dropdown-container {
    overflow: visible !important;
    position: relative;
}

/* Ensure consistent padding and sizing for all dropdowns */
.form-group select.form-control {
    padding-right: 30px;
}

/* Button spacing for the new close button */
.form-actions .d-flex.gap-2 {
    gap: 0.5rem;
}