.dropdown-toggle.custom-dropdown-toggle::after {
    border: 0;
}

.dropdown-toggle.custom-dropdown-toggle+.dropdown-menu .dropdown-item {
    padding-top: .5rem;
    padding-bottom: .5rem;
}

.bg-primary-gradient {
    background: #211c0c;
    /* background: #FFD427;
    background: -webkit-linear-gradient(90deg, rgba(255, 212, 39, 1) 0%, rgba(237, 221, 83, 1) 100%);
    background: -moz-linear-gradient(90deg, rgba(255, 212, 39, 1) 0%, rgba(237, 221, 83, 1) 100%);
    background: linear-gradient(90deg, rgba(255, 212, 39, 1) 0%, rgba(237, 221, 83, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#FFD427", endColorstr="#EDDD53", GradientType=1); */
}

.swal2-popup .btn,
.btn:not(.btn-outline):not(.btn-dashed):not(.border-hover):not(.border-active):not(.btn-flush):not(.btn-icon).btn-primary,
.btn:not(.btn-outline):not(.btn-dashed):not(.border-hover):not(.border-active):not(.btn-flush):not(.btn-icon).btn-danger {
    padding: calc(0.55rem + 1px) calc(1.25rem + 1px);
    font-size: .92rem;
}

.select2-container--bootstrap5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice {
    background-color: rgba(var(--bs-primary-rgb), .5)
}

/*
* dataTable
*/
table.table-bordered.dataTable th,
table.table-bordered.dataTable td {
    border-color: #e2e8f0;
    border-style: solid;
    border-width: 0 0px 1px 1px;
    padding: .75rem;
    color: #64748b;
    font-weight: 400;
    vertical-align: middle;
}

table.table-bordered.dataTable thead tr th {
    color: #555;
    font-weight: 500;
}

table.table-bordered.dataTable tbody tr:last-child td,
table.table-bordered.dataTable tbody tr:last-child th,
table.table-bordered.dataTable tfoot tr:last-child td,
table.table-bordered.dataTable tfoot tr:last-child th {
    border-bottom: 1px solid #e2e8f0 !important;
}

table.dataTable.table-hover>tbody>tr:hover>* {
    box-shadow: inset 0 0 0 9999px var(--bs-table-striped-bg);
    --bs-table-accent-bg: transparent !important;
}

table.dataTable .btn-icon+.btn-icon {
    margin-left: 0.5rem;
}

table.table-style-1 thead th,
table.table-style-1 tbody th {
    font-weight: 700;
}

.table:not(.table-bordered)>:not(:last-child)>:last-child>* {
    border-bottom-color: inherit;
}

table.table-bordered.dataTable tr:first-child td,
table.table-bordered.dataTable tr:first-child th {
    border-top: 1px solid #e2e8f0;
}

table.table-bordered.dataTable td:first-child,
table.table-bordered.dataTable th:first-child,
table.table-bordered.dataTable td:last-child,
table.table-bordered.dataTable th:last-child,
table.table-bordered.dataTable tr td,
table.table-bordered.dataTable tr th {
    border-left-width: 0px;
    border-right-width: 0px;
}

table.table-bordered.dataTable thead tr:first-child td,
table.table-bordered.dataTable thead tr:first-child th {
    border-top-width: 0px;
}

table.table-bordered.dataTable thead tr:last-child td,
table.table-bordered.dataTable thead tr:last-child th {
    border-bottom-width: 0px;
}

/* table.table-bordered.dataTable>tbody>tr:nth-child(odd)>* {
    box-shadow: inset 0 0 0 9999px var(--bs-table-striped-bg);
} */
table.dataTable.table-striped>tbody>tr.odd>* {
    box-shadow: none;
}

div.dataTables_scrollHeadInner table.table-bordered tr th:first-child {
    border-left: 0 !important;
}

.table.style-2 th,
.table.style-2 td {
    padding: .5rem;
}

.table.style-2 td .badge {
    margin: .25rem .015rem;
    margin-top: 0;
}

/*
* Gallery
*/
.gallery ul {
    display: flex;
    flex-flow: wrap;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
}

.gallery ul li {
    margin-bottom: 1rem;
}

.gallery ul li .img-fluid {
    width: 100%;
}

