.dataTable img,
.logoimg {
    width: 100px !important;
    height: 100px !important;
}


.style-8::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-image: -webkit-gradient(linear,
            left bottom,
            left top,
            color-stop(0.44, #000000
                /* black theme */
            ),
            color-stop(0.72, #000000
                /* black theme */
            ),
            color-stop(0.86, #000000
                /* black theme */
            ));
}

.navbar-light .navbar-nav .nav-link {
    color: #000000
        /* black theme */
    ;
}



.btn.grid-btn i {
    color: #000000
        /* black theme */
    ;
}

.header-dropdown .btn-default {
    background-color: #fff !important;
    border-color: none !important;
    color: #000000
        /* black theme */
        !important;
    border: none !important;
}

.card-success:not(.card-outline) .card-header {
    background-color: #fff;
    color: #000000
        /* black theme */
        !important;
    padding: 20px !important;
    border-bottom: solid 1px #ddd;
    border-radius: 20px 20px 0 0;
}

.card-header i {
    color: #000000
        /* black theme */
        !important;
}

.card-title {
    float: left;
    font-size: 22px;
    font-weight: 400;
    margin: 0;
}

h3.card-title {
    color: #000000
        /* black theme */
        !important;
}

.bg-purple {
    background-color: #000000
        /* black theme */
        !important;
    color: #fff !important;
}

.bg-orange {
    background-color: #000000
        /* black theme */
        !important;
    color: #fff !important;
}

.file-input>.button {
    display: inline-block;
    cursor: pointer;
    background: #000000
        /* black theme */
    ;
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    margin-right: 8px;
    height: 45px;
}

.card-default {
    background-color: transparent;
    color: #000000
        /* black theme */
    ;
}

.diff-box .m-title-row {
    background-color: #000000
        /* black theme */
    ;
    color: #fff;
    padding-top: 3px;
    border-radius: 2px;
    padding: 10px 30px;
}

.diff-box .m-title-row tr th {
    background-color: #000000
        /* black theme */
        !important;
}

/* .small-box>.small-box-footer {
    padding: 20px 15px;
    position: relative;
    text-align: left;
    text-decoration: none;
    z-index: 10;
    border-top: solid 1px #ddd;
    background: #fff;
    color: #000000 /* black theme */
;
}

*/ a {
    color: #000000
        /* black theme */
    ;
    text-decoration: none;
    background-color: transparent;
}

[class*=sidebar-dark-] .nav-sidebar>.nav-item.menu-open>.nav-link,
[class*=sidebar-dark-] .nav-sidebar>.nav-item:hover>.nav-link,
[class*=sidebar-dark-] .nav-sidebar>.nav-item>.nav-link:focus,
[class*=sidebar-dark-] .nav-treeview>.nav-item>.nav-link:focus,
[class*=sidebar-dark-] .nav-treeview>.nav-item>.nav-link:hover {
    background-color: #000000
        /* black theme */
    ;
    transition: all .4s ease;
    -webkit-transition: all .4s ease;
    border-radius: 6px !important;
    color: #fff !important;
}

.nav-item .nav-link {
    color: black !important;
}

