/********** Template CSS **********/
:root {
    --primary: #330099;
    --light: #EFF5FF;
    --dark: #1B2C51;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-black {
    font-weight: 900 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.logo {
    width: 150px;
}

@media (max-width: 992px) {
    .logo {
        width: 150px;
    }
}

.certificate_bg {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: center;
    top: 5px;
}

@media (max-width: 600px) {
    .certificate_bg {
        display: none;
    }
}

.certificate_img {
    width: 80px;
}

.doctor_img {
    width: -webkit-fill-available;
    height: 39vh;
    object-fit: cover;
}

@media (max-width: 600px) {
    .doctor_img {
        height: 53vh;
    }
}

.doctor_img_upload {
    width: 20vh;
    height: 20vh;
    object-fit: cover;
    border-radius: 25%;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    color: #fff !important;
    background-color: #e12454;
}

.wave {
    animation-name: wave-animation;
    /* Refers to the name of your @keyframes element below */
    animation-duration: 2.5s;
    /* Change to speed up or slow down */
    animation-iteration-count: infinite;
    /* Never stop waving :) */
    transform-origin: 70% 70%;
    /* Pivot around the bottom-left palm */
    display: inline-block;
}

@keyframes wave-animation {
    0% {
        transform: rotate(0.0deg)
    }

    10% {
        transform: rotate(14.0deg)
    }

    /* The following five values can be played with to make the waving more or less extreme */
    20% {
        transform: rotate(-8.0deg)
    }

    30% {
        transform: rotate(14.0deg)
    }

    40% {
        transform: rotate(-4.0deg)
    }

    50% {
        transform: rotate(10.0deg)
    }

    60% {
        transform: rotate(0.0deg)
    }

    /* Reset for the last half to pause */
    100% {
        transform: rotate(0.0deg)
    }
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.dropend {
    width: 100%;
}

.dropdown-item {
    padding: .5rem;
}

.dropdown-item.active,
.dropdown-item:active {
    background: #ba343a;
}



.navbar .dropdown-toggle::after {
    display: none;
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #e12454;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media only screen and (max-width: 600px) {
    .side_nav .nav-link {
        text-align: left;
    }

    .side_nav_inner {
        position: fixed;
        height: 100vh;
        width: inherit;
        overflow-y: auto;
    }

    .side_nav .dropdown-menu {
        position: relative !important;
        left: -50px !important;
        background: transparent;
        border-color: transparent;
    }

    .side_nav .dropdown-menu .inner_icon {
        /* color: white; */
    }
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 75px;
}

.navbar .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.header-carousel .owl-carousel-text {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 3rem;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 30px rgba(0, 0, 0, .1);
}

.header-carousel .owl-nav {
    position: absolute;
    width: 200px;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.header-carousel .owl-dots {
    position: absolute;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 15px;
    transition: .5s;
}

.header-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    top: 4px;
    left: 4px;
    background: #FFFFFF;
    border-radius: 5px;
}

.header-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(90deg, rgb(51 0 153 / 50%), rgb(51 0 153 / 50%)), url(../img/images/hospital.jpeg) top center no-repeat;
    background-size: cover;
    background-position: left;
    text-shadow: 0 0 30px rgba(0, 0, 0, .1);
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}


/*** Service ***/
.service_card {
    /* width: 280px; */
    /* height: 360px; */
    border-radius: 15px;
    padding: 1.5rem;
    background: white;
    position: relative;
    display: flex;
    align-items: flex-end;
    transition: 0.4s ease-out;
    box-shadow: 0px 7px 10px rgba(255, 255, 255, 0.5);
}

.service_card:hover {
    transform: translateY(0px);
}

.service_card:hover:before {
    opacity: 1;
}

.service_card:hover .info {
    opacity: 1;
    transform: translateY(10px);
}

.service_card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    background: rgb(51 0 153 / 50%);
    z-index: 2;
    transition: 0.5s;
    opacity: 0;
}

.service_card img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 15px;
}

.service_card .info {
    position: relative;
    z-index: 3;
    color: white;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.5s;
}

.service-item {
    transition: .5s;
}

.service-item:hover {
    margin-top: -5px;
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .08);
}

.service-item .btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    background: #FFFFFF;
    border-radius: 40px;
    white-space: nowrap;
    overflow: hidden;
    transition: .5s;
}

.service-item:hover .btn {
    width: 140px;
}


/*** Feature ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Team ***/
.team-item img {
    position: relative;
    top: 0;
    transition: .5s;
}

