.file-upload-form {
    max-width: 800px;
    margin: 0 auto;
}

.file-selection-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background-color: #f8f9fa;
}

.upload-button {
    display: inline-block;
    padding: 14px 28px;
    /*background-color: #007bff;*/
    /*color: white;*/
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    font-size: 16px;
    background-color: var(--primary) !important;
    color: var(--primary-text) !important;
}

.upload-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.file-info {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: #e7f3ff;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

.btn-continue, .btn-submit {
    padding: 10px 24px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    margin-right: 0.5rem;
    transition: all 0.3s;
}

.btn-continue:hover, .btn-submit:hover {
    background-color: #218838;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(40, 167, 69, 0.3);
}

.btn-continue:disabled, .btn-submit:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.btn-cancel {
    padding: 10px 24px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background-color: #5a6268;
}

.btn-link {
    background: none;
    border: none;
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
}

.btn-link:hover {
    color: #0056b3;
}

.upload-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.upload-form h4 {
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.required {
    color: #dc3545;
    margin-left: 4px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 12px;
    color: #6c757d;
}

.file-display {
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.customer-list {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 12px;
    background-color: #fff;
}

.customer-list.is-invalid {
    border-color: #dc3545;
}

.customer-checkbox {
    padding: 8px;
    margin-bottom: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.customer-checkbox:hover {
    background-color: #f8f9fa;
}

.customer-checkbox input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.customer-checkbox label {
    cursor: pointer;
    margin-bottom: 0;
    font-weight: normal;
}

.form-check {
    padding-left: 1.5rem;
}

.form-check-input {
    margin-top: 0.3rem;
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    font-weight: normal;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

.invalid-feedback.d-block {
    display: block;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

.progress-bar {
    width: 100%;
    height: 28px;
    background-color: #e9ecef;
    border-radius: 14px;
    overflow: hidden;
    margin: 1.5rem 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.progress-text {
    text-align: center;
    font-weight: 500;
    color: #495057;
    margin: 0.5rem 0 1.5rem 0;
    font-size: 15px;
}

.form-actions {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 0.5rem;
}

.alert {
    padding: 14px 18px;
    border-radius: 6px;
    margin-top: 1rem;
    font-weight: 500;
    border-left: 4px solid;
}

.alert-success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
    padding: 1.5rem;
}

.alert-warning strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 16px;
}

.alert-warning p {
    margin: 0.5rem 0;
}

.alert-warning button {
    margin-top: 1rem;
}

/* Scrollbar styling for customer list */
.customer-list::-webkit-scrollbar {
    width: 8px;
}

.customer-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.customer-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.customer-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .file-upload-form {
        max-width: 100%;
    }

    .upload-form {
        padding: 1rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-continue, .btn-submit, .btn-cancel {
        width: 100%;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}
