/* Custom Dropdown Styles */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    z-index: 1000;
    min-width: 10rem;
    max-width: 15rem;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.175);
    transform: translateX(0);
}

/* Ensure dropdown stays within viewport */
.dropdown-menu.show {
    display: block;
    position: absolute;
    right: 0;
    left: auto;
    transform: translateX(0);
}

/* For smaller screens, adjust positioning */
@media (max-width: 768px) {
    .dropdown-menu {
        right: 0;
        left: auto;
        transform: translateX(0);
        max-width: calc(100vw - 2rem);
    }
}


.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.25rem 1rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: #1e2125;
    background-color: #e9ecef;
}

.dropdown-divider {
    height: 0;
    margin: 0.5rem 0;
    overflow: hidden;
    border-top: 1px solid #e9ecef;
}

/* Bootstrap 5 Alert Styles */

/* Base Alert Styles */
.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Alert Variants */
.alert-primary {
    color: #084298;
    background-color: #cff4fc;
    border-color: #b6effb;
}

.alert-secondary {
    color: #41464b;
    background-color: #e2e3e5;
    border-color: #d3d6d8;
}

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

.alert-info {
    color: #055160;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert-light {
    color: #636464;
    background-color: #fefefe;
    border-color: #fdfdfe;
}

.alert-dark {
    color: #141619;
    background-color: #d3d3d4;
    border-color: #bcbebf;
}

/* Alert with Dismissible */
.alert-dismissible {
    padding-right: 3rem;
}

.alert-dismissible .btn-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    padding: 0.75rem 1.25rem;
}

/* Alert Link */
.alert-link {
    font-weight: 700;
    text-decoration: underline;
}

.alert-link:hover {
    text-decoration: underline;
}

.alert-primary .alert-link {
    color: #06357a;
}

.alert-secondary .alert-link {
    color: #34383c;
}

.alert-success .alert-link {
    color: #0a412e;
}

.alert-danger .alert-link {
    color: #6a1a21;
}

.alert-warning .alert-link {
    color: #523e02;
}

.alert-info .alert-link {
    color: #04414d;
}

.alert-light .alert-link {
    color: #4f5050;
}

.alert-dark .alert-link {
    color: #101214;
}

/* Alert with Icons */
.alert-icon {
    display: flex;
    align-items: center;
}

.alert-icon::before {
    content: "";
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.alert-success.alert-icon::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%230f5132' d='M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16zm3.857-9.809-5.07 5.07a.75.75 0 0 1-1.06 0L4.143 9.485a.75.75 0 1 1 1.06-1.06L7 10.94l4.143-4.143a.75.75 0 1 1 1.06 1.06z'/%3e%3c/svg%3e");
}

.alert-danger.alert-icon::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23842029' d='M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z'/%3e%3c/svg%3e");
}

.alert-warning.alert-icon::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23664d03' d='M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z'/%3e%3c/svg%3e");
}

.alert-info.alert-icon::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23055160' d='M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2z'/%3e%3c/svg%3e");
}

/* Alert Animations */
.alert {
    animation: alertFadeIn 0.3s ease-in-out;
}

@keyframes alertFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alert Auto-dismiss */
.alert-auto-dismiss {
    animation: alertFadeOut 0.3s ease-in-out 4.7s forwards;
}

@keyframes alertFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Responsive Alert */
@media (max-width: 576px) {
    .alert {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .alert-dismissible {
        padding-right: 2.5rem;
    }
    
    .alert-dismissible .btn-close {
        padding: 0.5rem 1rem;
    }
}

/* Custom Alert Styles */
.alert-custom {
    border-left: 4px solid;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alert-custom.alert-primary {
    border-left-color: #0d6efd;
}

.alert-custom.alert-success {
    border-left-color: #198754;
}

.alert-custom.alert-danger {
    border-left-color: #dc3545;
}

.alert-custom.alert-warning {
    border-left-color: #ffc107;
}

.alert-custom.alert-info {
    border-left-color: #0dcaf0;
}

/* Bootstrap 5 Badge Styles */

/* Base Badge Styles */
.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
}

/* Badge Variants */
.badge-primary {
    background-color: #0d6efd;
}

.badge-secondary {
    background-color: #6c757d;
}

.badge-success {
    background-color: #198754;
}

.badge-danger {
    background-color: #dc3545;
}

.badge-warning {
    background-color: #ffc107;
    color: #000;
}

.badge-info {
    background-color: #0dcaf0;
    color: #000;
}

.badge-light {
    background-color: #f8f9fa;
    color: #000;
}

.badge-dark {
    background-color: #212529;
}

/* Badge Sizes */
.badge-sm {
    font-size: 0.65em;
    padding: 0.25em 0.5em;
}

.badge-lg {
    font-size: 0.875em;
    padding: 0.5em 0.75em;
}

.badge-xl {
    font-size: 1em;
    padding: 0.6em 0.8em;
}

/* Badge with Rounded Pills */
.badge-pill {
    border-radius: 50rem;
}

/* Badge with Outline */
.badge-outline {
    background-color: transparent;
    border: 1px solid;
}

.badge-outline.badge-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}