.team-item:hover img {
    top: -30px;
}

.team-item .team-text {
    position: relative;
    height: 69px;
    transition: .5s;
}

.team-item:hover .team-text {
    margin-top: -81px;
    height: 150px;
}

.team-item .team-text .team-social {
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-text .team-social {
    opacity: 1;
}

.team-item .team-social .btn {
    display: inline-flex;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 40px;
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Appointment ***/
.bootstrap-datetimepicker-widget.bottom {
    top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
    border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
    font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px;
    border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--primary);
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {

    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {

    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text {
    background: var(--light);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary);
    transform: scale(1);
}

.testimonial-carousel .owl-item .testimonial-text *,
.testimonial-carousel .owl-item .testimonial-item img {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: var(--light) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item img {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: #e12454;
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: #e12454;
}

td {
    /* white-space: pre; */
    padding: 5px !important;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

/* login design start */

.login {
    /* width: 400px; */
    width: 100%;
    height: 100vh;
    /* background: linear-gradient(90deg, rgba(2, 0, 36, 1) 0%, rgba(9, 9, 121, 1) 35%, rgba(0, 212, 255, 1) 100%); */
}

.login_title {
    /* width: 100%;
    display: flex;
    justify-content: center;
    align-items: center; */
    font-size: 26pt;
    font-weight: bold;
    color: black;
    /* text-shadow: 0 0 5px #000000ba; */
}

.login_card {
    backdrop-filter: blur(10px);
    background: #ffffff50;
    border-radius: 20px;
    width: 80%;
    box-shadow: 0 0 30px #00000050;
    border-top: 10px solid #ba343a;
}

@media (max-width: 768px) {
    .login_card {
        width: 100%;
    }
}

.login_alert {
    position: absolute;
    background: white;
    color: #ba343a;
    width: 90%;
    top: -50px;
    /* text-align: center; */
    padding: 15px;
    box-shadow: 0 0 20px #00000050;
    /* margin-top: -18pt; */
    border-radius: 15px;
    border-color: red;
}

.login_bg {
    padding: 3em;
    background: url('../img/login-bg.jpg');
    background-size: cover;
    background-repeat: no-repeat;
}

@media (max-width: 600px) {
    .login_bg {
        padding: 0;
    }
}

.card_img_bg {
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('../img/blue-bg.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    border-bottom-left-radius: 40px;
    border-top-left-radius: 40px;
    border-bottom-right-radius: 40px;
    border-top-right-radius: 40px;
    box-shadow: 0 0 50px #00000050;
}

@media (max-width: 600px) {
    .card_img_bg {
        display: none !important;
    }
}

.blur_bg {
    color: white;
    background-color: #ffffff30;
    box-shadow: 0 0 50px #00000050;
    border-radius: 30px;
    backdrop-filter: blur(3px);
}

.card_white {
    background: transparent;
    border-bottom-right-radius: 40px;
    border-top-right-radius: 40px;
}

.login_content_bg {
    height: 100%;
    width: 50%;
}

@media (max-width: 600px) {
    .login_content_bg {
        background-color: transparent;
        width: 100%;
    }
}

/* login design end */

/* my_on_off_switch Style Start */

.my_on_off_switch {
    position: relative;
    width: 155px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.my_on_off_switch-checkbox {
    display: none;
}

.my_on_off_switch-label {
    display: block;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #999999;
    border-radius: 20px;
}

.my_on_off_switch-inner {
    display: block;
    width: 200%;
    margin-left: -100%;
    transition: margin 0.3s ease-in 0s;
}

.my_on_off_switch-inner:before,
.my_on_off_switch-inner:after {
    display: block;
    float: left;
    width: 50%;
    height: 30px;
    padding: 0;
    line-height: 30px;
    font-size: 14px;
    color: white;
    font-family: Trebuchet, Arial, sans-serif;
    font-weight: bold;
    box-sizing: border-box;
}

.my_on_off_switch-inner:before {
    content: "Active!";
    padding-left: 10px;
    background-color: green;
    color: #FFFFFF;
}

.my_on_off_switch-inner:after {
    content: "InActive";
    padding-right: 10px;
    background-color: red;
    color: #FFFFFF;
    text-align: right;
}

.my_on_off_switch-switch {
    display: block;
    width: 46px;
    margin: 2px;
    background: #FFFFFF;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 101px;
    border: 2px solid #999999;
    border-radius: 20px;
    transition: all 0.3s ease-in 0s;
}

.my_on_off_switch-checkbox:checked+.my_on_off_switch-label .my_on_off_switch-inner {
    margin-left: 0;
}

.my_on_off_switch-checkbox:checked+.my_on_off_switch-label .my_on_off_switch-switch {
    right: 0px;
}

/* my_on_off_switch Style end */

/* dashboard style Start */
.bg-card {
    background: white;
}

/* dashboard style End */

/* custom style starts */

.text-primary {
    color: #ba343a !important;
}

.bg-primary {
    background: #ba343a !important;
}

.btn-primary {
    background: #ba343a;
    color: white;
    border-color: #ba343a;
}

.btn-primary:hover {
    background: #822529;
    border-color: #822529;
}

.btn-primary:active {
    background: #ba343a;
    color: white;
    border-color: #ba343a;
}

.btn-primary:focus {
    background: #ba343a;
    border-color: #ba343a;
    box-shadow: 0 0 0 0.25rem #ba343b50 !important;
}

.btn-outline-primary {
    color: #ba343a;
    border-color: #ba343a;
}

.btn-outline-primary:hover {
    background: #ba343a;
    color: white;
    border-color: #ba343a;
}

.btn-outline-primary:focus {
    background: #ba343a;
    border-color: #ba343a;
    color: white;
    box-shadow: 0 0 0 0.25rem #ba343b50 !important;
}

.btn-close:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem #ba343b50 !important;
    opacity: 1;
}

.form-control,
.form-select {
    color: #575757;
    border-color: #00000025;
}

.form-control:focus {
    color: #000000;
    background-color: #fff;
    border-color: #00000050;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25);
}
/* Ensure actual input/select/textarea text is dark and readable */
.form-control,
.form-select,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
textarea {
  color: #111 !important;            /* dark text color */
  background-clip: padding-box;      /* avoid ghosting on transparent BGs */
}

/* Placeholder stays subtle */
.form-control::placeholder,
.form-select::placeholder,
textarea::placeholder {
  color: #6c757d !important;         /* gray placeholder */
  opacity: 1;                        /* consistent across browsers */
}

/* Make sure focus state keeps dark text */
.form-control:focus,
.form-select:focus,
textarea:focus {
  color: #111 !important;
  box-shadow: 0 0 0 0.15rem rgba(179,0,0,0.12); /* subtle blood-red focus if wanted */
}

/* Readonly / disabled inputs (still readable) */
.form-control[readonly],
.form-control:disabled,
.form-select:disabled {
  color: #333 !important;
  opacity: 1 !important;             /* keep readable even when disabled */
}

/* If you used .text-light or bg-transparent on inputs, override it */
.form-control.text-light,
.form-control.bg-transparent,
.form-select.text-light,
.form-select.bg-transparent {
  color: #111 !important;
}

/* Optional: slightly larger font for clarity */
.form-control {
  font-size: 14px;
}

.form-select:focus {
    border-color: #00000050;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25);
}

.page-link {
    color: black;
}

.page-link:hover {
    color: #ba343a;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #ba343a;
    border-color: #ba343a;
}

.page-link:focus {
    box-shadow: 0 0 0 0.25rem #ba343b25;
}

div.dataTables_wrapper div.dataTables_filter label {
    color: black;
}

div.dataTables_wrapper div.dataTables_length label {
    color: black;
}

div.dataTables_wrapper div.dataTables_info {
color: black;
}

html, body {
    height: 100%;
    margin: 0;
     overflow: hidden; /* scroll only content */
}

.flex-nowrap {
    display: flex;
    height: 100vh; /* stable full height */
}



.main_area {
    flex: 1;
    overflow-y: auto; /* scroll only content */
    padding: 20px;
}

.side_nav a {
    padding: 4px 10px !important;
    font-size: 14px;
}

#menu li {
    margin-bottom: 4px !important;
}



.side_nav {
    width: 100%;
}

.side_nav .nav-link {
    color: white;
    padding: .75rem 0;
}

.side_nav i {
    color: white;
}

.side_nav .inner_icon {
    color: #ba343a;
}

.sidebar {
    width: 250px;
    background: #ba343a;
    max-height: 100vh !important;
    color: #fff;
    overflow-y: auto;
    -ms-overflow-style: none;  
    scrollbar-width: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sidebar.sidebar-hidden {
    width: 0;
    min-width: 0;
    padding: 0;
    overflow: hidden;
}

#mainContent {
    transition: all 0.3s ease;
    flex-grow: 1;
}

#sidebarToggle {
    transition: all 0.3s ease;
}

#sidebarToggle:hover {
    transform: scale(1.1);
    color: #ba343a !important;
}

/* Hide scrollbar for Chrome, Edge, Safari */
.sidebar::-webkit-scrollbar {
    display: none;
}

/* Show scrollbar only on hover */
.sidebar:hover::-webkit-scrollbar {
    display: block;
    width: 6px;
}

.sidebar:hover::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
}

/* Modern Expandable Submenu Styles with Enhanced Effects - White Theme */
.submenu {
    padding-left: 0;
    margin-left: 8px;
    margin-right: 8px;
    margin-top: 4px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 1);
    border-left: 3px solid #ba343a;
}

.submenu li {
    list-style: none;
    border-left: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.submenu li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(186, 52, 58, 0.08) 0%, transparent 100%);
    transition: width 0.3s ease;
    z-index: 0;
}

