﻿/* =========================
   Sidebar (Dashboard)
========================= */
.sidebar {
    background-color: var(--backGroundSideBar);
    height: 100vh;
    overflow: auto;
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    width: 20%;
}

.sidebar .logo {
    padding: 8px 40px 16px 0;
}

.sidebar .sidebare-icon {
    width: 30px;
}

.sidebar .link-sidebar {
    color: var(--whiteColor);
    font-weight: 400;
    padding: 12px 16px;
    border-radius: 5px;
    width: 250px;
    margin: auto;
}

.sidebar .link-sidebar a {
    padding-top: 8px;
    color: var(--whiteColor);
}

.sidebar .link-sidebar:hover,
.sidebar .link-sidebar:hover a,
.sidebar .link-sidebar:active {
    background: var(--colorHoverSideBar);
    color: var(--colorLinkSidebarhHover);
    cursor: pointer;
}

.sidebar .link-sidebar:hover .sidebare-icon {
    filter: brightness(0) invert(0);
}

.link-sidebar.active {
    background-color: var(--colorShowAllLink);
}

/* =========================
   Dashboard accordion (small screens)
========================= */
.dashboard-accordion {
    position: absolute;
    top: 90px;
    width: 100%;
    margin: auto;
    z-index: 999;
    height: fit-content;
    display: none;
}

.header .open-icon {
    width: 30px;
}

.dashboard-accordion .accordion-button,
.dashboard-accordion .list-group-item,
.dashboard-accordion .accordion-body {
    background-color: var(--colorBackgroundAccordinationListDashBoard);
}

.dashboard-accordion .list-group-item {
    border: none;
    padding: 12px 20px;
    transition: all 0.3s;
}

.dashboard-accordion .list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.dashboard-accordion .sidebare-icon {
    filter: brightness(10) invert(1) !important;
}

.dashboard-accordion .accordion-item {
    border-radius: 16px;
    overflow: hidden;
}

.dashboard-accordion .accordion-button.collapsed {
    border-radius: 16px !important;
}

.dashboard-accordion .accordion-button:not(.collapsed) {
    border-radius: 16px 16px 0 0 !important;
}

.dashboard-accordion .accordion-collapse {
    border-radius: 0 0 16px 16px !important;
    overflow: hidden;
}

/* =========================
   Header (Dashboard navbar)
========================= */
.header {
    width: 80%;
    position: fixed;
    inset-inline-end: 0;
    top: 0;
    z-index: 1000;
}

.header .navbar {
    padding: 0.8rem 1rem;
    background-color: var(--colorBackgroundHeader) !important;
}

.header ul {
    padding-inline-start: 0;
}

.header .dashed-custom {
    margin-top: 16px;
}

.header .img-profile {
    display: inline-block;
    aspect-ratio: 4/3;
}

.header .img-profile img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.navbar-brand {
    font-weight: bold;
}

.nav-link {
    color: var(--colorLinkHeader) !important;
    margin: 0 0.5rem;
}


.header .nav-link:hover,
.header .btn-dropdown:hover {
    color: #5b21a6 !important;
}

.header .nav-link:hover .icon-link,
.header .btn-dropdown:hover .icon-link {
    filter: brightness(0) saturate(100%) invert(15%) sepia(41%) saturate(6413%) hue-rotate(262deg) brightness(88%) contrast(97%);
}

.header .dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.header .menu .home {
    font-weight: var(--fontWeight500) !important;
}

.header .menu .dollar-icon {
    width: 12px;
}

.header button {
    border: none;
}

.header .close-icon {
    width: 20px !important;
    height: 20px !important;
}

.user-dropdown {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hide default Bootstrap caret */
.navbar .dropdown-toggle::after {
    display: none !important;
}

/* =========================
   Dropdown arrow (ONLY normal menus)
   - NOT for currency/language/account
========================= */


/* Ensure locale/account never get pseudo arrow */
.header .locale-toggle,
.header .account-toggle {
    padding-inline-end: 0 !important;
}

.header .locale-toggle::before,
.header .account-toggle::before {
    content: none !important;
    display: none !important;
}

/* =========================
   Custom dropdown bubble + pointer
========================= */
header .custom-dropdown {
    position: absolute;
    top: 100%;
    inset-inline-start: auto;
    inset-inline-end: 0;
    margin-top: 10px;
    width: fit-content;
    z-index: 20;
}

.header .custom-dropdown::after {
    content: "";
    position: absolute;
    top: -8px;
    inset-inline-end: 20px;
    width: 16px;
    height: 16px;
    background: var(--whiteColor);
    transform: rotate(45deg);
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.05);
}

