.header-container {
    background: var(--white-color);
    box-shadow: -1px 4px 20px 1px #f1f1f185;
    z-index: 100;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
}

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


.searchBar input {
    padding: 3px 15px;
    width: 40rem;
    border: 1px solid #e0e0e0;
    border-radius: 7px;
}

.header-left {
    justify-content: space-between;
    align-items: center;
}

.header-left .logo {
    width: 250px;
    background: var(--main-gradient);
    font-size: 20px;
    text-align: center;
    padding: 10px 0;
}

.header-left .logo a {
    color: var(--white-color);
    font-weight: var(--font-semi-bold);
}

#toggleSidebar,
#toggleSidebarMobile {
    color: var(--main-color);
    font-size: 30px;
}

.header-left .sidebarCollapse {
    margin-left: 20px;
    font-size: 28px;
}

.navbar-item {
    padding-right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.navbar-item .nav-item {
    position: relative;
}

.navbar-item .nav-item .count {
    position: absolute;
    top: -5px;
    right: -7px;
    height: 15px;
    width: 15px;
    line-height: 15px;
    font-size: 10px;
    text-align: center;
    color: #fff;
    background: var(--main-gradient);
    border-radius: 50%;

}

img.icon {
    width: 26px;
}

/* ----------------------- */

.dropdown-menu {
    position: absolute;
    max-width: 16rem;
    min-width: 18rem;
    top: 127% !important;
    left: auto !important;
    right: 0;
}

.dropdown-menu.setting {
    max-width: 10rem;
    min-width: 10rem;
}

.dropdown-menu.usr {
    max-width: 14rem;
    min-width: 14rem;
}

.dp-main-menu .dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #e7e7e7;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.dp-main-menu .dropdown-item:last-child {
    border-bottom: none;
}

.dp-main-menu .note-info-desmis {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.dp-main-menu .dropdown-item img.user-note {
    width: 35px;
}

.dp-main-menu .user-notify-info {
    text-align: left;
}

.dp-main-menu .user-notify-info p {
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
}

.dp-main-menu .user-notify-info p:last-child {
    font-size: 11px;
}

.dp-main-menu .status-link>span {
    height: 17px;
    width: 17px;
    line-height: 17px;
    text-align: center;
    background: var(--main-gradient);
    color: #fff;
    font-size: 10px;
    border-radius: 50%;
}

.dp-main-menu .email-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
}

.dp-main-menu .email-info .name {
    font-size: 16px;
    color: var(--second-color);
}

.dp-main-menu .email-info .role {
    font-size: 12px;
    color: var(--second-color);
}

.note-info-email {
    line-height: 10px;
}

img.user-email {
    width: 35px;
}

.dp-main-menu .user-info .user-data {
    background: var(--main-gradient);
    text-align: center;
    padding: 10px;
    line-height: 15px;
}

.dp-main-menu .user-info .user-data h2 {
    font-size: 16px;
    color: var(--white-color);
}

.dp-main-menu .user-info .user-data p {
    font-size: 13px;
    color: var(--white-color);
}

.dp-main-menu .user-info .user-link {
    padding: 10px;
}

.dp-main-menu .user-info .user-link a {
    display: block;
    padding-bottom: 10px;
    font-size: 13px;
    color: var(--second-color);
    font-weight: 500;
}

.dp-main-menu .user-info .user-link a i {
    margin-right: 5px;
    color: var(--main-color);
}

.dropdown-menu.usr {
    padding: 0;
}

@media screen and (max-width: 768px) {
    header.header.navbar.navbar-expand-sm.expand-header {
        width: 100%;
    }

    .header-left {
        justify-content: space-between;
        align-items: center;
        width: 43%;
    }

    .header-left .logo {
        width: 143px;
        background: var(--main-gradient);
        font-size: 15px;
        padding: 7px 0;
    }

    #toggleSidebarMobile {
        font-size: 25px;
    }

    #toggleSidebar {
        display: none;
    }

    .searchBar {
        display: none;
    }

    .search-bar {
        display: none;
    }

    .ms-2 {
        display: none;
    }

    ul.navbar-item.flex-row.align-items-center.py-2.ml-auto {
        width: 57%;
    }

    .dropdown-menu {
        top: 130% !important;
        right: -335%;
    }

    .dropdown-menu .usr {
        margin-top: -28px !important;
    }

    .dropdown-menu .setting {
        margin-top: -28px !important;
    }

    .searchBar input {
        width: 8rem !important;
        margin-right: 20px;
    }

    .registration-form h2 {
        font-size: 22px;
    }


}


/* -----------slidebar-start (minimal)------ */

.left-menu {
    --sb-width: 250px;
    --sb-text: #374151;
    --sb-muted: #9ca3af;
    --sb-hover: #f3f4f6;
    --sb-active: #15803d;
    --sb-active-bg: #dcfce7;
    --sb-border: #e5e7eb;

    position: fixed;
    width: var(--sb-width);
    height: 100vh;
    box-shadow: 1px 0 0 var(--sb-border);
    overflow-y: auto;
    overflow-x: hidden;
    transition: width .3s ease;
    margin-top: -16px;
    background: #fff;
    padding: 8px 0 24px;
    z-index: 100;
    color: var(--sb-text);
}

.sub-menu ol, ul {
    padding-left: 0rem;
}

.left-menu.hide,
html.admin-sidebar-hidden .left-menu {
    width: 0;
    box-shadow: none;
}

nav.animated {
    position: relative;
}

.left-menu::-webkit-scrollbar {
    width: 4px;
}

.left-menu::-webkit-scrollbar-thumb {
    background: var(--ui-border, #E2E8F0);
    border-radius: 999px;
}

ul#sidebar {
    padding: 0;
    margin: 0;
}