.select2-container--default .select2-selection--single {
    border: 1px solid #ced4da;
    padding: 15px 15px;
    height: 38px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    margin-left: -15px;
    margin-top: -5px;
    top: 50%;
    width: 0;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
input[type="tel"],
select {
    padding: 0 15px !important;
    height: 40px !important;
    /* line-height: 38px !important; */

}

select {
    border: 1px solid #ced4da !important;
}

.list-group .list-group-item {
    border: 1px solid #000000
        /* black theme */
    ;
    padding: 10px 15px;
    height: 45px;
    border-radius: 8px !important;
    /* line-height: 38px !important; */
    margin: 0 15px 0 0;
}



select.select2 {
    border: 1px solid #000000
        /* black theme */
    ;
    padding: 0 15px;
    height: 45px;
    border-radius: 8px;

    /* line-height: 38px !important; */
}

.input-group .hasDatepicker {
    border: 1px solid #000000
        /* black theme */
    ;
    padding: 0 15px;
    height: 45px;
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}


.select2-container--default .select2-selection--multiple {
    padding: 0 0;
    border: 1px solid #ced4da !important;
}

textarea.form-control {
    border: 1px solid #000000
        /* black theme */
    ;
    padding: 10px 15px;
    min-height: 45px;
    /* line-height: 38px !important; */
}

.badge-primary {
    background-color: #000000
        /* black theme */
    ;
}




.callout.callout-info {
    border-left-color: #000000
        /* black theme */
    ;
}

.head-title h5 {
    color: #000000
        /* black theme */
    ;
    font-size: 35px;
    padding: 15px 0;
}

.dataTables_filter input[type="search"],
.dataTables_filter input[type="search"]:focus {
    width: 230px !important;
    border: solid 1px #000000
        /* black theme */
    ;
    height: 40px;
    border-radius: 8px;
}

.dataTables_wrapper select {
    width: 80px !important;
    border: solid 1px #000000
        /* black theme */
    ;
    height: 40px;
    border-radius: 8px;
}

.dataTables_wrapper label {
    font-size: 20px;
    color: #000000
        /* black theme */
    ;
}


.table .btn-success i,
.table .btn-danger i {
    color: #000000
        /* black theme */
    ;
}

th {
    background-color: #000000
        /* black theme */
        !important;
    color: white;
}

.page-item.active .page-link {
    z-index: 1;
    color: #fff;
    background-color: #000000
        /* black theme */
    ;
    border-color: #000000
        /* black theme */
    ;
}

.page-link {
    color: #000000
        /* black theme */
    ;
    padding: 0.5rem 0.65rem;
}

h5 i {
    padding: 0 10px;
}

.btn-primary,
.btn-success {
    background-color: #000000
        /* black theme */
    ;
    border: 1px solid #000000
        /* black theme */
    ;
    font-size: 16px;
    color: #ffffff;
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
    transition: 0.3s all;
    -webkit-transition: 0.3s all;
    -ms-transition: 0.3s all;
    -moz-transition: 0.3s all;
}

.btn-gh-group {
    float: right !important;
}

.btn-add-new {
    position: absolute;
    z-index: 10;
}

.btn-gh {
    margin: 10px;
}

.btn-primary:hover,
.btn-success:hover,
.btn-primary:active {
    color: #000000
        /* black theme */
    ;
    background-color: #fff;
    border-color: #000000
        /* black theme */
    ;
}

.btn-primary:active,
.btn-primary:focus {
    color: #000000
        /* black theme */
        !important;
    background: #fff !important;
    border-color: #000000
        /* black theme */
        !important;
}

.btn-success:not(:disabled):not(.disabled).active,
.btn-success:not(:disabled):not(.disabled):active,
.show>.btn-success.dropdown-toggle {
    color: #fff;
    background-color: #000000
        /* black theme */
    ;
    border-color: #000000
        /* black theme */
    ;
}


.card-body label {
    color: #000 !important;
    font-weight: 400 !important;
}


.modal-dialog .modal-header h5 {
    color: #000000
        /* black theme */
    ;
    font-size: 22px;
    font-weight: 400;
}

.modal-body label {
    color: #000000
        /* black theme */
    ;
    font-weight: 500 !important;
}

table.dataTable.dtr-inline.collapsed>tbody>tr[role="row"]>td:first-child:before,
table.dataTable.dtr-inline.collapsed>tbody>tr[role="row"]>th:first-child:before {
    background-color: #000000
        /* black theme */
    ;
}

[class*=sidebar-dark-] {
    /* background: linear-gradient(90deg,#0c2646 0,#204065 60%,#2a5788); */
    background: #f9fafc;
}

.main-header {
    background-color: #000000
        /* black theme */
    ;
}


.brand-link {
    background-color: #000000
        /* black theme */
    ;
}

.main-header .nav-link {
    color: #fff !important;
}


.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 11px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 6px !important;
}

.vote-buttons {
    margin-top: 15px;
}


.card-primary.card-outline {
    border-top: 3px solid #000000
        /* black theme */
    ;
}

.user-panel {
    padding-top: 18px;
    display: flex;
}

.user-panel>.info {
    position: static;
    white-space: normal;
    width: 80%;
}

