label {
    margin-bottom: -12px !important;
    color: grey;
    font-size: 13px;
}

input:focus {
    outline: none !important;
    border-color: inherit !important;
    box-shadow: none !important;
}

.dynamic-list {
    list-style-type: none;
    max-height: 200px;
    overflow-y: auto;
    padding-left: 0;
    margin: 0;
    cursor: pointer;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    background: #fff;
    position: absolute;
    z-index: 1000;
}

.dynamic-list li {
    padding: 8px 10px;
    /* Add some padding for better clickability */
    border-bottom: 1px solid #ccc;
    /* Optional: adds a separator between items */
}

.dynamic-list li:hover {
    background-color: #f0f0f0;
    /* Changes background on hover */
}

/* Always show scrollbar */
.dynamic-list::-webkit-scrollbar {
    width: 8px;
    /* width of the vertical scrollbar */
}

.dynamic-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    /* color of the tracking area */
}

.dynamic-list::-webkit-scrollbar-thumb {
    background-color: #888;
    /* color of the scroll thumb */
    border-radius: 10px;
    /* roundness of the scroll thumb */
    border: 2px solid #f1f1f1;
    /* creates padding around scroll thumb */
}

.dynamic-list::-webkit-scrollbar-thumb:hover {
    background: #555;
    /* color of the scroll thumb when hovered */
}

.user-sidebar {
    top: 56px;
    position: -webkit-sticky; /* Safari */
    position: sticky;
    z-index: 999;
}

/* Ensure there is enough space at the bottom to prevent overlap */
.main-body {
    margin-bottom: 200px; /* Adjust this value based on the height of your sidebar */
}


.user-sidebar .nav-link {
    background-color: #fff;
    color: #1f2123;
    border-bottom: 1px solid black;
    border-radius: 0.25rem;
    margin-bottom: 1px;
    font-size: 16px !important;
}

.user-sidebar .nav-link:hover {
    color: #ffffff;
    background-color: #495057;
}


/* Main Side Bar From Bootstrap */

@import "https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700";

a,
a:hover,
a:focus {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}


.line {
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed #ddd;
    margin: 40px 0;
}

/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */

#sidebar {
    width: 17.221rem;

    position: fixed;
    top: 0;
    left: -17.221rem;
    height: 100vh;
    z-index: 9999;
    background: #fff;
    color: #000;
    transition: all 0.3s;
    overflow-y: scroll;
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.2);
}

#sidebar.active {
    left: 0;
}

#dismiss {
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background: #fff;
    position: absolute;
    top: 10px;
    right: 5px;
    cursor: pointer;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

#dismiss:hover {
    background: #fff;
    color: #fc3f3f;
}

.overlay {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    transition: all 0.5s ease-in-out;
}

.overlay.active {
    display: block;
    opacity: 0.1;
}

#sidebar .sidebar-header {
    padding-top: 20px;
    padding-left: 12px;
    background: #fff;
}

#sidebar ul.components {
    /* padding: 20px 0; */
    border-bottom: 1px solid #fff;
}

#sidebar ul p {
    color: #000;
    padding: 10px;
}

#sidebar ul li a {
    padding: 12px 20px;
    /* padding: 0 12px; */
    font-size: 0.9em;
    display: block;
}

#sidebar ul li a:hover {
    color: #fff;
    background: #000;
}

#sidebar ul li.active>a,
a[aria-expanded="true"] {
    color: #000;
    background: #fff;
}

a[data-toggle="collapse"] {
    position: relative;
}

/* .dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
} */

ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background: #6d7fcc;
}


/* navber-2 */

.navbar-layer-2 {
    height: 3rem;
    box-shadow: 1px 3px 4px #0000004c;
}


/* Optional: Additional styling to improve appearance */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
}

.logo {
    width: auto;
    max-height: 2rem;
}

/* Remove anchor tag underlines and other default styles */
.navbar-brand,
.navbar-brand:hover,
.navbar-brand:focus {
    text-decoration: none;
    color: inherit;
}

/* footer */
footer{
    background: #f4f4f4;
}
footer ul{
    padding: 1rem;
}
footer ul li a:hover{
border-bottom: 1px solid red;
color: red;
}

/* ---------------------------------------------------
   MEDIA ALIGNMENTS  STYLE
----------------------------------------------------- */

/* chat gpt Custom visibility settings for navbar elements  */

@media (max-width: 991px) {

    /* Adjusts based on your breakpoint needs */
    .d-none.d-lg-block,
    .d-none.d-lg-flex {
        /* Hide desktop-only elements in mobile view */
        display: none;
    }

    .navbar-layer-3 .navber-nav {
        display: flex;
        justify-content: space-around;
    }
}

@media (min-width: 992px) {

    /* Adjusts based on your breakpoint needs */
    .d-lg-none {
        /* Hide mobile-only elements in desktop view */
        display: none;
    }

}

/* Responsive adjustments */
@media (max-width: 791px) {

    html,
    body,
    .container-fluid,
    .container,
    .wrapper,
    .row {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /* navber-3 */
    .navbar-layer-3 {
        display: flex;
        justify-content: space-around;
    }

    /* mobile tabs abjust */
    .fixed-bottom-tabs {
        position: fixed;
        background-color: #fff;
        border-top: 1px solid #e4eaef;
        z-index: 5;
        bottom: env(safe-area-inset-bottom, 10px);
    }

    .logo {
        max-height: 40px;
        /* Smaller logo for mobile devices */
    }

footer{
    text-align: center;
}
}
@media (max-width: 391px) {

    /* navber-3 */
    .navbar-layer-3 .navbar-nav {
        display: flex;
        justify-content: space-around;
    }
}

#searchModal .modal-body span {
    color: #000;
    font-size: 12px;
}

.main-breadcrumb li, .main-breadcrumb a {
    color: #0000FF;
    font-size: 13px;
}


/* Third Navbar Content */

/* Ensure the dropdown menu takes the full width of the navbar */
.navbar .dropdown-menu.dropdown-wide {
    width: 73vw; /* Full viewport width */
    left: 0;
    right: 0;
    top: 100%;
    position: absolute;
    margin-top: 0; /* Align with navbar */
    border-top: none;
    border-left: none;
    border-right: none;
    padding: 0;
    overflow: hidden; /* Prevent overflow */
}

/* Adjust the container inside the dropdown to align with the navbar container */
.navbar .dropdown-menu .container-fluid {
    width: auto;
    padding: 0;
    margin: 0;
}

/* Ensure there is no extra padding around the dropdown items */
.navbar .dropdown-menu .row {
    margin: 0;
    padding: 0;
}

.navbar .dropdown-menu .col-md-3 {
    padding: 10px;
}

/* Flexbox for automatic adjustment */
.navbar .dropdown-menu .row.flex-wrap {
    display: flex;
    flex-wrap: wrap;
}

.navbar .dropdown-menu .col-md-3 {
    padding: 10px;
}

/* Optional: add some hover effect */
.navbar .dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Center the dropdown menu if it overflows */
.navbar .dropdown-menu.dropdown-wide {
    transform: translateX(-16.2%);
    left: 90%;
}

.error {
    color: red;
}