.submenu li:hover::before {
    width: 100%;
}

.submenu li:hover {
    border-left-color: #ba343a;
    background: rgba(186, 52, 58, 0.03);
}

.submenu-item {
    display: flex;
    align-items: center;
    padding: 12px 15px 12px 20px !important;
    color: #333 !important;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    margin: 3px 6px;
    position: relative;
    z-index: 1;
    letter-spacing: 0.3px;
}

.submenu-item:hover {
    color: #ba343a !important;
    background: linear-gradient(90deg, rgba(186, 52, 58, 0.12) 0%, rgba(186, 52, 58, 0.06) 100%);
    padding-left: 28px !important;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(186, 52, 58, 0.25);
    font-weight: 600;
}

.submenu-item .inner_icon {
    font-size: 17px;
    margin-right: 10px;
    color: #ba343a;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
}

.submenu-item:hover .inner_icon {
    color: #9a2228;
    transform: scale(1.15) translateX(2px);
    filter: drop-shadow(0 0 4px rgba(186, 52, 58, 0.5));
}

/* Main menu items enhancement */
.side_nav .nav-link {
    border-radius: 10px;
    margin: 4px 0px;
    /* padding: 12px 15px !important; */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.side_nav .nav-link::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    transition: left 0.5s ease;
}

.side_nav .nav-link:hover::before {
    left: 100%;
}