.header .currency .custom-dropdown::after,
.header .lanuguge .custom-dropdown::after {
    inset-inline-end: 120px !important;
}

.header .providers .custom-dropdown {
    inset-inline-start: -80px !important;
}

.header .services .custom-dropdown {
    inset-inline-start: -100px;
}

/* =========================
   Providers mega dropdown (Header)
========================= */
.header .providers-dropdown {
    padding: 0;
    min-width: 560px;
    border-radius: 12px;
    overflow: hidden;
}

.header .providers-dropdown-wrap {
    display: grid;
    grid-template-columns: 1fr 260px;
}

.header .providers-col {
    padding: 14px 16px;
}

.header .providers-col-right {
    border-left: 1px solid var(--neutral-200, #eee);
    background: var(--neutral-50, #fafafa);
}

html[dir="rtl"] .header .providers-col-right {
    border-left: none;
    border-right: 1px solid var(--neutral-200, #eee);
}

.header .providers-category {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    background: transparent;
    padding: 10px 8px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--neutral-700, #333);
    cursor: pointer;
    text-align: start;
}

.header .providers-category:hover {
    background: var(--neutral-100, #f2f2f2);
}

.header .providers-category.is-active {
    background: var(--primary-lighter, rgba(112, 75, 206, 0.12));
    color: var(--primary, #704bce);
}

.header .providers-category-arrow {
    opacity: 0.8;
    font-size: 18px;
}

.header .providers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.header .providers-item {
    color: var(--neutral-800, #111);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.35;
}

.header .providers-item:hover {
    color: var(--primary, #704bce);
    text-decoration: underline;
}

.header .providers-see-more {
    margin-top: 6px;
    color: var(--primary, #704bce);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.header .providers-see-more:hover {
    text-decoration: underline;
}

/* =========================
   Locale dropdowns (Language + Currency) - Website style
========================= */
.header .dropdown-one-level.locale-item {
    position: relative;
}

.header .menu-section .locale-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0 0.5rem;
    color: var(--colorLinkHeader);
    line-height: 1;
    height: 24px;
    font-size: 14px;
    font-weight: 400;
}

.header .locale-toggle .locale-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
}

.header .locale-toggle .icon-link {
    width: 12px;
    height: 12px;
}

/* Account toggle arrow */
.header .account-toggle .icon-link {
    width: 12px;
    height: 12px;
}

.header .btn-dropdown .icon-link {
    transition: transform 200ms ease;
    transform: rotate(-90deg);
}

html[dir="rtl"] .header .btn-dropdown .icon-link {
    transform: rotate(90deg);
}

@media (min-width: 993px) {
    .header .btn-dropdown .icon-link {
        transform: rotate(0deg) !important;
    }

    .header .btn-dropdown[aria-expanded="true"] .icon-link {
        transform: rotate(180deg) !important;
    }
}

.header .language-item .locale-toggle > span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px;
    line-height: 1;
}

/* Submenu dropdown box */
.header .dropdown-menu.submenu {
    border: none;
    padding: 16px;
    background: #fbfbfb;
    border-radius: 8px;
    box-shadow: 0px 14px 44px 0px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    gap: 12px;
    width: max-content;
    /*min-width: 220px;
    max-width: calc(100vw - 40px);*/
    top: calc(100% + 13px);
    inset-inline-end: 0;
    inset-inline-start: auto;
}

.header .dropdown-menu.submenu.show {
    display: flex;
}

/* Triangle pointer (RTL safe) */
.header .dropdown-menu.submenu::before {
    content: "";
    position: absolute;
    top: -8px;
    inset-inline-end: 28px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fbfbfb;
}

/* Locale submenu container */
.header .submenu.submenu-locale {
    gap: 20px;
}

.header .submenu.submenu-locale .locale-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.header .submenu.submenu-locale .lang-input {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #000;
    font-size: 12px !important;
    line-height: 1.2;
    padding: 2px 0;
}

.header .submenu.submenu-locale .lang-input * {
    cursor: pointer;
}

.header .submenu.submenu-locale .lang-input input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #000;
}

.header .submenu.submenu-locale .lang-input label {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    font-size: 12px !important;
    line-height: 1.2;
}

.header .submenu.submenu-locale .lang-input label img {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.15);
}

.header .submenu.submenu-locale .locale-sep {
    height: 1px;
    margin: 6px 0;
    background: repeating-linear-gradient( to right, rgba(0, 0, 0, 0.3) 0 8px, transparent 8px 16px );
}

.header .submenu.submenu-locale .select-your {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 12px;
    color: #542198;
    text-decoration: underline;
    font-weight: 500;
    line-height: 100%;
    background: transparent;
    border: 0;
    padding: 0;
}

.header .submenu.submenu-locale .select-your img {
    width: 16px;
    height: 16px;
}

/* =========================
   Website-style 2-level dropdown (Providers)
========================= */
.header .providers-two-level .nav-link,
.header .services-two-level .nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 3px;
}

.header .providers-two-level .btn-dropdown .icon-link,
.header .services-two-level .btn-dropdown .icon-link {
    width: 12px;
    height: 12px;
}

/* Submenu base (mobile: full screen overlay) */
.header .submenu {
    position: fixed;
    inset-inline-start: 0;
    inset-inline-end: 0;
    top: var(--header-h, 0px);
    height: calc(100vh - var(--header-h, 0px));
    padding: 18px 16px;
    background: #f1f1f1;
    overflow-y: auto;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.header .submenu[hidden] {
    display: none !important;
}

@media (min-width: 993px) {
    .header .submenu {
        position: absolute;
        top: calc(100% + 13px);
        inset-inline-start: 0;
        height: auto;
        width: max-content;
        max-width: calc(100vw - 40px);
        background: #fbfbfb;
        border-radius: 8px;
        padding: 16px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        overflow: visible;
    }
    /* Submenu dropdown box */
    .header .dropdown-menu.submenu {
        min-width: 220px;
        max-width: calc(100vw - 40px);
    }
}

.header .submenu-item {
    list-style: none;
}

.header .submenu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
    color: #111;
    text-decoration: none;
    width: 100%;
    transition: color 200ms ease, transform 200ms ease;
}

.header .submenu-link:hover {
    color: #5b21a6 !important;
}

html[dir="ltr"] .header .submenu-link:hover {
    transform: translateX(2px);
}

html[dir="rtl"] .header .submenu-link:hover {
    transform: translateX(-2px);
}

.header .submenu-link:hover img {
    filter: brightness(0) saturate(100%) invert(15%) sepia(41%) saturate(6413%) hue-rotate(262deg) brightness(88%) contrast(97%);
}

.header .btn-submenu {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.header .btn-submenu .icon-link {
    transition: transform 200ms ease;
    width: 12px;
    height: 12px;
}

html[dir="rtl"] .header .btn-submenu .icon-link {
    transform: rotate(180deg) !important;
}

.header .btn-submenu[aria-expanded="true"] .icon-link {
    transform: rotate(90deg) !important;
}

html[dir="rtl"] .header .btn-submenu[aria-expanded="true"] .icon-link {
    transform: rotate(90deg) !important;
}

/* Level 2 */
.header .submenu-level-2 {
    position: static;
    padding: 16px;
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;

}

.header .submenu-level-2[hidden] {
    display: none !important;
}

.header .submenu-level-2 li:not(:last-child) {
    padding-bottom: 8px;
    border-bottom: 0.2px solid rgba(0, 0, 0, 0.18);
}

@media (min-width: 1024px) {
    .header .submenu-item.has-level-2 {
        position: relative;
    }

    .header .submenu-level-2 {
        position: absolute;
        top: 0;
        inset-inline-start: calc(100% + 33px);
        width: max-content;
        max-width: calc(100vw - 40px);
        background: #fbfbfb;
        border-radius: 8px;
        padding: 16px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        margin-top: 0;
    }

    .header .submenu-level-2::before {
        content: "";
        position: absolute;
        top: 18px;
        inset-inline-start: -8px;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        border-right: 8px solid #fbfbfb;
    }

    html[dir="rtl"] .header .submenu-level-2::before {
        transform: rotate(180deg);
    }

}

.header .submenu-see-more-link {
    font-weight: 600;
    color: #542198;
    text-decoration: none;
}

.header .submenu-see-more-link:hover {
    text-decoration: underline;
}

.header .dashed-8 {
    height: 1px;
    border-top: 1px dashed rgba(0, 0, 0, 0.25);
    margin: 8px 0;
    list-style: none;
}

/* =========================
   Services dropdown font align
========================= */
.header .nav-item.dropdown.services .dropdown-menu .dropdown-item,
.header .nav-item.dropdown .dropdown-menu.custom-dropdown .dropdown-item {
    font-size: 14px !important;
    font-weight: 400;
    line-height: 1.35;
}

.header .nav-item.dropdown.services .dropdown-menu .dropdown-item {
    padding-top: 10px;
    padding-bottom: 10px;
}

/* =========================
   Providers caret: like Services (kept as-is, but deduped)
========================= */
.header .providers-two-level .btn-dropdown,
.header .services-two-level .btn-dropdown {
    display: inline-flex;
    align-items: center;
}

.header .providers-two-level .btn-dropdown::after,
.header .services-two-level .btn-dropdown::after {
    display: none !important;
    content: none !important;
}

/* =========================
   Responsive
========================= */
@media screen and (max-width: 1280px) {
    .sidebar .link-sidebar {
        width: 200px;
    }

    .sidebar .sidebare-icon {
        width: 24px;
    }

    .sidebar .logo img {
        width: 130px;
    }
}

@media screen and (max-width: 1097px) {
    .sidebar .link-sidebar {
        width: 170px;
        padding: 6px;
    }

    header .collapse .faq-link {
        display: none;
    }
}

@media screen and (max-width: 990px) {
    .header .menu .nav-link,
    .dropdown-one-level {
        font-size: 20px !important;
        padding-top: 12px;
        padding-bottom: 12px;
        font-weight: var(--fontWeight400);
    }
    .header .dropdown-one-level span{
        font-size: 20px;
    }

    .sidebar {
        display: none !important;
    }

    .header {
        width: 100%;
        background-color: var(--ColorBackgroundBody);
    }

    .header .navbar {
        background: none !important;
    }

    .header .logo-small {
        display: block !important;
    }

    .header .menu {
        flex-direction: column;
        width: 100%;
        background-color: var(--ColorBackgroundBody);
    }

    /* Cancel old arrow (mobile) */
    .header .navbar .dropdown-toggle::before,
    .header .navbar .dropdown-toggle::after {
        display: none;
    }

    /* Small screen arrow ONLY for non-locale/account */
    .header .navbar .dropdown-toggle:not(.locale-toggle):not(.account-toggle)::before {
        content: "";
        position: absolute;
        inset-inline-end: -8px;
        top: 50%;
        transform: translateY(-50%);
        width: 8.5px;
        height: 8.5px;
        background-image: url("/assets/images/icons/iconsheader/arrowRightIcon.png");
        background-size: contain;
        background-repeat: no-repeat;
        display: block;
    }

    .nav-link {
        color: var(--colorHeadTableNewOrder) !important;
    }

    .header .menu .nav-item {
        border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
    }

    .header .menu-section .nav-item:last-child {
        border-bottom: none;
    }

    header .collapse .faq-link {
        display: block;
    }

    .header .logo-menu {
        display: flex !important;
        width: 100%;
        justify-content: space-between;
    }

    .header .dashed-custom {
        display: block !important;
        width: 100%;
    }

    .header .dNoneLink {
        display: none !important;
    }

    .header .dBlockLink {
        display: block !important;
    }

    .dashboard-accordion {
        display: block;
    }
}
@media (max-width: 992px){
    .menu-client {
        flex-direction: column !important;
    }
}
@media (min-width: 992px) {
    .header-menus,
    .menu-section {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    .submenu-close{
        display: none !important;
    }
    .submenu-level-1 .dashed-custom{
        display: none;
    }

}

/* Currency and Language dropdown mobile full screen*/
@media (max-width: 992px) {

    .header .currency-item .dropdown-menu.submenu,
    .header .language-item .dropdown-menu.submenu,
    .header .user-dropdown .dropdown-menu.submenu {
        position: fixed !important;
        top: var(--header-h, 0px) !important;
        inset-inline-start: 0 !important;
        inset-inline-end: 0 !important;
        height: calc(100vh - var(--header-h, 0px)) !important;
        display: none;
        flex-direction: column;
        gap: 16px;
        background: var(--ColorBackgroundBody) !important;
        padding: 20px;
        z-index: 3000;
        overflow-y: auto;
        border-radius: 0;
        box-shadow: none;
        width: 100vw !important;
    }

    .header .currency-item .dropdown-menu.submenu.show,
    .header .language-item .dropdown-menu.submenu.show,
    .header .user-dropdown .dropdown-menu.submenu.show {
        display: flex !important;
    }

    .header .currency-item .dropdown-menu.submenu::before,
    .header .language-item .dropdown-menu.submenu::before,
    .header .user-dropdown .dropdown-menu.submenu::before {
        display: none !important; /*delete arrorw*/
    }
    .header .menu-section .dropdown-one-level .btn-dropdown {
        width: 100%;
    }
    .header .currency-item .submenu-close,
    .header .language-item .submenu-close {
        display: flex !important;
    }
    .header .currency-item .dashed-custom,
    .header .language-item .dashed-custom {
        display: block;
    }
}