.badge-outline.badge-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

.badge-outline.badge-success {
    color: #198754;
    border-color: #198754;
}

.badge-outline.badge-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.badge-outline.badge-warning {
    color: #ffc107;
    border-color: #ffc107;
}

.badge-outline.badge-info {
    color: #0dcaf0;
    border-color: #0dcaf0;
}

.badge-outline.badge-light {
    color: #f8f9fa;
    border-color: #f8f9fa;
}

.badge-outline.badge-dark {
    color: #212529;
    border-color: #212529;
}

/* Badge with Icons */
.badge-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-icon::before {
    content: "";
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.badge-success.badge-icon::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23fff' d='M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16zm3.857-9.809-5.07 5.07a.75.75 0 0 1-1.06 0L4.143 9.485a.75.75 0 1 1 1.06-1.06L7 10.94l4.143-4.143a.75.75 0 1 1 1.06 1.06z'/%3e%3c/svg%3e");
}

.badge-danger.badge-icon::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23fff' d='M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z'/%3e%3c/svg%3e");
}

.badge-warning.badge-icon::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23000' d='M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z'/%3e%3c/svg%3e");
}

.badge-info.badge-icon::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23000' d='M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2z'/%3e%3c/svg%3e");
}

/* Badge Animations */
.badge {
    transition: all 0.2s ease-in-out;
}

.badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Badge Pulse Animation */
.badge-pulse {
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

/* Badge Glow Effect */
.badge-glow {
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.5);
}

.badge-glow.badge-success {
    box-shadow: 0 0 10px rgba(25, 135, 84, 0.5);
}

.badge-glow.badge-danger {
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}