.user-panel>.info>p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-link {
    font-size: 19px;
    text-align: center;
}

.box-title {
    display: inline-block;
    font-size: 25px;
    margin: 0;
    line-height: 1;
    color: #000000
        /* black theme */
        !important;
    margin: 20px 0px !important;
    border-bottom: 1px solid #000000
        /* black theme */
    ;
}

h3.main-title {
    color: #747474;
    font-family: "Darker Grotesque", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: #f1f1f1;
    padding: 8px 10px;
    margin-top: 20px;
}

#role_table th:nth-child(1) {
    width: 50% !important;
}

.custom-control-input-danger:checked~.custom-control-label::before {
    border-color: #000000
        /* black theme */
        !important;
}

#newUserEntry .card-primary.card-outline {
    border: none;
}

.card-primary.card-outline-tabs>.card-header a.active,
.card-primary.card-outline-tabs>.card-header a.active:hover,
.nav-tabs.nav-justified a.active {
    border-top: 3px solid #000000
        /* black theme */
        !important;
}

.user-header {
    background-color: #000000
        /* black theme */
        !important;
}

.btn-approve-sc {
    color: #fff !important;
    background-color: green !important;
    border-color: green;
}

.btn-approve-rj {
    color: #fff !important;
    background-color: red !important;
    border-color: red;
}

.table>tbody>tr>td,
.table>tbody>tr>th {
    vertical-align: middle;
}

.widget-dashboard .widget-user-username {
    margin-top: 12px !important;
    font-weight: 500 !important;
}

.widget-dashboard .card-footer {
    text-align: center !important;
    vertical-align: middle !important;
}

.card-ic {
    position: absolute;
    margin: auto;
    text-align: center;
    z-index: 999;
    background-color: #fff;
    height: 100px;
    font-size: 35px;
    line-height: 104px;
    right: 0;
    left: 0;
    width: 104px;
    border-radius: 52px;
    top: 80px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, .16), 0 3px 6px rgba(0, 0, 0, .23) !important;
}


table .badge {
    font-size: 15px;
}

.file-upload {
    position: relative;
    overflow: hidden;
    margin: 10px;
}

.file-upload {
    position: relative;
    overflow: hidden;
    margin: 20px;
    width: 100%;
    max-width: 150px;
    text-align: center;
    color: #fff;
    background: #000000
        /* black theme */
    ;
    border: 2px solid #888;
    padding: .85em 1em;
    display: inline;
    -ms-transition: all 0.2s ease;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.file-upload input.file-input {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    padding: 0;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    filter: alpha(opacity=0);
    height: 100%;
}

.user-details .card-header {
    background-color: #000000
        /* black theme */
        !important;
}

.user-details h3.card-title {
    color: white !important;
}

.leave-info .widget-user-username {
    margin-left: 0px !important;
}

.leave-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-primary:not(.card-outline)>.card-header {
    background-color: #000000
        /* black theme */
        !important;
}

.leave-header i {
    color: #fff !important;
}

.leave-add-button {
    display: flex;
    justify-content: end;
    margin: 0px 0px 20px 0px;
}

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

.add-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-scroll {
    overflow-y: scroll;
    height: 570px;
}

.salary-o-popup,
.calendar-popup {
    max-width: 1200px;
}

.generate-buttons {
    display: flex;
    justify-content: end;
    align-items: center;
    margin-bottom: 20px;
}

.generate-buttons .btn {
    margin: 2px;
}

#CalendarContent th {
    background-color: #fff !important;
}

#CalendarContent button {
    background-color: #000000
        /* black theme */
        !important;
}

#CalendarContent button.fc-button-active {
    background-color: #fff !important;
    color: #000000
        /* black theme */
        !important;
}

.fc-daygrid-event .fc-event-title {
    white-space: normal;
    text-overflow: ellipsis;
    max-height: none !important;
}

.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link.active,
[class*=sidebar-dark-] .nav-treeview>.nav-item>.nav-link.active {
    background-color: #000000
        /* black theme */
        !important;
    color: #fff !important;
}

.main-title-flex {
    display: flex;
    justify-content: space-between;
}