ul#sidebar > li {
    border-left: 2px solid transparent;
    margin: 0;
    border-radius: 0;
    list-style: none;
}

ul#sidebar > li:hover:not(.sidebar-section-label):not(.sidebar-bottom-info) {
    border-left-color: #d1d5db;
    background: var(--sb-hover);
}

ul#sidebar li {
    font-size: 14px;
}

ul#sidebar li a {
    padding: 9px 14px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: background .15s ease, color .15s ease;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--sb-text);
    border-radius: 0;
    text-decoration: none;
}

ul#sidebar li a:hover {
    background: transparent;
    color: #111827;
}

ul#sidebar > li.active {
    background: var(--sb-active-bg);
    border-left-color: var(--sb-active);
}

ul#sidebar > li.active > a {
    color: var(--sb-active);
    font-weight: 600;
}

ul#sidebar li a i,
ul#sidebar li a .menu-content i {
    font-size: 14px;
    width: 18px;
    text-align: center;
    color: #6b7280;
    flex-shrink: 0;
}

ul#sidebar > li.active > a .menu-content i,
ul#sidebar > li.active > a .menu-icon-chip i,
ul#sidebar li a:hover .menu-content i,
ul#sidebar li a:hover .menu-icon-chip i {
    color: var(--sb-active);
}

/* icon | label | badge — no wrap */
ul#sidebar li a .menu-content {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

ul#sidebar li a .menu-label {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
    font-size: 13.5px;
}

/* Plain icon slot — no colored chips */
ul#sidebar li a .menu-icon-chip {
    width: 18px;
    height: 18px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
    box-shadow: none;
}

ul#sidebar li a .menu-icon-chip i {
    font-size: 14px;
    color: #6b7280;
}

/* Ignore decorative chip color classes — keep one muted style */
ul#sidebar > li[class*="sb-chip-"] > a .menu-icon-chip,
ul#sidebar > li[class*="sb-chip-"] > a .menu-icon-chip i {
    background: transparent;
    color: #6b7280;
}

ul#sidebar > li[class*="sb-chip-"].active > a .menu-icon-chip i {
    color: var(--sb-active);
}

ul#sidebar li a .menu-badge {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 4px;
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid var(--sb-border);
}

ul#sidebar li a .fas.fa-caret-down.right,
ul#sidebar li a .fas.fa-caret-up.right {
    margin-left: 0;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    font-size: 11px;
    color: var(--sb-muted);
}

ul#sidebar li.sub-menu.active > a .fas.fa-caret-down.right {
    transform: rotate(180deg);
    color: var(--sb-active);
}

ul#sidebar .sub-menu ul.left-menu-dp {
    padding: 0 0 4px;
    margin: 0;
    border-left: 0;
    background: #fafafa;
}

ul#sidebar .sub-menu ul li {
    border-left: 0;
    margin: 0;
    border-radius: 0;
    list-style: none;
}

ul#sidebar .sub-menu ul li:hover {
    background: #f3f4f6;
}

ul#sidebar .sub-menu ul li a {
    font-size: 13px;
    font-weight: 400;
    padding: 7px 14px 7px 42px;
    min-height: 36px;
    color: #6b7280;
}

ul#sidebar .sub-menu ul li a .menu-icon-chip {
    width: 16px;
    height: 16px;
    background: transparent;
}

ul#sidebar .sub-menu ul li a .menu-icon-chip i {
    font-size: 12px;
    color: #9ca3af;
}

ul#sidebar .sub-menu ul li a .menu-label {
    font-size: 13px;
}

ul#sidebar .sub-menu ul li.active {
    background: var(--sb-active-bg);
}

ul#sidebar .sub-menu ul li.active > a {
    color: var(--sb-active);
    font-weight: 600;
}

ul#sidebar .sub-menu ul li.active > a .menu-icon-chip i {
    color: var(--sb-active);
}

/* Section labels — simple */
ul#sidebar li.sidebar-section-label {
    border-left: 2px solid transparent;
    padding: 14px 14px 4px;
    margin: 0;
    pointer-events: none;
    background: transparent !important;
    box-shadow: none !important;
}

ul#sidebar li.sidebar-section-label:first-child {
    padding-top: 8px;
}

ul#sidebar li.sidebar-section-label:hover {
    border-left-color: transparent;
    background: transparent !important;
}

ul#sidebar li.sidebar-section-label span {
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #9ca3af;
}

ul#sidebar li.sidebar-section-label span::after {
    display: none;
}

/* Bottom copyright */
ul#sidebar > li.sidebar-bottom-info {
    margin-top: 12px;
    margin-bottom: 32px;
    padding: 0;
    border: 0;
    background: transparent !important;
}

ul#sidebar > li.sidebar-bottom-info a {
    color: var(--sb-muted);
    background: transparent;
    border: 0;
    border-top: 1px solid var(--sb-border);
    border-radius: 0;
    min-height: auto;
    padding: 12px 14px;
    font-size: 11px;
    font-weight: 400;
}

ul#sidebar > li.sidebar-bottom-info a:hover {
    color: var(--sb-text);
    background: var(--sb-hover);
}

.left-menu a.text-muted {
    color: #9ca3af !important;
}

.left-menu .fa-lock {
    color: #9ca3af;
    flex-shrink: 0;
}

.left-menu .text-warning,
.left-menu .text-danger,
.left-menu .text-info {
    flex-shrink: 0;
}

/* Mobile sidebar backdrop */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.4);
    z-index: 99;
    opacity: 0;
    transition: opacity .2s ease;
    pointer-events: none;
}

.sidebar-backdrop.is-visible {
    display: block;
    opacity: 1;
    pointer-events: auto;
}