.side_nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(3px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.side_nav .nav-link i:first-child {
    min-width: 28px;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 18px;
}

.side_nav .nav-link:hover i:first-child {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}

/* Toggle icon animation with bounce */
.submenu-toggle {
    position: relative;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
}

.submenu-toggle:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.toggle-icon {
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    margin-left: auto;
    opacity: 0.75;
    font-weight: bold;
}

.submenu-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg) scale(1.1);
    color: #fff;
}

.submenu-toggle:hover .toggle-icon {
    opacity: 1;
    transform: scale(1.15);
}

/* Active menu item highlight with glow */
.side_nav .nav-link.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.18) 100%) !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    border-left: 4px solid rgba(255, 255, 255, 0.9) !important;
    transform: translateX(3px) !important;
}

.submenu-item.active {
    background: linear-gradient(90deg, rgba(186, 52, 58, 0.2) 0%, rgba(186, 52, 58, 0.12) 100%) !important;
    color: #ba343a !important;
    font-weight: 700 !important;
    box-shadow: 0 3px 10px rgba(186, 52, 58, 0.35), inset 0 1px 0 rgba(186, 52, 58, 0.1) !important;
    border-left: 4px solid #ba343a !important;
    padding-left: 28px !important;
    transform: translateX(3px) !important;
}

/* Smooth collapse animation with fade */
.submenu.collapsing {
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
}

.submenu.show {
    animation: fadeInSubmenu 0.3s ease forwards;
}

@keyframes fadeInSubmenu {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sidebar scrollbar styling */
.sidebar {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Divider for menu sections */
.side_nav .nav-item + .nav-item {
    margin-top: 2px;
}

/* Pulse effect on first load */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    }
}

.side_nav .nav-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Small screen adjustments */
@media (max-width: 576px) {
    .submenu-item {
        font-size: 14px;
        padding: 13px 15px 13px 20px !important;
    }
    
    .submenu-item:hover {
        padding-left: 28px !important;
    }
    
    .side_nav .nav-link {
        padding: 13px 12px !important;
    }
}

/* Tooltip effect on hover (optional enhancement) */
.submenu-item:hover::after {
    content: attr(title);
    position: absolute;
    right: -10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}






@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    .sidebar:hover {
        width: 250px;
        transition: 0.3s;
    }
    .sidebar a {
        font-size: 12px;
    }
}