[class*=sidebar-dark-] .nav-sidebar>.nav-item.menu-open>.nav-link {
    background-color: #fff !important;
    color: #000 !important;
}

.nav-treeview {
    margin-left: 18px;
}

.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
    width: 50% !important;
    height: 30px !important;
}

.datepicker {
    z-index: 99999 !important;
}

.user-status-indicator {
    font-size: 7px !important;
    margin-left: 10px !important;
}

.tooltip {
    z-index: 100000000;
}

.notification .dropdown-item {
    background: transparent !important;
    color: #000 !important;
    white-space: normal;
}

.notification {
    max-height: 300px;
    overflow-y: scroll;
}

.salary-pagination {
    float: right;
}

.ui-timepicker-container {
    z-index: 11111111111 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    color: #000 !important;
}


#ct_table .table-timeslots {
    margin: 5px 0px;
    display: flex !important;
    cursor: pointer !important;
}

#ct_table .btn {
    padding: 0rem .75rem;
}

#ct_table .badge {
    line-height: 17px;
}

.addsub,
.addproxy {
    cursor: pointer !important;
}

.nav-link>p>.right {
    top: 14px !important;
}


#ajaxtable th,
#ct_table th {
    min-width: 197px !important;
    position: sticky;
    top: -1px;
    z-index: 111;
}

#ajaxtable,
#ct_table {
    display: block;
    max-height: 600px;
    overflow-y: scroll;
}

#salary_add_table th {
    min-width: 150px;
}

.table-bordered td,
.table-bordered th {
    border: 1px solid lightslategray;
}


@media (max-width: 576px) {

    .fc-toolbar-chunk,
    .dataTables_info {
        padding: 10px !important;
    }

    .generate-buttons {
        display: block;
    }

    .btn-extra {
        position: unset !important;
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }

    .bs-stepper-header {
        display: block !important;
    }
}

input[type=submit] {
    margin-left: 10px;
}

.timepicker-content .btn {
    line-height: 10px !important;
}

.timepicker-content input {
    padding: 0px !important;
}

.filter-btn {
    line-height: 24px !important;
    margin-top: 30px;
}

/* #ajaxtimetable .table>tbody>tr>td,
#ajaxtimetable .table>tbody>tr>th {
    vertical-align: top;
} */

.swal2-container.swal2-backdrop-show,
.swal2-container.swal2-noanimation {
    background: rgba(1, 1, 1, .8) !important;
}

.external-event,
.external-event input {
    cursor: pointer !important;
}

textarea.form-control {
    border: 1px solid #ced4da;
}

.is-invalid~.select2-container--default .select2-selection--single {
    border: 1px solid #dc3545;
}

table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before {
    background-color: #000000
        /* black theme */
    ;
}

.step.active .bs-stepper-circle {
    background-color: #000000
        /* black theme */
    ;
}

.step.active span.bs-stepper-label {
    color: #000000
        /* black theme */
    ;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    width: 13em;
}

.timepicker-picker table td a span,
.timepicker-picker table td,
.timepicker-picker table td span {
    height: 20px !important;
    line-height: 20px !important;
    vertical-align: middle;
    width: 30px !important;
    padding: 0px !important;
}

.table td,
.table th {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table th .table-search {
    height: 30px !important;
}

.search-row th {
    background-color: #ffffff !important;
}

.dataTables_filter {
    display: none;
}

th.sorting {
    min-width: 100px;
}

.lesson-title {
    display: flex;
}

.lesson-action-btn i {
    color: #fff !important;
}

.lesson-action-btn {
    display: flex;
}

.content-body {
    overflow-y: scroll;
    max-height: 400px;
}

.border-lesson-card {
    border: #000000
        /* black theme */
        1px solid;
}

.timetabe-action-btn .hw-badge {
    font-size: 8px;
}

.content-body-sm {
    overflow-y: scroll;
    max-height: 200px;
}

.content-body-sm img {
    width: 100%;
}

.border-lesson-card img {
    width: auto;
    height: auto;
    max-width: 100%;
}

.dataTables_length select {
    height: 30px !important;
}

#yearChange {
    background-color: #000000
        /* black theme */
    ;
    border: #000000
        /* black theme */
        !important;
    color: white;
}

