.dropdown-menu {
    min-width: 250px;
    padding: 10px;
    border: 1px solid #ddd;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
}

.dropdown-header {
    color: #0069d9;
    font-weight: bold;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #0069d9;
}

.form-check {
    margin-bottom: 10px;
}

.btn-secondary {
    background-color: #ccc;
    border-color: #ccc;
}

.btn-secondary:hover {
    background-color: #aaa;
    border-color: #aaa;
}

.dropdown-toggle::after {
    margin-left: 5px;
}

.dropdown-menu .btn {
    width: 48%;
}

.d-flex.justify-content-between {
    margin-top: 15px;
}

.form-switch {
    display: flex;
    align-items: center;
}

.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
    background-color: #dee2e6;
    border-radius: 1.5em;
    position: relative;
    cursor: pointer;
    appearance: none;
    outline: none;
    transition: background-color 0.3s ease;
}

.form-switch .form-check-input:checked {
    background-color: #007bff;
}

.form-switch .form-check-input:before {
    content: '';
    position: absolute;
    top: 0.15em;
    left: 0.15em;
    width: 1.2em;
    height: 1.2em;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.form-switch .form-check-input:checked:before {
    transform: translateX(1.5em);
}

.form-switch .form-check-label {
    margin-left: 1em;
    font-size: 1rem;
    color: #495057;
    white-space: nowrap;
}

/* Add subtle shadow to form elements */
.form-control, .btn, .dropdown-menu {
    border-radius: 0.25rem;
    transition: box-shadow 0.3s ease-in-out;
}

.form-control:focus, .btn:focus, .dropdown-menu:focus {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.custom-control-label {
    margin-left: 0.5rem;
}

.dropdown-menu {
    border: none;
    border-radius: 0.5rem;
}

.dropdown-header {
    font-size: 0.85rem;
    font-weight: bold;
    /*color: #333;*/
}

.form-check-label {
    margin-left: 0.25rem;
}

/* Custom hover effects */
.btn:hover, .form-control:focus, .dropdown-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive design adjustments */
@media (max-width: 768px) {
    .form-row .col-md-2, .form-row .col-md-3 {
        margin-bottom: 1rem;
    }

    .dropdown-menu {
        width: 100%;
    }
}
/* Improve label appearance */
.custom-control-label {
    font-size: 0.85rem;
    color: #555; 
    font-weight: 600;
    margin-left: 0.5rem; 
}

.custom-control-label:hover {
    color: #007bff;
}

.custom-control-label {
    margin-top: -5px;
}

.pagination {
    flex-wrap: wrap;
}

.pagination .page-item {
    flex: 1 0 auto;
    min-width: 40px; /* Adjust width as needed */
    text-align: center;
}

/* Mobile-specific styles */
@media (max-width: 768px) {

    .dropdown-menu{
        left: -30% !important;
    }
    .form-switch {
        flex-direction: row;
        align-items: flex-start;
        gap:7px;
    }
    
    .form-switch .form-check-input {
        width: 2.5em;
        height: 1.25em;
    }
    
    .form-switch .form-check-input:before {
        width: 1em;
        height: 1em;
        transform: translateX(1.25em);
    }

    .form-switch .form-check-input:checked:before {
        transform: translateX(1.25em);
    }

    .form-switch .form-check-label {
        margin-left: 0;
        margin-top: 0.5em;
        font-size: 0.9rem;
    }
}
.select2-container--default .select2-selection--multiple {
    height: auto !important;
    min-height: 38px!important;
    padding: 0.25rem 0.5rem;
    overflow: hidden;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.select2-container .select2-search--inline .select2-search__field{
    height: 22px !important;
    margin-top: 0px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice{
    display: inline-flex !important;
    background: #ecf4fd !important;
    border:1px solid #e3f7f2 !important;    
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{
    font-size:10px !important;
}

.select2-selection__choice__display{
    font-size: 10px !important;
    font-weight: 600 !important;
}