@media screen and (min-width:576px) {
    .gallery ul li {
        width: calc(100%/2 - .5rem);
    }

    .gallery ul li {
        margin-right: 1rem;
    }

    .gallery ul li:nth-child(3n) {
        margin-right: 1rem;
    }

    .gallery ul li:nth-child(2n) {
        margin-right: 0;
    }
}

@media screen and (min-width:768px) {
    .gallery ul li {
        width: calc(100%/3 - .67rem);
    }

    .gallery ul li:nth-child(4n),
    .gallery ul li:nth-child(2n) {
        margin-right: 1rem;
    }

    .gallery ul li:nth-child(3n) {
        margin-right: 0;
    }
}

@media screen and (min-width:992px) {
    .gallery ul li {
        width: calc(100%/4 - .75rem);
    }

    .gallery ul li:nth-child(5n),
    .gallery ul li:nth-child(3n),
    .gallery ul li:nth-child(2n) {
        margin-right: 1rem;
    }

    .gallery ul li:nth-child(4n) {
        margin-right: 0;
    }
}

@media screen and (min-width:1200px) {
    .gallery ul li {
        width: calc(100%/5 - .8rem);
    }

    .gallery ul li:nth-child(5n) {
        margin-right: 0;
    }

    .gallery ul li:nth-child(4n) {
        margin-right: 1rem;
    }
}

/*
* list-1
*/
.list-1 li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: .5rem;
}

.list-1 li::before {
    position: absolute;
    top: 7px;
    left: 0;
    content: '';
    background-color: #B5B5C3;
    width: 6px;
    height: 6px;
    border-radius: 100%;
}

/*
* Form Group
*/
.form .form-group {
    margin-bottom: 1rem;
}

/*
* Form Select | Multiple
*/

.select2-container--bootstrap5 .select2-selection--multiple:not(.form-select-sm):not(.form-select-lg) .select2-selection__choice .select2-selection__choice__display {
    font-size: .875rem;
    color: var(--bs-white);
}

.select2-container--bootstrap5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice .select2-selection__choice__remove {
    background-color: var(--bs-white);
    filter: opacity(1);
    opacity: 1;
}


table.dataTable>thead>tr>td:not(.sorting_disabled),
table.dataTable>thead>tr>th:not(.sorting_disabled) {
    padding-right: .75rem;
}


/*
* Popover | Tooltip
*/

.popover {
    --bs-popover-bg: var(--bs-body-color);
    --bs-popover-body-color: var(--bs-white);
}

.popover .popover-body {
    padding: .5rem .75rem;
}

.tooltip {
    opacity: 1;
    --bs-tooltip-bg: var(--bs-body-color);
    --bs-tooltip-color: var(--bs-white);
    --bs-tooltip-padding-x: .75rem;
    --bs-tooltip-padding-y: .5rem;
}

/*
* Menu header
*/

@media screen and (min-width:992px) {
    .app-header-secondary {
        height: 55px !important;
    }

    [data-kt-app-header-stacked=true] .app-header {
        height: auto;
    }
}

/*
* Modal Review
*/
.modal-review .rating {
    direction: rtl;
}

.modal-review .rating input {
    display: none;
}

.modal-review .rating label {
    font-size: 30px;
    line-height: 1;
    color: lightgray;
    cursor: pointer;
}

.modal-review .rating label>i {
    font-size: 1.35rem;
    margin-left: 0.25rem;
    margin-right: 0.25rem;
    color: var(--bs-gray-300);
}

.modal-review .rating input:checked~label>i {
    color: var(--bs-warning);
}

.modal-review .rating input:hover~label,
.modal-review .rating label:hover~label {
    color: var(--bs-warning);
}

.modal-review .fv-plugins-message-container {
    text-align: right;
}
/* Ensure inactive switch is visible */
.form-check-input[type="checkbox"].trail_plan_status {
    background-color: #e9ecef !important;  /* light gray background */
    border: 2px solid #adb5bd !important;  /* visible border */
}

/* When checked */
.form-check-input[type="checkbox"].trail_plan_status:checked {
    background-color: #4caf50 !important;  /* bootstrap primary blue */
    border-color: #4caf50 !important;
}

/* Optional: add hover effect */
.form-check-input[type="checkbox"].trail_plan_status:hover {
    background-color: #dee2e6 !important; 
    border-color: #6c757d !important;
}