.btn-extra {
    position: absolute;
    right: 20px;
    z-index: 1;
}

.staff-home .card-title,
.student-home .card-title {
    color: #000 !important;
}

.active-day {
    background-color: lightgray;
}

#ui-datepicker-div {
    z-index: 111111 !important;
}

::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #000000
        /* black theme */
    ;
    border-radius: 20px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.page-loader {
    display: none;
}

.page-loader .loader {
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    opacity: 0.7;
    position: fixed;
    background: #272727;
    z-index: 9999;
}

.page-loader .cube {
    color: white;
    width: 25px;
    height: 25px;
    margin-right: 15px;
    animation: pulse 1s infinite;
    border-radius: 100%;
    justify-content: center;
    align-items: center;
    display: flex;
}

.page-loader .one {
    background-color: #1996d8;
}

.page-loader .two {
    background-color: #000000
        /* black theme */
    ;
    animation-delay: 0.2s;
}

.page-loader .three {
    background-color: #000000
        /* black theme */
    ;
    animation-delay: 0.4s;
}

.page-loader .four {
    background-color: #128741;
    animation-delay: 0.6s;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5);
    }
}

figure table,
figure table td {
    border: 1px solid black !important;
}

.dropzone {
    border: 2px dashed #4A90E2;
    border-radius: 10px;
    background-color: #f9f9f9;
    padding: 40px;
    text-align: center;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    color: #666;
    transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
    margin-bottom: 20px;
}

.dropzone:hover {
    background-color: #e6f7ff;
    border-color: #3399ff;
}

.bs-stepper-header {
    flex-wrap: wrap;
}

.fixed-column {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.select2 {
    width: 100% !important;
}

.sidebar {
    scrollbar-color: transparent transparent;
}

.card.fixed-width-card {
    max-height: 400px;
    min-height: 400px;
    overflow-y: auto;
}

.nav-sidebar .nav-link>.right,
.nav-sidebar .nav-link>p>.right {
    right: 1.5em;
}

.staff-home .info-box .info-box-number {
    font-size: 30px;
    margin-top: -5px;
}

.staff-home .info-box-content a {
    color: black;
    margin-top: -5px;
}

.staff-home .info-box-text {
    font-weight: 400;
    font-size: 20px;
}

.todo-list>li a {
    color: #212529;
    font-weight: lighter;
}

.todo-list>li {
    border: none;
}

.dataTables_empty .fixed-column {
    max-width: 100% !important;
}

.bottom-copyright {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
}

.info-box .info-box-icon {
    background-color: #000 !important;
}

a {
    color: black;
}

.permission-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rann-dass-logo {
    mix-blend-mode: multiply;
    background-color: black;
}

#sidebarIconsModal .modal-body a {
    text-decoration: none;
    color: #333;
    display: block;
}

#sidebarIconsModal .modal-body a:hover {
    color: white;
    background-color: black;

}

#sidebarIconsModal .modal-body i {
    display: block;
    margin-bottom: 5px;
}

#sidebarIconsModal .modal-body p {
    font-size: 14px;
    margin: 0;
}

.modal-search {
    padding: 10px 0;
    background-color: #f8f9fa;

}

#sidebarSearch {
    max-width: 800px;

}

.lang-toggle .active {
    color: orange !important;
}

video,
.canvas-face {
    transform: scaleX(-1) !important;
}

.camera-wrapper {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 3 / 4;
}