.badge-glow.badge-warning {
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.badge-glow.badge-info {
    box-shadow: 0 0 10px rgba(13, 202, 240, 0.5);
}

/* Badge with Gradient */
.badge-gradient {
    background: linear-gradient(45deg, #0d6efd, #6610f2);
    border: none;
}

.badge-gradient.badge-success {
    background: linear-gradient(45deg, #198754, #20c997);
}

.badge-gradient.badge-danger {
    background: linear-gradient(45deg, #dc3545, #e83e8c);
}

.badge-gradient.badge-warning {
    background: linear-gradient(45deg, #ffc107, #fd7e14);
}

.badge-gradient.badge-info {
    background: linear-gradient(45deg, #0dcaf0, #6f42c1);
}

/* Responsive Badge */
@media (max-width: 576px) {
    .badge {
        font-size: 0.7em;
        padding: 0.3em 0.6em;
    }
    
    .badge-sm {
        font-size: 0.6em;
        padding: 0.2em 0.4em;
    }
    
    .badge-lg {
        font-size: 0.8em;
        padding: 0.4em 0.6em;
    }
    
    .badge-xl {
        font-size: 0.9em;
        padding: 0.5em 0.7em;
    }
}

/* Badge in Buttons */
.btn .badge {
    position: relative;
    top: -1px;
}

/* Badge in Tables */
.table .badge {
    vertical-align: middle;
}

/* Custom Badge Styles */
.badge-custom {
    border-radius: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-custom.badge-primary {
    background: linear-gradient(135deg, #05264C 0%, #764ba2 100%);
}

.badge-custom.badge-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.badge-custom.badge-danger {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
}

.badge-custom.badge-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}

.badge-custom.badge-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
}

/* Bootstrap 5 Pagination Styles */

/* Base Pagination Styles */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.375rem;
    margin: 0;
    justify-content: center;
}

/* Custom Pagination Button Styles (for get_paging function) */
.pagination-btn {
    display: inline-block;
    margin: 0 2px;
}

.pagination-btn a {
    position: relative;
    display: block;
    color: #3b7ddd;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #dee2e6;
    transition: all 0.15s ease-in-out;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.375rem;
    min-width: 2.5rem;
    text-align: center;
}

.pagination-btn a:hover {
    z-index: 2;
    color: #2c5aa0;
    background-color: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination-btn.active a {
    z-index: 3;
    color: #fff;
    background-color: #3b7ddd;
    border-color: #3b7ddd;
    box-shadow: 0 4px 8px rgba(59, 125, 221, 0.3);
}

.pagination-btn.active a:hover {
    background-color: #2c5aa0;
    border-color: #2c5aa0;
}

/* Standard Bootstrap Page Link Styles */
.page-link {
    position: relative;
    display: block;
    color: #3b7ddd;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #dee2e6;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.page-link:hover {
    z-index: 2;
    color: #2c5aa0;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.page-link:focus {
    z-index: 3;
    color: #2c5aa0;
    background-color: #e9ecef;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(59, 125, 221, 0.25);
}

.page-item:first-child .page-link {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.page-item:last-child .page-link {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #3b7ddd;
    border-color: #3b7ddd;
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

/* Pagination Sizes */
.pagination-sm .pagination-btn a {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    min-width: 2rem;
}

.pagination-lg .pagination-btn a {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    min-width: 3rem;
}

.pagination-sm .page-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.pagination-lg .page-link {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

/* Pagination with Icons */
.pagination .page-link i {
    font-size: 0.875rem;
}

/* Pagination with Numbers Only */
.pagination-numbers .page-link {
    min-width: 2.5rem;
    text-align: center;
}

/* Pagination with Dots */
.pagination-dots .page-item.disabled .page-link {
    background-color: transparent;
    border-color: transparent;
    color: #6c757d;
}

/* Custom Pagination Styles */
.pagination-custom {
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    padding: 0.5rem;
}

.pagination-custom .page-link {
    border-radius: 0.375rem;
    margin: 0 0.125rem;
    border: none;
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.pagination-custom .page-link:hover {
    background-color: #e9ecef;
    color: #3b7ddd;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination-custom .page-item.active .page-link {
    background: linear-gradient(135deg, #3b7ddd 0%, #2c5aa0 100%);
    color: #fff;
    box-shadow: 0 4px 8px rgba(59, 125, 221, 0.3);
}

.pagination-custom .page-item.disabled .page-link {
    background-color: #f8f9fa;
    color: #adb5bd;
    cursor: not-allowed;
}

/* Pagination with Success Theme */
.pagination-success .page-item.active .page-link {
    background-color: #1cbb8c;
    border-color: #1cbb8c;
}

.pagination-success .page-link:hover {
    color: #1cbb8c;
}

.pagination-success .page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(28, 187, 140, 0.25);
}

/* Pagination with Warning Theme */
.pagination-warning .page-item.active .page-link {
    background-color: #fcb92c;
    border-color: #fcb92c;
    color: #000;
}

.pagination-warning .page-link:hover {
    color: #fcb92c;
}

.pagination-warning .page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(252, 185, 44, 0.25);
}

/* Pagination with Danger Theme */
.pagination-danger .page-item.active .page-link {
    background-color: #dc3545;
    border-color: #dc3545;
}

.pagination-danger .page-link:hover {
    color: #dc3545;
}

.pagination-danger .page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Pagination with Info Theme */
.pagination-info .page-item.active .page-link {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.pagination-info .page-link:hover {
    color: #17a2b8;
}

.pagination-info .page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(23, 162, 184, 0.25);
}

/* Pagination Animations */
.pagination .page-link {
    transition: all 0.2s ease-in-out;
}

.pagination .page-link:hover {
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    animation: paginationActive 0.3s ease-in-out;
}

@keyframes paginationActive {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Pagination with Glow Effect */
.pagination-glow .page-item.active .page-link {
    box-shadow: 0 0 10px rgba(59, 125, 221, 0.4);
}

.pagination-glow.pagination-success .page-item.active .page-link {
    box-shadow: 0 0 10px rgba(28, 187, 140, 0.4);
}

.pagination-glow.pagination-warning .page-item.active .page-link {
    box-shadow: 0 0 10px rgba(252, 185, 44, 0.4);
}

.pagination-glow.pagination-danger .page-item.active .page-link {
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.4);
}

.pagination-glow.pagination-info .page-item.active .page-link {
    box-shadow: 0 0 10px rgba(23, 162, 184, 0.4);
}

/* Responsive Pagination */
@media (max-width: 576px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-btn {
        margin: 0.125rem;
    }
    
    .pagination-btn a {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        min-width: 2rem;
    }
    
    .pagination .page-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        margin: 0.125rem;
    }
    
    .pagination-sm .pagination-btn a {
        padding: 0.125rem 0.375rem;
        font-size: 0.7rem;
        min-width: 1.5rem;
    }
    
    .pagination-sm .page-link {
        padding: 0.125rem 0.375rem;
        font-size: 0.7rem;
    }
    
    .pagination-lg .pagination-btn a {
        padding: 0.5rem 1rem;
        font-size: 1rem;
        min-width: 2.5rem;
    }
    
    .pagination-lg .page-link {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* Pagination in Cards */
.card .pagination {
    margin-bottom: 0;
    border-radius: 0 0 0.375rem 0.375rem;
}

.card .pagination-btn a {
    background-color: #fff;
    border: 1px solid #dee2e6;
}

.card .pagination-btn a:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.card .pagination-btn.active a {
    background-color: #3b7ddd;
    border-color: #3b7ddd;
    color: #fff;
}

/* Pagination in Tables */
.table-responsive .pagination {
    margin-top: 1rem;
    justify-content: center;
}

/* Pagination with Loading State */
.pagination-loading .page-link {
    opacity: 0.6;
    pointer-events: none;
}

.pagination-loading .page-link::after {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3b7ddd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pagination Info Display */
.pagination-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.pagination-info .pagination-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-info .pagination-stats select {
    padding: 0.25rem 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

/* Pagination with Jump to Page */
.pagination-jump {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.pagination-jump input {
    width: 3rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    text-align: center;
    font-size: 0.875rem;
}

.pagination-jump button {
    padding: 0.25rem 0.75rem;
    background-color: #3b7ddd;
    color: #fff;
    border: none;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.pagination-jump button:hover {
    background-color: #2c5aa0;
}

/* Enhanced Pagination Styles for get_paging function */
.pagination-btn a {
    font-weight: 500;
    text-decoration: none;
}

.pagination-btn a:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(59, 125, 221, 0.25);
}

/* Pagination with better spacing */
.pagination {
    gap: 0.25rem;
}

/* Pagination button hover effects */
.pagination-btn a:hover {
    text-decoration: none;
}

/* Active page styling */
.pagination-btn.active a {
    font-weight: 600;
}

/* Disabled state for pagination buttons */
.pagination-btn.disabled a {
    color: #6c757d;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Dark Theme Pagination */
[data-bs-theme="dark"] .pagination .page-link {
    color: #adb5bd;
    background-color: #212529;
    border-color: #495057;
}

[data-bs-theme="dark"] .pagination .page-link:hover {
    color: #fff;
    background-color: #495057;
    border-color: #6c757d;
}

[data-bs-theme="dark"] .pagination .page-item.active .page-link {
    color: #fff;
    background-color: #3b7ddd;
    border-color: #3b7ddd;
}

[data-bs-theme="dark"] .pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #212529;
    border-color: #495057;
}

[data-bs-theme="dark"] .pagination-btn a {
    color: #adb5bd;
    background-color: #212529;
    border-color: #495057;
}

[data-bs-theme="dark"] .pagination-btn a:hover {
    color: #fff;
    background-color: #495057;
    border-color: #6c757d;
}

[data-bs-theme="dark"] .pagination-btn.active a {
    color: #fff;
    background-color: #3b7ddd;
    border-color: #3b7ddd;
}

[data-bs-theme="dark"] .pagination-btn.disabled a {
    color: #6c757d;
    background-color: #212529;
    border-color: #495057;
}

/* Credit Balance Display Styles */
.credit-balance-card {
    background: linear-gradient(135deg, #05264C 0%, #764ba2 100%);
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

/* Small Credit Balance Card */
.credit-balance-small {
    margin-bottom: 0.75rem;
}

.credit-balance-small .card-body {
    padding: 0.75rem;
}

.credit-balance-small .credit-balance-icon {
    width: 2rem;
    height: 2rem;
    margin-right: 0.75rem;
}

.credit-balance-small .credit-balance-icon i {
    font-size: 1rem;
}

.credit-balance-small .credit-balance-label {
    font-size: 0.75rem;
    margin-bottom: 0.125rem;
}

.credit-balance-small .credit-balance-amount {
    font-size: 1.125rem;
}

.credit-balance-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.credit-balance-card .card-body {
    padding: 1.25rem;
}

.credit-balance-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.credit-balance-icon i {
    color: #fff;
    font-size: 1.5rem;
}

.credit-balance-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.credit-balance-amount {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Low Balance Warning */
.credit-balance-low {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.credit-balance-low .credit-balance-icon {
    background: rgba(255, 255, 255, 0.25);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* High Balance Success */
.credit-balance-high {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
}

/* Responsive Credit Balance */
@media (max-width: 768px) {
    .credit-balance-card .card-body {
        padding: 1rem;
    }
    
    .credit-balance-icon {
        width: 2.5rem;
        height: 2.5rem;
        margin-right: 0.75rem;
    }
    
    .credit-balance-icon i {
        font-size: 1.25rem;
    }
    
    .credit-balance-amount {
        font-size: 1.25rem;
    }
    
    .credit-balance-label {
        font-size: 0.8rem;
    }
}

/* Dark theme support */
[data-bs-theme="dark"] .credit-balance-card {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .credit-balance-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Fix for sidebar credit balance card visibility */
.sidebar .credit-balance-card {
    background: linear-gradient(135deg, #05264C 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
    transition: all 0.3s ease !important;
    margin-bottom: 0.5rem !important;
    margin-top: 0.25rem !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.sidebar .credit-balance-card .card-body {
    padding: 0.5rem !important;
}

.sidebar .credit-balance-card .credit-balance-icon {
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    width: 1.75rem !important;
    height: 1.75rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 0.5rem !important;
}

.sidebar .credit-balance-card .credit-balance-icon i {
    color: #fff !important;
    font-size: 0.875rem !important;
}

.sidebar .credit-balance-card .credit-balance-label {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    margin-bottom: 0.1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.sidebar .credit-balance-card .credit-balance-amount {
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.sidebar .credit-balance-card .credit-balance-amount a {
    color: #fff !important;
    text-decoration: none !important;
}

.sidebar .credit-balance-card .credit-balance-amount a:hover {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
}

/* Ensure the sidebar credit balance card is not affected by any parent opacity */
.sidebar .credit-balance-card,
.sidebar .credit-balance-card * {
    opacity: 1 !important;
}

/* Additional fixes for sidebar credit balance card */
.sidebar .sidebar-brand .credit-balance-card {
    position: relative !important;
    z-index: 10 !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Override any potential parent styles that might be causing the fade effect */
.sidebar .sidebar-brand {
    position: relative !important;
}

.sidebar .sidebar-brand .credit-balance-card::before {
    content: none !important;
}

.sidebar .sidebar-brand .credit-balance-card::after {
    content: none !important;
}

/* Ensure proper contrast and visibility */
.sidebar .credit-balance-card {
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Select2 Validation Styles */
.select2-container--default .select2-selection--single.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.select2-container--default .select2-selection--single.is-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Ensure the select2 container gets the invalid styling */
.select2-container.is-invalid .select2-selection--single {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Add File Tuning Button Styles */
.btn-add-file-tuning {
    background: linear-gradient(135deg, #05264C 0%, #764ba2 100%);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    vertical-align: middle;
    margin: 0;
}

/* Navbar alignment for the button */
.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-item .btn-add-file-tuning {
    align-self: center;
    margin-right: 1rem;
}

.btn-add-file-tuning::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-add-file-tuning:hover::before {
    left: 100%;
}

.btn-add-file-tuning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    text-decoration: none;
    color: #fff;
}

.btn-add-file-tuning:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-add-file-tuning:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.btn-add-file-tuning i {
    font-size: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive adjustments for the button */
@media (max-width: 768px) {
    .btn-add-file-tuning {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
        min-width: 140px;
    }
    
    .btn-add-file-tuning i {
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .btn-add-file-tuning {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        min-width: 120px;
    }
    
    .btn-add-file-tuning i {
        font-size: 0.8rem;
        margin-right: 0.5rem !important;
    }
}

/* Dark theme support for the button */
[data-bs-theme="dark"] .btn-add-file-tuning {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .btn-add-file-tuning:hover {
    background: linear-gradient(135deg, #3a4558 0%, #1a2332 100%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Button glow effect on focus */
.btn-add-file-tuning:focus {
    animation: buttonGlow 0.6s ease-in-out;
}

@keyframes buttonGlow {
    0% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(102, 126, 234, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
}

/* Bootstrap 5 Modal Styles */

/* Modal Backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}

.modal-backdrop.fade {
    opacity: 0;
}

.modal-backdrop.show {
    opacity: 0.5;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.modal.show {
    display: block !important;
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

/* Modal Dialog */
.modal-dialog {
    position: relative;
    width: auto;
    margin: 0.5rem;
    pointer-events: none;
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

/* Modal Content */
.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    outline: 0;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.5);
}

/* Modal Header */
.modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: calc(0.3rem - 1px);
    border-top-right-radius: calc(0.3rem - 1px);
}

.modal-title {
    margin-bottom: 0;
    line-height: 1.5;
}

/* Modal Body */
.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem;
    border-top: 1px solid #dee2e6;
    border-bottom-right-radius: calc(0.3rem - 1px);
    border-bottom-left-radius: calc(0.3rem - 1px);
}

.modal-footer > * {
    margin: 0.25rem;
}

/* Modal Close Button */
.btn-close {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: 0.25em 0.25em;
    color: #000;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='m.5 1.5 1.5-1.5L8 6.5 14.5 0l1.5 1.5L9.5 8l6.5 6.5-1.5 1.5L8 9.5l-6.5 6.5-1.5-1.5L6.5 8 0 1.5z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: 0.25rem;
    opacity: 0.5;
}

.btn-close:hover {
    color: #000;
    text-decoration: none;
    opacity: 0.75;
}

.btn-close:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    opacity: 1;
}

.btn-close:disabled,
.btn-close.disabled {
    pointer-events: none;
    user-select: none;
    opacity: 0.25;
}

/* Modal Sizes */
.modal-sm {
    max-width: 300px;
}

.modal-lg {
    max-width: 800px;
}

.modal-xl {
    max-width: 1140px;
}

/* Modal Fullscreen */
.modal-fullscreen {
    width: 100vw;
    max-width: none;
    height: 100%;
    margin: 0;
}

.modal-fullscreen .modal-content {
    height: 100%;
    border: 0;
    border-radius: 0;
}

.modal-fullscreen .modal-header {
    border-radius: 0;
}

.modal-fullscreen .modal-body {
    overflow-y: auto;
}

.modal-fullscreen .modal-footer {
    border-radius: 0;
}

/* Responsive Modal */
@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto;
    }
    
    .modal-sm {
        max-width: 300px;
    }
}

@media (min-width: 992px) {
    .modal-lg,
    .modal-xl {
        max-width: 800px;
    }
}

@media (min-width: 1200px) {
    .modal-xl {
        max-width: 1140px;
    }
}

/* Modal Animation */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        transform: translate3d(0, -100%, 0);
        visibility: visible;
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

.modal.fade .modal-dialog {
    animation: modalSlideIn 0.3s ease-out;
}

/* Modal with Custom Styling */
.modal-custom .modal-content {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-custom .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 0.5rem 0.5rem 0 0;
}

.modal-custom .modal-title {
    color: white;
    font-weight: 600;
}

.modal-custom .btn-close {
    filter: invert(1);
}

.modal-custom .btn-close:hover {
    opacity: 0.8;
}

/* Modal with Dark Theme */
.modal-dark .modal-content {
    background-color: #212529;
    color: #fff;
    border-color: #495057;
}

.modal-dark .modal-header {
    background-color: #343a40;
    border-color: #495057;
}

.modal-dark .modal-footer {
    background-color: #343a40;
    border-color: #495057;
}

.modal-dark .btn-close {
    filter: invert(1);
}

/* Modal Loading State */
.modal-loading .modal-body {
    position: relative;
}

.modal-loading .modal-body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-loading .modal-body::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2rem;
    height: 2rem;
    margin: -1rem 0 0 -1rem;
    border: 0.25rem solid #f3f3f3;
    border-top: 0.25rem solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1001;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal with Success Theme */
.modal-success .modal-header {
    background-color: #28a745;
    color: white;
}

.modal-success .modal-title {
    color: white;
}

.modal-success .btn-close {
    filter: invert(1);
}

/* Modal with Warning Theme */
.modal-warning .modal-header {
    background-color: #ffc107;
    color: #212529;
}

.modal-warning .modal-title {
    color: #212529;
}

/* Modal with Danger Theme */
.modal-danger .modal-header {
    background-color: #dc3545;
    color: white;
}

.modal-danger .modal-title {
    color: white;
}

.modal-danger .btn-close {
    filter: invert(1);
}

/* Modal with Info Theme */
.modal-info .modal-header {
    background-color: #17a2b8;
    color: white;
}

.modal-info .modal-title {
    color: white;
}

.modal-info .btn-close {
    filter: invert(1);
}

/* Modal Scrollbar Styling */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

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

.modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Modal Focus Management */
.modal[tabindex="-1"] {
    outline: 0;
}

.modal .modal-dialog {
    outline: 0;
}

/* Modal Accessibility */
.modal[aria-hidden="true"] {
    display: none !important;
}

/* Modal with Custom Animation */
.modal-fade-scale .modal-dialog {
    transform: scale(0.7);
    transition: transform 0.3s ease-out;
}

.modal-fade-scale.show .modal-dialog {
    transform: scale(1);
}

/* Modal with Slide from Right */
.modal-slide-right .modal-dialog {
    position: fixed;
    right: 0;
    top: 0;
    margin: 0;
    height: 100vh;
    max-width: 400px;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}

.modal-slide-right.show .modal-dialog {
    transform: translateX(0);
}

/* Modal with Slide from Left */
.modal-slide-left .modal-dialog {
    position: fixed;
    left: 0;
    top: 0;
    margin: 0;
    height: 100vh;
    max-width: 400px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
}

.modal-slide-left.show .modal-dialog {
    transform: translateX(0);
}

/* Modal with Slide from Top */
.modal-slide-top .modal-dialog {
    margin: 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease-out;
}

.modal-slide-top.show .modal-dialog {
    transform: translateY(0);
}

/* Modal with Slide from Bottom */
.modal-slide-bottom .modal-dialog {
    margin: 0;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.modal-slide-bottom.show .modal-dialog {
    transform: translateY(0);
}

/* Responsive Modal Adjustments */
@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-sm {
        max-width: calc(100% - 1rem);
    }
    
    .modal-lg,
    .modal-xl {
        max-width: calc(100% - 1rem);
    }
}

/* Modal Print Styles */
@media print {
    .modal {
        position: static !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    .modal-dialog {
        position: static !important;
        width: 100% !important;
        margin: 0 !important;
        transform: none !important;
    }
    
    .modal-content {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
    
    .modal-backdrop {
        display: none !important;
    }
    
    .btn-close {
        display: none !important;
    }
}

.result-list-table td{
    vertical-align: middle !important;
}

/* Auth Pages Background Image */
body {
    background-image: url('/dealer/img/bg-photo-2.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

/* Add screen filter overlay to the background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.15) 0%, 
        rgba(0, 0, 0, 0.1) 25%, 
        rgba(0, 0, 0, 0.15) 50%, 
        rgba(0, 0, 0, 0.2) 75%, 
        rgba(0, 0, 0, 0.15) 100%
    );
    z-index: -1;
    pointer-events: none;
}

/* Ensure the main container has proper background overlay for readability */
main.d-flex.w-100 {
    background: rgba(0, 0, 0, 0.1);
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Make sure the auth content is readable over the background */
.card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Ensure text is readable */
.text-center h1,
.text-center p,
.text-center a {
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Style the links in auth pages */
.text-center a {
    color: #fff !important;
    text-decoration: underline;
    font-weight: 500;
}

.text-center a:hover {
    color: #f8f9fa !important;
    text-decoration: none;
}

/* Additional screen filter effects for enhanced visual appeal */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, 
        transparent 0%, 
        rgba(0, 0, 0, 0.05) 50%, 
        rgba(0, 0, 0, 0.1) 100%
    );
    z-index: -1;
    pointer-events: none;
}

/* Add a subtle vignette effect */
body {
    box-shadow: inset 0 0 200px rgba(0, 0, 0, 0.1);
}

/* Enhanced backdrop filter for the main content area */
main.d-flex.w-100::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.02) 0%, 
        transparent 25%, 
        transparent 75%, 
        rgba(0, 0, 0, 0.02) 100%
    );
    z-index: -1;
    pointer-events: none;
}
