/* ===================================================================== */
/* NEW SIDEBAR DESIGN - CLEAN & CONFLICT-FREE */
/* ===================================================================== */

/* Hide ALL old sidebar elements to prevent conflicts */
.left-side-bar .eng-sublinks-nav > a.sublink-nav.w-inline-block,
.left-side-bar .acc-chevron,
.left-side-bar .w-dropdown,
.left-side-bar .dropdown-toggle-2,
.left-side-bar .dropdown-list {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Dark sidebar background */
.left-side-bar {
  /*background: #1a1625 !important;*/
  background: #000000 !important;
  border-right: 1px solid #1a1625 !important;
  width: 230px !important;
  transition: width 0.3s ease !important;
  overflow: hidden !important;
}

.eng-copyright-menu {
    /*background-color: #1a1625 !important; /* Purple background */
    background-color: #000000 !important; /* Purple background */
    color: #ffffff;             /* White text for readability */
    padding: 16px;              /* Some spacing inside */
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}
.eng-superior-menu{
        height: 102vh !important;
}
.eng-support-menu {
    margin-bottom: 8px;
}
.sidebar-menu .fa-solid,.sidebar-menu .fas {
    color : #b0b0b0 !important;
}
.eng-social-menu {
    display: flex;
    justify-content: center;
    gap: 12px; /* Space between social icons */
}

.link-social {
    text-decoration: none;
    color: #ffffff; /* White icons/links */
    font-size: 18px;
    transition: color 0.3s ease;
}

.link-social:hover {
    color: #ffcc00; /* Highlight on hover */
}

.txt-label.copyright {
    font-size: 13px;
    opacity: 0.9;
}


.eng-sublinks-nav .acc-items-wrapper{
    display: none!important;
}
/* Sidebar Toggle Button */
.sidebar-toggle-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  margin: 16px auto;
  background: linear-gradient(135deg, #7C3AED 0%, #6366F1 100%);
  border: 2px solid #BB44F0;
  border-radius: 10px;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(187, 68, 240, 0.3);
  flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
  border-color: #BB44F0;
  box-shadow: 0 6px 16px rgba(187, 68, 240, 0.5);
  transform: translateY(-2px);
}

/* ===================================================================== */
/* SIDEBAR OPENED STATE (DEFAULT) - Show full menu with text */
/* ===================================================================== */

.sidebar-menu {
  display: flex !important;
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-menu-item {
  display: flex !important;
  align-items: center;
  padding: 14px 16px !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  border-left: 3px solid transparent !important;
  background: transparent !important;
  position: relative !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  white-space: nowrap;
}

.sidebar-menu-item i.fas:first-child {
  width: 20px;
  margin-right: 16px;
  font-size: 18px;
  color: #ffffff;
  flex-shrink: 0;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.sidebar-menu-item span {
  flex: 1;
  color: #ffffff !important;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-menu-item:hover {
  background: rgba(187, 68, 240, 0.1) !important;
  color: #BB44F0 !important;
}

.sidebar-menu-item:hover i.fas {
  color: #BB44F0 !important;
}

.sidebar-menu-item:hover span {
  color: #BB44F0 !important;
}

/* ACTIVE STATE - Purple gradient background */
.sidebar-menu-item.active,
.sidebar-menu-item.open,
div.sidebar-menu-item.active,
div.sidebar-menu-item.open {
  background: linear-gradient(135deg, #7C3AED 0%, #6366F1 100%) !important;
  border-left: 3px solid #BB44F0 !important;
  color: #ffffff !important;
}

.sidebar-menu-item.active i.fas,
.sidebar-menu-item.open i.fas {
  color: #ffffff !important;
}

.sidebar-menu-item.active span,
.sidebar-menu-item.open span {
  color: #ffffff !important;
}

.sidebar-menu-item.has-submenu {
  position: relative !important;
}

.sidebar-menu-item .submenu-arrow {
  margin-left: auto !important;
  font-size: 12px !important;
  transition: transform 0.3s ease !important;
  width: auto !important;
  margin-right: 0 !important;
  color: #ffffff !important;
  flex-shrink: 0;
}

.sidebar-menu-item.has-submenu.open .submenu-arrow,
.sidebar-menu-item.has-submenu.active .submenu-arrow {
  transform: rotate(90deg) !important;
  color: #ffffff !important;
}

/* Submenu content */
.sidebar-submenu {
  display: none;
  padding-left: 22px;
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.sidebar-submenu.open {
  display: block !important;
}

.sidebar-submenu-item {
  display: block !important;
  padding: 10px 16px;
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none !important;
  font-size: 14px;
  transition: all 0.2s ease;
  white-space: nowrap;
  padding-left: 10px !important;
}

.left-side-bar:not(.collapsed) .sidebar-submenu-item img,
.left-side-bar:not(.collapsed) .sidebar-submenu-item .provider_img {
  margin-right: 16px;
  vertical-align: middle;
}

.sidebar-submenu-item {
  border-left: 3px solid transparent; /* keeps layout stable */
  padding-left: 10px; /* space from border */
}

.sidebar-submenu-item:hover {
  color: #BB44F0 !important;
  border-left-color: #BB44F0 !important;
  background: none;
}

/* icon color on hover */
.sidebar-submenu-item:hover i {
  color: #BB44F0 !important;
}


/* ===================================================================== */
/* SIDEBAR COLLAPSED STATE - Only show main tab icons */
/* ===================================================================== */

.left-side-bar.collapsed {
  width: 70px !important;
  overflow: visible !important;
}

.left-side-bar.collapsed .logo-sidebar img {
  width: 40px !important;
  margin: 0 auto;
  transition: all 0.3s ease;
}
.sidebar-submenu-item i {
    margin-right: 16px !important;
}

/* Hide all text when collapsed */
.left-side-bar.collapsed .sidebar-menu-item span {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Hide submenu arrows when collapsed */
.left-side-bar.collapsed .submenu-arrow {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Center icons when collapsed */
.left-side-bar.collapsed .sidebar-menu-item {
  justify-content: center !important;
  padding: 14px 10px !important;
}

.left-side-bar.collapsed .sidebar-menu-item i.fas:first-child {
  margin-right: 0 !important;
  margin-left: 0 !important;
}

/* COMPLETELY hide all submenus when collapsed */
.left-side-bar.collapsed .sidebar-submenu {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.left-side-bar.collapsed .sidebar-submenu-item {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* ===================================================================== */
/* HOVER EXPANDED STATE - Temporarily show full sidebar when hovering */
/* ===================================================================== */

.left-side-bar.collapsed.hover-expanded {
  width: 230px !important;
}

.left-side-bar.collapsed.hover-expanded .logo-sidebar img {
  width: 120px !important;
}

.left-side-bar.collapsed.hover-expanded .sidebar-menu-item span {
  display: inline !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.left-side-bar.collapsed.hover-expanded .submenu-arrow {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.left-side-bar.collapsed.hover-expanded .sidebar-menu-item {
  justify-content: flex-start !important;
  padding: 14px 16px !important;
}

.left-side-bar.collapsed.hover-expanded .sidebar-menu-item i.fas:first-child {
  margin-right: 12px !important;
}

.left-side-bar.collapsed.hover-expanded .sidebar-submenu.open {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
}

.left-side-bar.collapsed.hover-expanded .sidebar-submenu-item {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ===================================================================== */
/* SMOOTH TRANSITIONS */
/* ===================================================================== */

.left-side-bar,
.left-side-bar *,
.sidebar-menu-item,
.sidebar-menu-item *,
.sidebar-submenu,
.sidebar-submenu-item {
  transition: all 0.3s ease !important;
}

/* ===================================================================== */
/* SCROLLBAR STYLING */
/* ===================================================================== */

.left-side-bar::-webkit-scrollbar {
  width: 6px;
}

.left-side-bar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.left-side-bar::-webkit-scrollbar-thumb {
  background: rgba(187, 68, 240, 0.4);
  border-radius: 3px;
}

.left-side-bar::-webkit-scrollbar-thumb:hover {
  background: rgba(187, 68, 240, 0.6);
}


@media (max-width: 768px) {
  /* Hide desktop sidebar completely on mobile */
  .left-side-bar {
    display: none !important;
  }

  /* Mobile sidebar overlay */
  .mobile-sidebar-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.7) !important;
    z-index: 9997 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
  }

  .mobile-sidebar-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Mobile sidebar */
  .mobile-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    max-width: 320px !important;
    height: 100% !important;
    background: linear-gradient(135deg, #000000 0%, #000000 100%) !important;
    z-index: 9998 !important;
    overflow-y: auto !important;
    transition: left 0.3s ease !important;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5) !important;
  }

  .mobile-sidebar.open {
    left: 0 !important;
    height: calc(100vh - 70px) !important;
  }

  /* Mobile sidebar header */
  .mobile-sidebar-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 20px !important;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3) !important;
    position: sticky !important;
    top: 0 !important;
    background: linear-gradient(135deg, #000000 0%, #000000 100%) !important;
    z-index: 10 !important;
  }

  .mobile-sidebar-logo img {
    height: 35px !important;
    width: auto !important;
  }

  .mobile-sidebar-close {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 18px !important;
    transition: all 0.3s !important;
  }

  .mobile-sidebar-close:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
  }

  /* Mobile sidebar menu */
  .mobile-sidebar-menu {
    padding: 16px 0 !important;
  }

  .mobile-sidebar-menu-item {
    display: flex !important;
    align-items: center !important;
    padding: 14px 20px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border-left: 3px solid transparent !important;
    background: transparent !important;
    margin: 0 !important;
  }

  .mobile-sidebar-menu-item i.fas:first-child {
    width: 20px !important;
    margin-right: 16px !important;
    font-size: 18px !important;
    color: #ffffff !important;
    flex-shrink: 0 !important;
  }

  .mobile-sidebar-menu-item span {
    flex: 1 !important;
    color: #ffffff !important;
  }

  .mobile-sidebar-menu-item:hover {
    background: rgba(187, 68, 240, 0.1) !important;
    color: #BB44F0 !important;
  }

  .mobile-sidebar-menu-item:hover i {
    color: #BB44F0 !important;
  }

  .mobile-sidebar-menu-item.active,
  .mobile-sidebar-menu-item.open {
    background: linear-gradient(135deg, #BB44F0 0%, #BB44F0 100%) !important;
    border-left: 3px solid #BB44F0 !important;
  }

  .mobile-sidebar-menu-item .submenu-arrow {
    margin-left: auto !important;
    font-size: 12px !important;
    transition: transform 0.3s ease !important;
    color: #ffffff !important;
  }

  .mobile-sidebar-menu-item.open .submenu-arrow {
    transform: rotate(90deg) !important;
  }

  /* Mobile submenu */
  .mobile-sidebar-submenu {
    display: none !important;
    background: rgba(0, 0, 0, 0.2) !important;
    padding-left: 20px !important;
  }

  .mobile-sidebar-submenu.open {
    display: block !important;
  }

  .mobile-sidebar-submenu-item {
    display: block !important;
    padding: 10px 20px !important;
    padding-left: 56px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
    border-left: 3px solid transparent !important;
  }

  .mobile-sidebar-submenu-item i {
    margin-right: 12px !important;
    color: rgba(255, 255, 255, 0.7) !important;
  }

  .mobile-sidebar-submenu-item:hover {
    color: #BB44F0 !important;
    border-left-color: #BB44F0 !important;
    background: rgba(187, 68, 240, 0.05) !important;
  }

  .mobile-sidebar-submenu-item:hover i {
    color: #BB44F0 !important;
  }

  /* Mobile sidebar scrollbar */
  .mobile-sidebar::-webkit-scrollbar {
    width: 6px !important;
  }

  .mobile-sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2) !important;
  }

  .mobile-sidebar::-webkit-scrollbar-thumb {
    background: rgba(187, 68, 240, 0.4) !important;
    border-radius: 3px !important;
  }

  .mobile-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(187, 68, 240, 0.6) !important;
  }
}

/* ===================================================================== */
/* ENSURE DESKTOP DESIGN IS UNTOUCHED */
/* ===================================================================== */

@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none !important;
  }

  .mobile-sidebar,
  .mobile-sidebar-overlay {
    display: none !important;
  }

  body {
    padding-bottom: 0 !important;
  }
}