.camera-wrapper video,
.camera-wrapper canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.canvas-face {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

@media (min-width: 769px) {
    .main-header .navbar {
        flex-wrap: nowrap !important;
    }

    .main-header .navbar-nav {
        flex-wrap: nowrap !important;
    }
}

.d-none.d-md-block .mobile-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.d-none.d-md-block .mobile-menu-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.d-none.d-md-block .mobile-menu-item i {
    width: 35px;
    font-size: 18px;
    color: #495057;
    flex-shrink: 0;
}

.d-none.d-md-block .mobile-menu-item > span {
    flex: 0 0 auto;
    font-weight: 500;
    color: #212529;
    font-size: 14px;
    margin-right: auto;
    padding-left: 5px;
}

/* Language Switch Buttons - Desktop Dropdown */
.d-none.d-md-block .lang-switch-mobile {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.d-none.d-md-block .lang-switch-mobile .btn {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    min-width: 45px;
}

.d-none.d-md-block .lang-switch-mobile .btn-primary {
    background-color: #000 !important;
    border-color: #000 !important;
}

.d-none.d-md-block .lang-switch-mobile .btn-outline-secondary {
    color: #6c757d;
    border-color: #dee2e6;
}
.d-none.d-md-block .custom-control-switch {
    padding-left: 0 !important;
    display: flex;
    align-items: center;
    margin: 0;
    flex-shrink: 0;
    position: relative;
    min-height: 26px;
}

.d-none.d-md-block .custom-control-switch .custom-control-input {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.d-none.d-md-block .custom-control-switch .custom-control-label {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.d-none.d-md-block .custom-control-switch .custom-control-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 26px;
    border-radius: 13px;
    background-color: #ced4da;
    transition: background-color 0.3s ease;
    border: none;
}

.d-none.d-md-block .custom-control-switch .custom-control-label::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: none;
}

.d-none.d-md-block .custom-control-switch .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #007bff;
}

.d-none.d-md-block .custom-control-switch .custom-control-input:checked ~ .custom-control-label::after {
    transform: translateX(24px);
}

.d-none.d-md-block .custom-control-switch .custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.main-header .navbar {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
}

.main-header .navbar-nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
}

.navbar-nav.ml-auto {
    display: flex !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}
