/* Universal Bootstrap Button Hover Effect */
.btn {
    min-height: 40px !important;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

/*low height buttons*/
.btn-small {
    min-height: 28px !important;
}

/* Move Up and Lighten on Hover */
.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.15);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}

/* Return to Normal Position on Click */
.btn:active {
    transform: translateY(0);
    filter: brightness(1);
    box-shadow: none;
}

/* Keep Button Focus Stable */
.btn:focus {
    outline-offset: 2px;
}

/* Maroon color */
.bg-maroon {
    background-color: #800000 !important;
}

/* Maroon text */
.text-maroon {
    color: #800000 !important;
}

/* Maroon icons */
.icon-maroon {
    color: #800000 !important;
}

/* Maroon border */
.border-maroon {
    border: 1px solid #800000 !important;
}

/* Yellow background */
.bg-yellow {
    background-color: #ffd700 !important;
}

/* Yellow text */
.text-yellow {
    color: #ffd700 !important;
}

/* Yellow icons */
.icon-yellow {
    color: #ffd700 !important;
}

/* Yellow border */
.border-yellow {
    border: 1px solid #ffd700 !important;
}

/* Dark Yellow Background */
.bg-dyellow {
    background-color: #d4a017 !important;
}

/* Dark Yellow Text */
.text-dyellow {
    color: #d4a017 !important;
}

/* Dark Yellow Icons */
.icon-dyellow {
    color: #d4a017 !important;
}

/* Dark Yellow Border */
.border-dyellow {
    border: 1px solid #d4a017 !important;
}

.alert-danger-red {
    background: #dc3545 !important;
    background-color: #dc3545 !important;
    background-image: none !important;
    color: #ffffff !important;
    border: 1px solid #dc3545 !important;
    opacity: 1 !important;
}

/* Copy – Grey */
.dt-buttons .btn-copy {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
}

/* Excel – Green */
.dt-buttons .btn-excel {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: #fff !important;
}

/* CSV – Green */
.dt-buttons .btn-csv {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: #fff !important;
}

/* PDF – Red */
.dt-buttons .btn-pdf {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
}

/* Print – Blue */
.dt-buttons .btn-print {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #fff !important;
}

/* Custom Select2 class for 40.41px height */
.select2-custom-40px .select2-selection--single {
    height: 40.41px !important;
    display: flex !important;
    align-items: center !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
}

/* Center text vertically and adjust horizontal alignment */
.select2-custom-40px .select2-selection--single .select2-selection__rendered {
    line-height: normal !important;
    padding-left: 0.75rem !important;
    padding-right: 2rem !important;
    color: #495057 !important;
    width: 100% !important;
}

/* Position arrow vertically centered */
.select2-custom-40px .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    right: 8px !important;
    display: flex !important;
    align-items: center !important;
}

.form-check-input.department-checkbox:checked[type='checkbox'] {
    background-color: #0b5ed7 !important;
    border-color: #0b5ed7 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m4 8 2.5 2.5 5.5-5.5'/%3e%3c/svg%3e") !important;
    background-size: 80% 80% !important;
}

.form-switch .form-check-input.success-switch:checked {
    background-color: #22c55e !important;
    border-color: #22c55e !important;
}
