/* Custom styling for choices.js in dark theme */
.choices {
    margin-bottom: 0;
}

.choices__inner {
    background-color: #4a5568 !important;
    border: 1px solid #718096 !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-size: 1.125rem !important;
    padding: 0.75rem 1rem !important;
    min-height: 50px !important;
}

.choices__input {
    background-color: transparent !important;
    color: #ffffff !important;
    font-size: 1.125rem !important;
}

.choices__input::placeholder {
    color: #a0aec0 !important;
}

.choices__placeholder {
    color: #a0aec0 !important;
    opacity: 1 !important;
}

.choices__list--dropdown {
    background-color: #2d3748 !important;
    border: 1px solid #4a5568 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
    z-index: 9999 !important;
}

.choices__item {
    color: #ffffff !important;
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid #4a5568;
}

.choices__item:last-child {
    border-bottom: none;
}

.choices__item--selectable {
    background-color: #2d3748 !important;
}

.choices__item--selectable:hover,
.choices__item--selectable.is-highlighted {
    background-color: #4a5568 !important;
    color: #ffffff !important;
}

.choices__item--choice {
    color: #ffffff !important;
}

.choices__item--choice.is-selected {
    background-color: #3182ce !important;
    color: #ffffff !important;
}

.choices__item--choice.is-highlighted {
    background-color: #4a5568 !important;
}

.choices__list--single .choices__item {
    color: #ffffff !important;
    padding: 0;
}

.choices__button {
    background-color: #e53e3e !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    padding: 2px 6px !important;
    margin-left: 8px !important;
}

.choices__button:hover {
    background-color: #c53030 !important;
}

/* Focus states */
.choices:focus-within .choices__inner,
.choices.is-focused .choices__inner {
    border-color: #3182ce !important;
    box-shadow: 0 0 0 0.2rem rgba(49, 130, 206, 0.25) !important;
}

/* Search input styling */
.choices__input--cloned {
    background-color: transparent !important;
    color: #ffffff !important;
}

/* Dropdown arrow styling */
.choices__inner::after {
    border-color: #a0aec0 transparent transparent transparent !important;
    margin-top: -2px !important;
}

.choices.is-open .choices__inner::after {
    border-color: transparent transparent #a0aec0 transparent !important;
    margin-top: -7px !important;
}

/* Custom scrollbar for dropdown */
.choices__list--dropdown::-webkit-scrollbar {
    width: 8px;
}

.choices__list--dropdown::-webkit-scrollbar-track {
    background: #2d3748;
    border-radius: 4px;
}

.choices__list--dropdown::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 4px;
}

.choices__list--dropdown::-webkit-scrollbar-thumb:hover {
    background: #718096;
}

/* Ensure proper z-index for modal */
.modal .choices__list--dropdown {
    z-index: 10000 !important;
}
/* Professional modal enhancements */
.modal-header {
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

/* Enhanced button styling */
.btn-info {
    background: linear-gradient(135deg, #3182ce 0%, #2b77cb 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-info:hover:not(:disabled) {
    background: linear-gradient(135deg, #2b77cb 0%, #2c5aa0 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

.btn-info:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form enhancements */
.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.alert-info {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Professional Modal Enhancements */
.modal-dialog.modal-md {
    max-width: 480px;
}

/* Compact form controls */
.form-select {
    font-size: 0.9rem !important;
    min-height: auto !important;
}

/* Professional header styling */
.modal-header {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%) !important;
}

/* Enhanced button styling */
.btn-outline-secondary {
    border-color: #4a5568 !important;
    color: #a0aec0 !important;
}

.btn-outline-secondary:hover {
    background-color: #4a5568 !important;
    border-color: #4a5568 !important;
    color: #ffffff !important;
}

.btn-info.btn-sm {
    background: linear-gradient(135deg, #3182ce 0%, #2b77cb 100%) !important;
    border: none !important;
    font-weight: 600 !important;
}

.btn-info.btn-sm:hover:not(:disabled) {
    background: linear-gradient(135deg, #2c5aa0 0%, #2a69ac 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3) !important;
}

/* Compact choices.js styling */
.choices__inner {
    min-height: 38px !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.9rem !important;
}

.choices__list--dropdown {
    font-size: 0.9rem !important;
}

.choices__item {
    padding: 0.5rem 0.75rem !important;
}

/* Status info styling */
.alert-success {
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}