@media (max-width: 768px) {
    .main-header .navbar {
        padding: 6px 8px !important;  
        min-height: 45px;  
        overflow: hidden !important; 
    }

    .main-header .navbar-nav {
        flex-wrap: nowrap !important; 
    }

    .navbar-nav.ml-auto {
        justify-content: flex-end;
        margin-top: 0 !important; 
        flex-wrap: nowrap !important;
    }

    .navbar-nav.ml-auto .nav-link i {
        font-size: 16px;
    }



    .badge.navbar-badge {
        font-size: 9px;
        padding: 2px 4px;
        top: 8px;
        right: 5px;
    }

    .navbar-nav.ml-auto > .nav-item.lang-toggle,
    .navbar-nav.ml-auto > li:has(.toggle) {
        display: none !important;
    }

    .user-menu .dropdown-menu li.d-md-none {
        display: block !important;
    }

    .navbar-nav.ml-auto .nav-item {
        margin: 0 2px !important; 
    }

    .navbar-nav.ml-auto .nav-link {
        padding: 6px 8px !important; 
    }

    .navbar-nav.ml-auto .user-image {
        width: 28px !important; 
        height: 28px !important;
    }

    .navbar-nav.ml-auto .user-menu .d-none.d-md-inline {
        display: none !important;
    }

    .navbar-nav.ml-auto .user-menu .dropdown-menu {
        min-width: 300px !important;
        max-width: 95vw !important;
        right: 0 !important;
        left: auto !important;
        background: #fff !important;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .user-menu .dropdown-menu .user-header + li {
        padding: 15px !important;
        background: #fff !important;
    }

    /* Mobile Menu Items */
    .mobile-menu-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 0;
        border-bottom: 1px solid #e9ecef;
    }

    .mobile-menu-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .mobile-menu-item i {
        width: 35px;
        font-size: 18px;
        color: #495057;
        flex-shrink: 0;
    }

    .mobile-menu-item > span {
        flex: 0 0 auto;
        font-weight: 500;
        color: #212529;
        font-size: 14px;
        margin-right: auto;
        padding-left: 5px;
    }

    .mobile-menu-item .lang-switch-mobile {
        display: flex;
        gap: 8px;
        flex-shrink: 0;
    }

    .mobile-menu-item .lang-switch-mobile .btn {
        padding: 6px 16px;
        font-size: 13px;
        font-weight: 600;
        border-radius: 6px;
        min-width: 45px;
    }

    .mobile-menu-item .lang-switch-mobile .btn-primary {
        background-color: #000 !important;
        border-color: #000 !important;
    }

    .mobile-menu-item .lang-switch-mobile .btn-outline-secondary {
        color: #6c757d;
        border-color: #dee2e6;
    }

    .mobile-menu-item select {
        max-width: 130px;
        height: 34px !important;
        padding: 5px 10px !important;
        font-size: 13px;
        border: 1px solid #ced4da;
        border-radius: 6px;
        background: #fff;
        flex-shrink: 0;
        pointer-events: auto !important;
        z-index: 1050 !important;
        position: relative;
    }

    .dropdown-menu {
        overflow: visible !important;
    }

    .dropdown-menu.show {
        display: block !important;
    }

    .mobile-menu-item .custom-control-switch {
        padding-left: 0 !important;
        display: flex;
        align-items: center;
        margin: 0;
        flex-shrink: 0;
        position: relative;
        min-height: 26px;
    }

    .mobile-menu-item .custom-control-switch .custom-control-input {
        position: absolute;
        left: -9999px;
        opacity: 0;
    }

    .mobile-menu-item .custom-control-switch .custom-control-label {
        position: relative;
        display: inline-block;
        width: 50px;
        height: 26px;
        margin: 0;
        cursor: pointer;
        user-select: none;
    }

    .mobile-menu-item .custom-control-switch .custom-control-label::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 50px;
        height: 26px;
        border-radius: 13px;
        background-color: #ced4da;
        transition: background-color 0.3s ease;
        border: none;
    }

    .mobile-menu-item .custom-control-switch .custom-control-label::after {
        content: '';
        position: absolute;
        top: 3px;
        left: 3px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease;
        border: none;
    }

    .mobile-menu-item .custom-control-switch .custom-control-input:checked ~ .custom-control-label::before {
        background-color: #007bff;
    }

    .mobile-menu-item .custom-control-switch .custom-control-input:checked ~ .custom-control-label::after {
        transform: translateX(24px);
    }

    .mobile-menu-item .custom-control-switch .custom-control-input:focus ~ .custom-control-label::before {
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

    /* User Footer */
    .user-menu .dropdown-menu .user-footer {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        padding: 15px !important;
        background: #f8f9fa !important;
        border-radius: 0 0 8px 8px;
        margin: 0 !important;
    }

    .user-menu .dropdown-menu .user-footer .btn {
        flex: 1;
        font-size: 13px;
        padding: 10px 12px;
        font-weight: 600;
        border-radius: 6px;
    }

    .user-menu .dropdown-menu .user-footer .btn-primary {
        background-color: #000 !important;
        border-color: #000 !important;
    }

    .user-menu .dropdown-menu .dropdown-divider {
        margin: 0 !important;
        border-top: 2px solid #e9ecef;
    }
}

@media (max-width: 576px) {
    .main-header .navbar {
        padding: 5px 8px !important; 
        min-height: 45px;
    }


    .navbar-nav.ml-auto .nav-link {
        padding: 5px 6px !important; 
    }

    .navbar-nav.ml-auto .nav-link i {
        font-size: 14px;
    }

    .navbar-nav.ml-auto .user-image {
        width: 26px !important; 
        height: 26px !important;
    }

    .navbar-nav.ml-auto .nav-item {
        margin: 0 1px !important;
    }

    .user-menu .dropdown-menu {
        min-width: 280px !important;
    }

    .mobile-menu-item {
        padding: 10px 0;
    }

    .mobile-menu-item i {
        width: 25px;
        font-size: 14px;
    }

    .mobile-menu-item > span {
        font-size: 13px;
    }

    .user-menu .dropdown-menu .user-footer .btn {
        font-size: 12px;
        padding: 6px 8px;
    }
}

@media (max-width: 400px) {


    .navbar-nav.ml-auto .nav-link {
        padding: 4px 5px !important;
    }

    .navbar-nav.ml-auto .nav-link i {
        font-size: 13px;
    }

    .navbar-nav.ml-auto .user-image {
        width: 24px !important;
        height: 24px !important;
    }
}

@media (min-width: 769px) {
    .user-menu .dropdown-menu li.d-md-none {
        display: none !important;
    }
}


html, body, .btn-primary, .btn-success {
    font-size: 15px !important;
}