body{
    background-color:var(--main-bg)!important;
    font-family:var(--font-family)
}

/* Header Navigation Hover Effects */
.hero-nav1 .line {
    color: #0c3b56 !important;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

.hero-nav1 .line:hover {
    color: #44a7e1 !important; /* Change to the accent blue on hover */
}


/* Mobile Navigation Improvements */
@media (max-width: 767.98px) {
  /* Reduce overall padding for mobile menu */
  .mobile-menu-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 1rem !important; /* Reduced from 1rem 1.25rem */
    border-radius: 0 0 1.5rem 1.5rem;
    box-shadow: none;
    box-sizing: border-box;
    margin-bottom: 0;
  }

  /* Reduce mobile menu item size and spacing */
  .mobile-menu-item {
    display: block;
    padding: 0.5rem 0.75rem !important; /* Reduced padding */
    margin: 0.2rem 0 !important; /* Reduced margin */
    font-size: 0.9rem !important; /* Reduced font size */
    font-weight: 500;
    color: #0c3b56;
    background-color: transparent;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none !important;
    text-align: left;
  }

  .mobile-menu-item:hover,
  .mobile-menu-item:focus {
    background-color: #f0f4fc;
    color: #0a2e45;
    text-decoration: none;
    transform: translateX(3px); /* Reduced movement */
  }

  /* Language dropdown improvements */
  .mobile-menu-wrapper .dropdown {
    position: relative !important;
    margin: 0.2rem 0 !important;
  }

  /* Style the language button to match other menu items */
  .mobile-menu-wrapper .dropdown .btn {
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.9rem !important;
    font-weight: 500;
    color: #0c3b56;
    background-color: transparent;
    border: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
  }

  .mobile-menu-wrapper .dropdown .btn:hover {
    background-color: #f0f4fc;
    color: #0a2e45;
  }

  /* Language icon alignment */
  .mobile-menu-wrapper #langDropdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-menu-wrapper #langDropdown::after {
    content: '';
    border: solid #0c3b56;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    margin-left: auto;
  }

  /* Language dropdown menu */
  .mobile-menu-wrapper .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0.25rem 0 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    background-color: #ffffff !important;
    z-index: 1050 !important;
    max-height: 200px !important; /* Limit height */
    overflow-y: auto !important;
    padding: 0.25rem !important;
  }

  /* Language dropdown items */
  .mobile-menu-wrapper .dropdown-item {
    padding: 0.4rem 0.75rem !important;
    font-size: 0.85rem !important;
    color: #0c3b56 !important;
    border-radius: 0.25rem;
    transition: background 0.2s ease;
  }

  .mobile-menu-wrapper .dropdown-item:hover {
    background-color: #f0f4fc !important;
  }

  .mobile-menu-wrapper .dropdown-item.active {
    background-color: #e6f3ff !important;
    color: #0c3b56 !important;
    font-weight: 600;
  }

  /* Button group spacing */
  .mobile-menu-wrapper .d-grid {
    margin-top: 0rem !important;
  }

  /* Login and signup buttons */
  .mobile-menu-wrapper .btn-primary,
  .mobile-menu-wrapper .btn-outline-secondary {
    padding: 0.5rem 1rem !important; /* Reduced padding */
    font-size: 0.9rem !important; /* Reduced font size */
    font-weight: 600;
    border-radius: 50px;
  }

  /* Settings link styling */
  .mobile-menu-wrapper a[data-bs-toggle="modal"] {
    display: block;
    padding: 0.5rem 0.75rem !important;
    margin: 0.2rem 0 !important;
    font-size: 0.9rem !important;
    font-weight: 500;
    color: #0c3b56;
    background-color: transparent;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none !important;
  }

  .mobile-menu-wrapper a[data-bs-toggle="modal"]:hover {
    background-color: #f0f4fc;
    color: #0a2e45;
  }

  /* Logout button styling */
  .mobile-menu-wrapper .btn.logout1 {
    width: 100%;
    padding: 0.5rem 0.75rem !important;
    margin: 0.2rem 0 !important;
    font-size: 0.9rem !important;
    font-weight: 500;
    background-color: transparent;
    border: none;
    border-radius: 0.5rem;
    color: #dc3545 !important;
    transition: all 0.2s ease;
    text-align: left;
  }

  .mobile-menu-wrapper .btn.logout1:hover {
    background-color: #fee;
    color: #c82333 !important;
  }

  /* Overall mobile navbar adjustments */
  #mobileNavbar {
    background-color: #ffffff !important;
    border-radius: 0 0 1rem 1rem !important; /* Slightly reduced radius */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
    padding: 0 !important;
    margin-top: -1px;
    margin-bottom: 0;
  }

  /* Smooth collapse animation */
  #mobileNavbar.collapsing {
    transition: height 0.2s ease;
  }

  /* Add divider between sections */
  .mobile-menu-wrapper > nav > *:not(:last-child) {
    border-bottom: 1px solid #f0f4fc;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
  }

  /* Remove divider from language dropdown */
  .mobile-menu-wrapper .dropdown {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0.2rem !important;
  }

  /* Compact form for logout */
  .mobile-menu-wrapper form {
    margin: 0 !important;
  }

  /* Fix for very small screens */
  @media (max-width: 375px) {
    .mobile-menu-item,
    .mobile-menu-wrapper .dropdown .btn,
    .mobile-menu-wrapper a[data-bs-toggle="modal"],
    .mobile-menu-wrapper .btn.logout1 {
      font-size: 0.85rem !important;
      padding: 0.4rem 0.6rem !important;
    }

    .mobile-menu-wrapper .btn-primary,
    .mobile-menu-wrapper .btn-outline-secondary {
      font-size: 0.85rem !important;
      padding: 0.4rem 0.8rem !important;
    }
  }
}

/* Additional fix for language text */
.mobile-menu-wrapper #langDropdown {
  font-family: inherit !important;
}

/* Replace emoji with text for language button */
.mobile-menu-wrapper #langDropdown::before {
  content: "Language";
  margin-right: 0.5rem;
}

/* Hide the emoji */
.mobile-menu-wrapper #langDropdown {
  font-size: 0 !important;
}

.mobile-menu-wrapper #langDropdown::before,
.mobile-menu-wrapper #langDropdown::after {
  font-size: 0.9rem !important;
}

.form-container{
    background:#fff;
    max-width:450px;
    width:100%;
    border-radius:10px;
    box-shadow:0 5px 30px rgba(0,0,0,.05);
    padding:30px
}
.header-btn{
    padding:6px 16px;
    border:2px solid #212529;
    border-radius:6px;
    background-color:transparent;
    color:#212529;
    font-size:15px;
    font-weight:500;
    transition:all .3s ease
}
.header-btn:hover{
    background-color:#212529;
    color:#fff
}
.header-btn.signup{
    border-color:#dc3545;
    color:#dc3545
}
.header-btn.signup:hover{
    background-color:#dc3545;
    color:#fff
}
.accordion-body,.accordion-item{
    background-color:#fff;
    color:#212529;
    border-radius:10px;
    border:1px solid #dee2e6
}
.alert{
    font-size:.95rem;
    border-radius:6px
}
body.dark-mode{
    background-color:#121212;
    color:#e0e0e0
}
body.dark-mode .navbar{
    background:#1f1f1f;
    box-shadow:0 4px 12px rgba(0,0,0,.4)
}
body.dark-mode .dropdown-item,body.dark-mode .dropdown-menu,body.dark-mode .nav-link,body.dark-mode .navbar-brand{
    color:#e0e0e0!important
}
body.dark-mode .dropdown-menu{
    background-color:#2b2b2b;
    border-color:#444
}
body.dark-mode .btn{
    background-color:#2c2c2c;
    color:#e0e0e0;
    border-color:#555
}
body.dark-mode .btn:hover{
    background-color:#3a3a3a
}
body.dark-mode .modal-content{
    background-color:#1e1e1e;
    color:#e0e0e0;
    border:1px solid #444
}
.settings-modal{
    background-color:#fff;
    color:#212529;
    border-radius:10px;
    overflow:hidden
}
.settings-sidebar{
    width:180px;
    border-right:1px solid #dee2e6;
    background-color:#f8f9fa;
    display:flex;
    flex-direction:column;
    gap:10px;
    padding:10px 0
}
body.dark-mode .settings-modal{
    background-color:#1e1e1e;
    color:#e0e0e0
}
body.dark-mode .settings-sidebar{
    background-color:#1a1a1a;
    border-right:1px solid #444
}
.user-avatar{
    width:38px;
    height:38px;
    background-color:#2f3b53;
    color:#fff;
    font-weight:600;
    font-size:14px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 2px 6px rgba(0,0,0,.2)
}
.user-avatar:hover{
    background-color:#1f2a3d
}
.settings-modal{
    height:550px;
    max-height:550px;
    overflow:hidden
}
.settings-content{
    overflow-y:auto;
    height:100%;
    padding-right:10px
}
.settings-sidebar{
    min-height:100%
}
:root{
    --sidebar-bg:linear-gradient(135deg, #667eea, #764ba2);
    --sidebar-color:#ffffff;
    --accent-color:#ff7b39;
    --header-bg:#ffffff;
    --header-text:#212529;
    --main-bg:#ffffff;
    --font-family:'Inter';
    --nav-hover:#E4F2FB;
    --accent-blue:#44A7E1;
    --accent-blue-d:#44A7E1;
    --hero-bg:#ffffff;
    --hero-inner-bg:#F4F8F4;
    --shadow-light:rgba(0,0,0,0.05);
    --shadow-medium:rgba(0,0,0,0.08)
}
a{
    text-decoration:none
}
a:hover{
    text-decoration:none
}
#mainContent{
    transition:margin-left .3s ease;
    margin-left:0;
    padding:0
}
body,html{
    overflow-x:hidden
}
.container{
    max-width:1140px;
    margin:0 auto;
    padding:0 1rem
}
.menu-title{
    font-weight:600;
    margin-bottom:1rem
}
.menu-list li{
    margin-bottom:.5rem
}
.menu-link{
    display:block;
    background:#fff;
    padding:.5rem 1rem;
    border-radius:6px;
    color:#1a1a1a;
    box-shadow:0 1px 4px var(--shadow-light);
    transition:background .2s
}
.menu-link:hover{
    background:#f0f0f0
}
.home-page .navbar{
    background-color:var(--hero-bg)!important;
    box-shadow:none!important;
    border:none!important;
    padding:0
}
/* .home-page .navbar .nav-link,.home-page .navbar .navbar-brand{
    color:#0c3b56!important
} */
.navbar .btn-login{
    border:none;
    background:linear-gradient(to right,var(--accent-blue),var(--accent-blue-d));
    color:#fff;
    font-weight:600;
    box-shadow:0 2px 8px rgba(0,0,0,.1);
    transition:background .2s,transform .1s
}
.navbar .btn-login:hover{
    background:var(--accent-blue-d);
    transform:translateY(-1px)
}
.navbar .btn-signup{
    background:#fff;
    color:var(--accent-blue);
    font-weight:600;
    box-shadow:0 2px 8px rgba(0,0,0,.1);
    transition:background .2s,color .2s
}
.navbar .btn-signup:hover{
    background:var(--accent-blue);
    color:#fff
}
.avatar-button.dropdown-toggle{
    width:40px;
    height:40px;
    padding:0;
    border:none;
    background-color:#0c3b56;
    color:#fff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.2rem;
    transition:transform .1s,box-shadow .1s;
    position:relative
}
.avatar-button.dropdown-toggle::after{
    display:none!important
}
.avatar-button.dropdown-toggle:hover{
    transform:translateY(-2px);
    box-shadow:0 2px 6px rgba(0,0,0,.2)
}
:root{
    --sidebar-collapsed:60px;
    --sidebar-expanded:255px;
    --nav-offset-collapsed:4.5rem;
    --nav-offset-expanded:15.9375rem
}
.sidebar{
    position:fixed;
    top:0;
    left:0;
    bottom:0;
    display:grid;
    grid-template-columns:var(--sidebar-collapsed) 0;
    z-index:0;
    overflow-y:auto;
    transition:grid-template-columns .25s ease
}
.tools-expanded{
    transform-origin:left var(--sidebar-origin-y,center);
    transform:scaleX(0);
    transition:transform .25s ease;
    display:block
}
.sidebar.expanded .tools-expanded{
    transform:scaleX(1)
}
.sidebar.expanded{
    width:var(--sidebar-expanded);
    grid-template-columns:var(--sidebar-collapsed) var(--sidebar-expanded)
}
.sidebar-inner{
    display:flex;
    flex-direction:column;
    align-items:center;
    height:100%;
    padding:.5rem 0
}
.sidebar-pipe{
    display:flex;
    flex-direction:column;
    align-items:center;
    background:#d4cdcd;
    border-radius:12px;
    width:44px;
    margin:.5rem auto;
    padding:.25rem 0;
    gap:.25rem;
    box-shadow:0 2px 6px rgba(0,0,0,.05);
    transition:all .2s ease
}
.sidebar.expanded .sidebar-pipe{
    background:0 0;
    width:100%;
    margin:0;
    padding:0;
    box-shadow:none
}
.sidebar-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    padding:.5rem 0;
    position:relative;
    overflow:hidden;
    transition:padding .2s ease
}
.sidebar-icon::after{
    content:attr(data-label);
    margin-left:.5rem;
    white-space:nowrap;
    display:none;
    color:#0c3b56;
    font-size:.9rem
}
.sidebar.expanded .sidebar-icon{
    justify-content:flex-start;
    padding:.4rem 1rem
}
.sidebar.expanded .sidebar-icon::after{
    display:inline-block
}
.sidebar-header{
    display:none;
    width:100%;
    padding:.4rem 1rem;
    font-size:.75rem;
    font-weight:600;
    color:#0c3b56;
    text-transform:uppercase
}
.sidebar.expanded .sidebar-header{
    display:block
}
.navbar.with-sidebar .px-4{
    padding-left:var(--nav-offset-collapsed)!important;
    transition:padding-left .2s ease
}
.navbar.with-sidebar.expanded .px-4{
    padding-left:var(--nav-offset-expanded)!important
}
.tools-collapsed{
    display:flex;
    flex-direction:column
}
.tools-expanded{
    display:none
}
.sidebar.expanded .tools-collapsed{
    display:none
}
.sidebar.expanded .tools-expanded{
    display:block
}
.tool-list{
    list-style:none;
    margin:0;
    padding:0
}
.tool-item{
    border-radius:.25rem;
    margin-bottom:.25rem;
    overflow:hidden
}
.tool-link{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:.5rem 1rem;
    cursor:pointer
}
.tool-link img{
    margin-right:.75rem
}
.tool-link .chevron{
    transition:transform .2s ease
}
.sub-tools{
    list-style:none;
    margin:0;
    padding:0 1.5rem .5rem;
    display:none
}
.sub-tools li a{
    display:block;
    padding:.25rem 0;
    color:#0c3b56;
    text-decoration:none
}
.tool-item.open .chevron{
    transform:rotate(180deg)
}
.tool-item.open .sub-tools{
    display:block
}
.sidebar{
    position:fixed;
    top:0;
    left:0;
    bottom:0;
    width:var(--sidebar-collapsed);
    background:rgba(68,167,225,.15);
    display:flex;
    flex-direction:column;
    z-index:0;
    overflow-y:auto
}
.sidebar-inner{
    display:flex;
    flex-direction:column;
    align-items:center;
    padding:.5rem 0;
    background-color:#e8f2fc!important;
    flex:1
}
.sidebar.expanded .tool-list .tool-link{
    padding:.75rem 1rem;
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-bottom:1px solid #d7eaf5;
    background:#fff
}
.sidebar.expanded .sub-tools{
    background:#fff
}
.sidebar.expanded .sub-tools li a{
    display:block;
    padding:.5rem 1.5rem;
    border-bottom:1px solid #d7eaf5;
    text-decoration:none;
    color:#0c3b56
}
.sidebar.expanded .sub-tools li:last-child a{
    border-bottom:none
}
.sidebar.expanded .tool-item .sub-tools{
    background-color:rgba(234,244,251,.3);
    border-radius:0 0 .75rem .75rem;
    padding-top:.5rem
}
.sidebar.expanded .sub-tools li a{
    background-color:transparent
}
.navbar.with-sidebar.expanded .px-4{
    padding-left:var(--nav-offset-expanded)!important
}
.sidebar.expanded .tool-list .tool-link{
    padding:.75rem 1.25rem;
    display:flex;
    align-items:center;
    justify-content:space-between
}
.sidebar.expanded .tool-link .group-setting img{
    margin-right:1rem
}
.sidebar.expanded .tool-link .group-setting span{
    flex:1
}
.sidebar.expanded .tool-link .chevron{
    margin-left:auto
}
.sidebar.expanded .tools-expanded .sub-tools{
    background:0 0;
    border-radius:0;
    margin:0;
    padding:0
}
.sidebar.expanded .tool-list .tool-link{
    background:#fff;
    border-bottom:1px solid #d7eaf5
}
.sidebar.expanded .tool-list .tool-item:last-child .tool-link{
    border-bottom:none
}
.sidebar.expanded .sub-tools li a{
    display:block;
    padding:.5rem 1.5rem;
    background:0 0;
    color:#0c3b56;
    text-decoration:none;
    white-space:normal;
    word-break:break-word
}
.sidebar.expanded .sub-tools li+li a{
    border-top:1px solid #d7eaf5
}
.sidebar.expanded .sub-tools li a{
    border:none!important
}
.sidebar.expanded .tool-item .sub-tools{
    background-color:rgba(234,244,251,.2);
    border-radius:0 0 .75rem .75rem;
    padding:.5rem 1rem
}
.group-history .entry-list,.group-history .sub-tools{
    display:none
}
.group-history .tool-item.open>.sub-tools{
    display:block
}
.group-history .subtool-item.open>.entry-list{
    display:block
}
.sidebar.expanded .group-history .tool-list{
    background-color:#fff;
    border:1px solid #d7eaf5;
    border-radius:.75rem;
    margin:.5rem 1rem;
    overflow:hidden
}
.sidebar.expanded .group-history .tool-list .tool-item>.tool-link{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:.75rem 1rem;
    background:#fff;
    border-bottom:1px solid #d7eaf5
}
.sidebar.expanded .group-history .tool-list .tool-item:last-child>.tool-link{
    border-bottom:none
}
.sidebar.expanded .group-history .entry-list,.sidebar.expanded .group-history .sub-tools{
    display:none
}
.sidebar.expanded .group-history .tool-item.open>.sub-tools{
    display:block
}
.sidebar.expanded .group-history .sub-tools li a{
    display:block;
    padding:.5rem 1.5rem;
    background:#eaf4fb;
    border-bottom:none
}
.sidebar.expanded .tool-link{
    padding:.5rem .75rem;
    font-size:.875rem
}
.sidebar.expanded .tool-link .bi,.sidebar.expanded .tool-link img{
    width:20px;
    height:20px;
    margin-right:.5rem
}
.sidebar:not(.expanded) .group-history{
    display:none!important
}
.sidebar:not(.expanded) .history-toggle{
    display:block
}
.sidebar.expanded .history-toggle{
    display:none
}
.sidebar-pipe{
    background:rgba(68,167,225,.2)!important
}
.group-history .sidebar-icon{
    display:block;
    margin:.5rem auto
}
.sidebar:not(.expanded) .group-history .sidebar-header,.sidebar:not(.expanded) .group-history .tool-list{
    display:none!important
}
.sidebar.expanded .group-history .sidebar-icon{
    display:none!important
}
.history-toggle,.sidebar-pipe{
    background:rgba(68,167,225,.2);
    border-radius:12px;
    transition:background .2s
}
.sidebar-icon img{
    width:205px;
    height:20px
}
#sidebarToggle{
    background:0 0!important;
    border:none!important;
    box-shadow:none!important;
    padding:0
}
#sidebarToggle img{
    width:23px;
    height:27px
}
.sidebar:not(.expanded) .history-toggle{
    display:flex;
    justify-content:center;
    margin:.75rem auto
}
.sidebar.expanded .history-toggle{
    display:none!important
}
.sidebar:not(.expanded) .group-history{
    display:none!important
}
.sidebar.expanded .group-history{
    display:block!important
}
.sidebar.expanded .sidebar-pipe .sidebar-header{
    font-size:.875rem;
    padding:.5rem 1rem
}
.sidebar.expanded .group-history .tool-link,.sidebar.expanded .tool-list .tool-link{
    padding:.5rem .75rem;
    font-size:.875rem
}
.history-toggle{
    width:45px;
    padding:.9rem 0;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(68,167,225,.2);
    border-radius:12px;
    margin:.5rem auto
}
.sidebar:not(.expanded) .group-history{
    display:none!important
}
.sidebar.expanded .history-toggle{
    display:none!important
}
.sidebar.expanded .group-history .tool-list,.sidebar.expanded .group-tools .tool-list{
    background-color:#fff;
    border:1px solid #d7eaf5;
    border-radius:.75rem;
    margin:.5rem 1rem;
    overflow:hidden
}
.sidebar.expanded .group-history .tool-list .tool-item>.tool-link,.sidebar.expanded .tool-list .tool-item>.tool-link{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:.5rem 1rem;
    cursor:pointer;
    border-bottom:1px solid #d7eaf5
}
.sidebar.expanded .group-history .tool-list .tool-item:last-child>.tool-link,.sidebar.expanded .tool-list .tool-item:last-child>.tool-link{
    border-bottom:none;
    border-radius: 12px !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    margin-top: 0px;
    border-top-right-radius: 0 !important;
}
.sidebar.expanded .group-history .tool-link .bi,.sidebar.expanded .group-history .tool-link img,.sidebar.expanded .tool-link .bi,.sidebar.expanded .tool-link img{
    width:20px;
    height:20px;
    margin-right:.75rem
}
.sidebar.expanded .group-history .tool-link span,.sidebar.expanded .tool-link span{
    flex:1;
    font-size:.9rem;
    color:#0c3b56
}
.sidebar.expanded .group-history .tool-link .chevron,.sidebar.expanded .tool-link .chevron{
    margin-left:auto
}
.sidebar:not(.expanded) .history-toggle,.sidebar:not(.expanded) .sidebar-pipe{
    background:rgba(255,255,255,.55)!important
}
.sidebar.expanded .history-toggle,.sidebar.expanded .sidebar-pipe{
    background:0 0!important
}
.settings-collapsed{
    display:flex;
    flex-direction:column
}
.settings-expanded{
    display:none
}
.sidebar.expanded .settings-collapsed{
    display:none!important
}
.sidebar.expanded .settings-expanded{
    display:block!important
}
.sidebar:not(.expanded) .settings-collapsed{
    display:flex!important
}
.sidebar:not(.expanded) .settings-expanded{
    display:none!important
}
.sidebar.expanded .settings-expanded .tool-list{
    background-color:#fff;
    border:1px solid #d7eaf5;
    border-radius:.75rem;
    margin:.5rem 1rem;
    overflow:hidden
}
.sidebar.expanded .settings-expanded .tool-item>.tool-link{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:.5rem 4.4rem;
    background:#fff;
    border-bottom:1px solid #d7eaf5
}
.sidebar.expanded .settings-expanded .tool-item:last-child>.tool-link{
    border-bottom:none
}
.sidebar.expanded .settings-expanded .tool-link .bi,.sidebar.expanded .settings-expanded .tool-link img{
    width:20px;
    height:20px;
    margin-right:.75rem
}
.sidebar.expanded .settings-expanded .tool-link span{
    flex:1;
    font-size:.9rem;
    color:#0c3b56
}
.sidebar.expanded .tool-link .bi,.sidebar.expanded .tool-link img{
    width:20px;
    height:20px;
    margin-right:.75rem
}
.icon-filter-black{
    filter:brightness(0) saturate(100%)
}
.sidebar.expanded .sidebar-icon{
    justify-content:flex-start
}
.sidebar.expanded .group-history .subtool-item.open>.entry-list{
    display:block!important
}
.sidebar.expanded .settings-expanded .tool-list .tool-item>.tool-link{
    border-bottom:none!important;
    justify-content:flex-start!important;
    padding:.5rem 8rem .5rem 1.25rem!important
}
.sidebar.expanded .settings-expanded .tool-list .tool-item+.tool-item>.tool-link{
    border-top:none!important
}
.sidebar.expanded .settings-expanded .tool-link .bi,.sidebar.expanded .settings-expanded .tool-link img{
    margin-right:.75rem
}
.sidebar.expanded .group-history .tool-link img,.sidebar.expanded .settings-expanded .tool-link img,.sidebar.expanded .tool-list .tool-link img{
    width:16px;
    height:16px;
    margin-right:.5rem
}
.sidebar.expanded .sidebar-icon::after{
    font-size:.8rem
}
.sidebar.expanded .group-history .tool-link span,.sidebar.expanded .settings-expanded .tool-link span,.sidebar.expanded .tool-list .tool-link span{
    font-size:.85rem
}
.sidebar.expanded .group-history .tool-list .tool-link,.sidebar.expanded .settings-expanded .tool-list .tool-link,.sidebar.expanded .tool-list .tool-link{
    padding:.4rem .75rem
}
.sidebar.expanded .sidebar-header{
    position:relative;
    padding:.4rem 1rem;
    margin-bottom:.5rem
}
.sidebar.expanded .sidebar-header::after{
    content:"";
    position:absolute;
    bottom:0;
    left:1rem;
    right:1rem;
    height:.5px;
    background-color:rgba(68,167,225,.5)
}
.sidebar.expanded .group-history .tool-list,.sidebar.expanded .group-setting .tool-list,.sidebar.expanded .group-tools .tool-list{
    background-color:rgba(255,255,255,.55)!important;
    border:1px solid #d7eaf5;
    border-radius:.75rem;
    margin:.5rem 1rem;
    overflow:hidden;
    padding-bottom:.5rem
}
.sidebar.expanded .group-history .tool-list,.sidebar.expanded .group-tools .tool-list{
    margin:.5rem .75rem
}
.sidebar.expanded .group-history .tool-list .tool-link,.sidebar.expanded .group-setting .tool-list .tool-link,.sidebar.expanded .group-tools .tool-list .tool-link{
    border-bottom:none!important
}
.sidebar.expanded .tools-expanded .tool-list{
    margin-left:1.25rem;
    margin-right:1.25rem
}
.sidebar.expanded .group-history .tool-list,.sidebar.expanded .group-setting .tool-list,.sidebar.expanded .group-tools .tool-list{
    background-color:rgba(255,255,255,.55)!important;
    border:1px solid #d7eaf5;
    border-radius:.75rem;
    margin:.5rem 1rem;
    overflow:hidden;
    padding-bottom:.5rem
}
.sidebar.expanded .group-history .tool-list .tool-item>.tool-link,.sidebar.expanded .group-setting .tool-list .tool-item>.tool-link,.sidebar.expanded .group-tools .tool-list .tool-item>.tool-link{
    background-color:rgba(255,255,255,.55)!important
}
.sidebar.expanded .group-history .tool-list .tool-item>.tool-link{
    width: 229px;
    height: 30px;
    top: 0px;
    margin-top: 0px;
    margin-bottom: 0rem !important;
    bottom: 4px;
    left: -14px !important;
    right: 17px !important;
    position: relative;
    background-color: rgba(255, 255, 255, .15) !important;
    /* border-top: 1px solid #d7eaf5 !important; */
    /* border-radius: 5rem; */
}
.sidebar.expanded .group-history .tool-list .sub-tools,.sidebar.expanded .group-setting .tool-list .sub-tools,.sidebar.expanded .group-tools .tool-list .sub-tools{
    background-color:rgba(68,167,225,.15)!important
}
.sidebar.expanded .group-history .tool-list,.sidebar.expanded .group-tools .tool-list{
    margin:.5rem .75rem
}
.sidebar.expanded .sidebar-header{
    margin-bottom:.25rem
}
.sidebar.expanded .sidebar-header::after{
    bottom:.15rem
}
.sidebar.expanded .group-history .tool-list,.sidebar.expanded .group-setting .tool-list,.sidebar.expanded .tools-expanded .tool-list{
    margin:.25rem 1rem;
    padding-bottom:.25rem
}
.sidebar.expanded .tool-list .tool-item{
    margin-bottom:0
}
.sidebar.expanded .group-history .tool-link,.sidebar.expanded .settings-expanded .tool-link,.sidebar.expanded .tool-list .tool-link{
    padding:.25rem .75rem
}
.sidebar.expanded .group-history .tool-list,.sidebar.expanded .settings-expanded .tool-list,.sidebar.expanded .tools-expanded .tool-list{
    background-color:rgba(255,255,255,.55)!important;
    border:1px solid #d7eaf5;
    border-radius:.75rem;
    margin:.25rem 1rem!important;
    padding-bottom:.25rem!important;
    overflow:hidden
}
.sidebar.expanded .group-history .tool-list .tool-item,.sidebar.expanded .settings-expanded .tool-list .tool-item,.sidebar.expanded .tool-list .tool-item{
    margin-bottom:0;
    border-bottom:none!important
}
.sidebar.expanded .group-history .tool-link,.sidebar.expanded .settings-expanded .tool-link,.sidebar.expanded .tool-list .tool-link{
    padding:.25rem .75rem!important
}
.sidebar.expanded .tools-expanded .tool-item.open>.sub-tools{
    margin:.25rem 1rem!important;
    padding:0!important;
    border:1px solid #d7eaf5;
    border-radius:.5rem;
    background:rgba(255,255,255,.55)!important;
    overflow:hidden
}
.sidebar.expanded .tools-expanded .tool-item.open .sub-tools li a{
    display:flex!important;
    align-items:center;
    justify-content:space-between;
    padding:.2rem .75rem!important;
    margin:0!important;
    font-size:.85rem!important;
    color:#0c3b56!important;
    text-decoration:none!important;
    line-height:1.2!important
}
.sidebar.expanded .tools-expanded .tool-item.open .sub-tools li a .bi,.sidebar.expanded .tools-expanded .tool-item.open .sub-tools li a img{
    width:16px!important;
    height:16px!important;
    margin-right:.5rem!important
}
.sidebar.expanded .tools-expanded .tool-item.open .sub-tools,.sidebar.expanded .tools-expanded .tool-item.open .sub-tools li{
    list-style:none;
    padding:0;
    margin:0
}
.sidebar.expanded .group-history .sub-tools{
    margin:.25rem 1rem!important;
    padding:0!important;
    background:rgba(255,255,255,.55)!important;
    border:1px solid #d7eaf5!important;
    border-radius:.5rem!important;
    overflow:hidden!important
}
.sidebar.expanded .group-history .subtool-item>.subtool-link{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    padding:.25rem .75rem!important;
    font-size:.85rem!important;
    line-height:1.2!important;
    color:#0c3b56!important;
    cursor:pointer
}
.sidebar.expanded .group-history .subtool-item>.subtool-link .chevron{
    font-size:.85rem!important;
    margin-left:.5rem!important
}
.sidebar.expanded .group-history .entry-list li a{
    display:block!important;
    padding:.2rem .75rem!important;
    font-size:.8rem!important;
    color:#0c3b56!important;
    text-decoration:none!important
}
.sidebar.expanded .group-history .entry-list li+li a{
    margin-top:0!important;
    border-top:1px solid #d7eaf5!important
}
.sidebar.expanded .group-history .entry-list,.sidebar.expanded .group-history .entry-list li,.sidebar.expanded .group-history .sub-tools,.sidebar.expanded .group-history .sub-tools li{
    margin:0!important;
    padding:0!important;
    list-style:none!important;
    border-radius: 0px !important;
}
.sidebar.expanded .group-history .tool-list{
    background:0 0!important;
    border:none!important;
    padding:0!important;
    margin:0 1rem
}
.sidebar.expanded .group-history .tool-item>.tool-link{
    display:flex;
    align-items:center;
    background-color:rgba(255,255,255,.55)!important;
    border-radius:.5rem;
    padding:.5rem 1rem;
    margin-bottom:.2rem;
    text-decoration:none
}
.sidebar.expanded .group-history .tool-item>.tool-link{
    border:none!important
}
.sidebar.expanded .group-history .tool-link .bi,.sidebar.expanded .group-history .tool-link img{
    width:16px;
    height:16px;
    margin-right:.5rem
}
.sidebar.expanded .group-history .tool-link span{
    flex:1;
    font-size:.80rem;
    color:#0c3b56
}
.sidebar.expanded .group-history .sub-tools{
    padding-left:0;
    margin:0 1.5rem
}
.sidebar.expanded .group-history .subtool-item>.subtool-link{
    display:flex;
    align-items:center;
    background-color:rgba(255,255,255,.55)!important;
    border-radius:.5rem;
    padding:.4rem .75rem;
    margin-bottom:.4rem;
    cursor:pointer
}
.sidebar.expanded .group-history .subtool-item>.subtool-link .chevron{
    margin-left:auto;
    font-size:.75rem
}
.sidebar.expanded .group-history .entry-list{
    margin:.25rem 2rem;
    list-style:none
}
.sidebar.expanded .group-history .entry-list li+li{
    margin-top:.25rem
}
.sidebar.expanded .group-history .tool-list{
    margin:.5rem 1rem!important
}
.sidebar.expanded .tools-expanded>.tool-list{
    background-color:rgba(255,255,255,.55)!important;
    border:1px solid #d7eaf5;
    border-radius:.75rem;
    margin:.25rem 1rem;
    padding-bottom:.25rem;
    overflow:hidden
}
.sidebar.expanded .tools-expanded>.tool-list .tool-item>.tool-link{
    background-color:transparent!important
}
.sidebar.expanded .tools-expanded .tool-item.open>.sub-tools{
    background-color:rgba(255,255,255,.55)!important;
    border:1px solid #d7eaf5;
    border-radius:.5rem;
    margin:.25rem 1.25rem;
    padding:0;
    overflow:hidden
}
.sidebar.expanded .tools-expanded .tool-item.open .sub-tools li a{
    background-color:transparent!important
}
.sidebar.expanded .group-setting .tool-list,.sidebar.expanded .group-tools .tool-list{
    background-color:rgba(255,255,255,.55)!important;
    border:1px solid #d7eaf5;
    border-radius:.75rem;
    margin: 0rem 1rem !important;
    margin-top: 0.2rem !important;
    padding-bottom:.25rem;
    overflow:hidden
}
.sidebar.expanded .group-setting .tool-list{
    background-color:rgba(255,255,255,.55)!important;
    border:1px solid #d7eaf5;
    border-radius:.75rem;
    margin:.25rem 1rem;
    padding-bottom:.25rem;
    overflow:hidden
}
.sidebar.expanded .group-setting .tool-item>.tool-link{
    background:rgba(255,255,255,.55)!important;
    border-bottom:none!important;
    justify-content:flex-start!important;
    padding:.25rem .75rem!important
}
.sidebar.expanded .group-setting .tool-link>.bi,.sidebar.expanded .group-setting .tool-link>img{
    margin-right:.5rem;
    width:16px;
    height:16px
}
.sidebar.expanded .group-setting .tool-link span{
    flex:1;
    font-size:.85rem;
    color:#0c3b56
}
.sidebar.expanded .group-setting .tool-item{
    margin-bottom:0
}
.sidebar.expanded .tools-expanded .tool-item.open>.tool-link{
    border-bottom:none!important
}
.sidebar.expanded .tools-expanded .tool-item.open>.sub-tools{
    margin:0!important;
    padding:0!important;
    border:none!important;
    background:0 0!important
}
.sidebar.expanded .tools-expanded .tool-item.open .sub-tools li a{
    display:block!important;
    width:100%!important;
    margin:0!important;
    padding:.5rem 1rem!important;
    background-color:rgba(68,167,225,.15)!important;
    border-radius:0!important;
    text-decoration:none!important;
    color:#0c3b56!important
}
.sidebar.expanded .tools-expanded .tool-item.open+.tool-item>.tool-link{
    border-top:none!important
}
.sidebar.expanded .tools-expanded .tool-item.open>.sub-tools{
    margin:0!important;
    padding:0!important;
    background:rgba(68,167,225,.15)!important;
    border-radius:0!important
}
.sidebar.expanded .tools-expanded .tool-item.open .sub-tools li a{
    border-radius:0!important;
    margin:0!important;
    padding: 0.3rem 1rem !important;
    border-top: 1px solid #d7eaf5 !important;
}
.sidebar.expanded .settings-expanded .tool-list{
    background-color:rgba(255,255,255,.55)!important;
    border:1px solid #d7eaf5;
    border-radius:.75rem;
    margin:.5rem 1rem;
    overflow:hidden;
    padding:0
}
.sidebar.expanded .settings-expanded .tool-list .tool-item>.tool-link{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:.5rem 1rem;
    background:#fff;
    border-bottom:1px solid #d7eaf5
}
.sidebar.expanded .settings-expanded .tool-list .tool-item:last-child>.tool-link{
    border-bottom:none
}
.sidebar.expanded .settings-expanded .tool-link .bi,.sidebar.expanded .settings-expanded .tool-link img{
    width:16px;
    height:16px;
    margin-right:.5rem
}
.sidebar.expanded .settings-expanded .tool-link span{
    flex:1;
    font-size:.85rem;
    color:#0c3b56
}
.sidebar.expanded .settings-expanded .tool-list{
    margin:.25rem 1rem!important;
    padding-bottom:0!important
}
.sidebar.expanded .settings-expanded .tool-list .tool-item>.tool-link{
    padding:.25rem .75rem;
    font-size:.85rem
}
.sidebar.expanded .settings-expanded .tool-list .tool-item{
    margin-bottom:0
}
.sidebar.expanded .settings-expanded .tool-link .bi,.sidebar.expanded .settings-expanded .tool-link img{
    width:14px;
    height:14px;
    margin-right:.5rem
}
.sidebar.expanded .group-history .tool-list{
    background-color:rgba(255,255,255,.55)!important;
    border:1px solid #d7eaf5;
    border-radius:.75rem;
    margin:.25rem 1rem!important;
    padding:0rem 0!important;
    overflow:hidden
}
.sidebar.expanded .group-history .tool-item>.tool-link{
    background-color:rgba(255,255,255,.55)!important;
    border-radius:.5rem;
    margin:.15rem .75rem;
    padding:.25rem .75rem;
    display:flex;
    align-items:center;
    justify-content:space-between;
    font-size:.85rem
}
.sidebar.expanded .group-history .tool-item>.tool-link{
    border:none!important
}
.sidebar.expanded .group-history .sub-tools{
    background-color:rgba(255,255,255,.55)!important;
    border:1px solid #d7eaf5;
    border-radius:.5rem;
    margin:.15rem 1rem .25rem;
    padding:0!important;
    overflow:hidden;
    list-style:none
}
.sidebar.expanded .group-history .subtool-item>.subtool-link{
    padding:.25rem .75rem;
    font-size:.85rem;
    display:flex;
    align-items:center;
    justify-content:space-between;
    cursor:pointer
}
.sidebar.expanded .group-history .subtool-link .chevron{
    font-size:.8rem
}
.sidebar.expanded .group-history .entry-list{
    margin:0!important;
    padding:0!important;
    list-style:none
}
.sidebar.expanded .group-history .entry-list li a{
    display:block;
    padding:.2rem .75rem;
    font-size:.8rem;
    color:#0c3b56;
    text-decoration:none
}
.sidebar.expanded .group-history .entry-list li+li a{
    border-top:1px solid #d7eaf5;
    margin-top:0!important
}
.sidebar-icon[data-label=Home] img{
    width:24px!important;
    height:24px!important
}
.sidebar-icon[data-label=Home]::after{
    font-size:1.1rem!important;
    font-weight:600
}
.sidebar:not(.expanded) .sidebar-icon img{
    width:15px!important;
    height:13px!important
}
.navbar.with-sidebar{
    position:relative
}
#sidebarToggle{
    position:absolute;
    top:16px;
    left:calc(var(--sidebar-collapsed) + 10px);
    transition:left .2s ease;
    z-index:1000
}
.navbar.with-sidebar.expanded #sidebarToggle{
    left:calc(var(--sidebar-expanded) + 10px)
}
.history-toggle:hover,.settings-collapsed .sidebar-pipe:hover,.sidebar-pipe:hover{
    background-color:var(--nav-hover)!important
}
.sidebar.expanded .group-history .tool-item>.tool-link:hover,.sidebar.expanded .settings-expanded .tool-item>.tool-link:hover,.sidebar.expanded .tool-item>.tool-link:hover{
    background-color:var(--nav-hover)!important
}
.history-toggle:hover img,.settings-collapsed .sidebar-pipe:hover .sidebar-icon img,.sidebar-pipe:hover .sidebar-icon img,.sidebar.expanded .group-history .tool-item>.tool-link:hover,.sidebar.expanded .settings-expanded .tool-item>.tool-link:hover,.sidebar.expanded .tool-item>.tool-link:hover{
    color:var(--accent-blue)!important
}
.tools-collapsed .sidebar-pipe:hover{
    background-color:var(--nav-hover)!important
}
.sidebar.expanded .tools-expanded .tool-list .tool-item>.tool-link:hover{
    background-color:var(--nav-hover)!important
}
.sidebar.expanded .tools-expanded .tool-item.open>.sub-tools li a:hover{
    background-color:var(--nav-hover)!important;
    cursor:pointer
}
.sidebar.expanded .group-history .entry-list li a:hover,.sidebar.expanded .group-history .subtool-item>.subtool-link:hover{
    background-color:var(--nav-hover)!important;
    cursor:pointer
}
#mainContent{
    transition:margin-left .3s ease
}
#sidebar.expanded~#mainContent{
    margin-left:var(--sidebar-expanded)!important
}
.navbar.with-sidebar .px-4{
    transition:padding-left .3s ease;
    padding-left:var(--nav-offset-collapsed)!important
}
.navbar.with-sidebar.expanded .px-4{
    padding-left:var(--nav-offset-expanded)!important
}
.sidebar.expanded .tools-collapsed{
    display:none!important
}
.sidebar.expanded .tools-expanded{
    display:block!important
}

/* CRITICAL FIX: Change overflow from hidden to visible for scrolled header */
#homeHeader.scrolled {
  top: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 40px) !important;
  background-color: #f4f8ff !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08) !important;
  border-radius: 2rem !important;
  overflow: visible !important; /* CHANGED FROM hidden TO visible */
  z-index: 9999 !important;
}

/* Header wrapper styles */
.home-header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  padding: 0rem 0;
  transition: top 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, border-radius 0.3s ease;
  z-index: 1000;
  overflow: visible !important; /* Ensure visible */
}

.home-header-wrapper.scrolled {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  background-color: #f4f8ff;
  padding: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  border-radius: 2rem;
  overflow: visible !important; /* CHANGED FROM hidden TO visible */
  z-index: 9999 !important;
}

/* Ensure navbar doesn't clip content */
.home-header-wrapper .navbar,
.home-header-wrapper.scrolled .navbar {
  background-color: transparent !important;
  border-radius: inherit !important;
  box-shadow: none !important;
  padding-top: 0px;
  overflow: visible !important;
}

/* Container must allow overflow */
.home-header-wrapper .container-fluid,
.home-header-wrapper.scrolled .container-fluid {
  overflow: visible !important;
}

/* Dropdown specific fixes */
.home-header-wrapper .dropdown,
.home-header-wrapper.scrolled .dropdown {
  position: relative !important;
}

/* Dropdown menu positioning */
.home-header-wrapper.scrolled .dropdown-menu {
  position: absolute !important;
  z-index: 10000 !important;
  top: 100% !important;
  margin-top: 0.25rem !important;
}

/* Language switcher specific */
.home-header-wrapper.scrolled .language-switcher .dropdown-menu {
  z-index: 10000 !important;
  position: absolute !important;
  right: 0 !important;
  left: auto !important;
}

/* Ensure dropdown is always on top */
.dropdown-menu.show {
  z-index: 10000 !important;
}

/* Avatar dropdown specific fix */
.home-header-wrapper.scrolled .avatar-button + .dropdown-menu {
  z-index: 10000 !important;
  position: absolute !important;
}

@media (max-width: 767.98px) {
  #homeHeader {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    transition: all 0.3s ease !important;
    overflow: visible !important; /* Ensure visible on mobile */
  }
  
  #homeHeader.scrolled {
    overflow: visible !important; /* Ensure visible on mobile when scrolled */
  }
  
  .home-page .navbar .container-fluid {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.5rem 1rem !important;
  }

  .home-page .navbar-brand {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem;
  }

  .navbar .mobile-nav-toggle {
    font-size: 1.4rem;
    padding: 0.25rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #0c3b56;
  }

  .home-page .navbar-brand img {
    height: 30px !important;
    width: auto !important;
    margin: 0 !important;
  }
  
  /* Mobile menu overflow fix */
  .home-header-wrapper.scrolled #mobileNavbar {
    z-index: 9998 !important;
    overflow: visible !important;
  }
  
  /* ─── When the drawer is CLOSED, mainContent scrolls normally ─── */
  #mainContent {
    height: auto !important;
    overflow: auto !important;
  }
  body.no-scroll #mainContent {
    /* but if we add .no-scroll on <body>, lock it too */
    height: 100vh !important;
    overflow: hidden !important;
  }

  /* ─── Hide desktop sidebar by default ─── */
  #sidebar {
    display: none !important;
  }

  /* ─── When expanded: pin & scroll sidebar ─── */
  #sidebar.expanded {
    display: flex !important;
    position: fixed !important;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-expanded) !important;
    z-index: 1000;
  }
  #sidebar.expanded .sidebar-inner {
    height: 100vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  #sidebar.expanded .group-setting {
    overflow: visible !important;
  }

  /* ─── Fly-out panels (tools/history/settings) ─── */
  #sidebar.expanded .tools-expanded.open-overlay,
  #sidebar.expanded .history-expanded.open-overlay,
  #sidebar.expanded .settings-expanded.open-overlay {
    position: fixed !important;
    top: 0;
    left: var(--sidebar-collapsed) !important;
    width: var(--sidebar-expanded) !important;
    height: 100vh !important;
    overflow-y: auto !important;
    background: #fff !important;
    z-index: 1001;
  }

  /* ─── Toggle button: always visible; hug the right edge when open ─── */
  #sidebarToggle {
    display: flex                    !important;
    position: absolute               !important;
    top: 1rem                        !important;
    left: 1rem                       !important;
    z-index: 1002                    !important;
  }
  .navbar.with-sidebar.expanded #sidebarToggle {
    left: calc(var(--sidebar-expanded) + 12px) !important;
  }

  /* ─── Gray-out & lock mainContent when drawer is open ─── */
  #mainContent.open {
    position: relative !important;
    z-index: 0 !important;
    height: 100vh !important;
    overflow: hidden !important;
  }
  #mainContent.open::before {
    content: "";
    position: fixed;
    top: 0;
    left: var(--sidebar-expanded);
    width: calc(100% - var(--sidebar-expanded));
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    z-index: 999;
  }

  /* ─── Hide avatar when drawer is open ─── */
  .navbar.with-sidebar.expanded .ms-auto {
    display: none !important;
  }

  /* ─── And lock the *entire page* too via body.no-scroll ─── */
  body.no-scroll {
    height: 100vh !important;
    overflow: hidden !important;
  }

  /* turn the mobile navbar into a flex row */
  .home-page .navbar {
    display: flex !important;
    align-items: center !important;
  }
  .home-page .navbar .container-fluid {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 1rem !important;
  }

  .navbar .navbar-brand {
  padding-left: 0 !important;
}
  /* shrink the logo a touch if you like */
  .home-page .navbar-brand img {
    height: 30px !important;
    width: auto !important;
    margin-left: -53px;
  }

  /* tighten up the pills */
  .home-page .btn-login,
  .home-page .btn-signup {
    padding: 0.25rem 0.75rem !important;
    font-size: 0.875rem !important;
    line-height: 1.2 !important;
    margin: 0 !important;
  }
  .mobile-menu-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 0 0 1.5rem 1.5rem;
    box-shadow: none;
    box-sizing: border-box;
    margin-bottom: 11px; /* ✅ Added this */
    }
    #mobileNavbar {
    background-color: #0071E30D !important;
    padding: 0;
    width: 100%;
  }


  .mobile-menu-item {
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    color: #0c3b56;
    border-radius: 0.5rem;
    transition: background 0.2s ease;
  }

  .mobile-menu-item:hover {
    background-color: #f0f4fc;
    color: #0a2e45;
    text-decoration: none;
  }

  .btn-login,
  .btn-signup {
    font-weight: 600;
    font-size: 0.95rem;
  }

  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}





#sidebar:not(.collapsed) .home-icon .logo-collapsed{
    display:none
}
#sidebar:not(.collapsed) .home-icon .logo-expanded{
    display:block
}
#sidebar.collapsed .home-icon .logo-expanded{
    display:none
}
#sidebar.collapsed .home-icon .logo-collapsed{
    display:block
}
.home-icon img{
    width: 217px;
    margin-left: 5px;
    height:auto;
    display:block
}
.sidebar:not(.expanded) .group-tools{
    margin-top:30px
}
.sidebar:not(.expanded) .history-toggle{
    margin-top:40px
}
.sidebar:not(.expanded) .group-setting{
    margin-top:301px!important
}
.group-tools .tools-collapsed{
    gap:.25rem!important
}
.group-tools .tools-collapsed .sidebar-icon{
    padding:.25rem 0!important
}
.group-tools .tools-collapsed .sidebar-icon+.sidebar-icon{
    margin-top:.25rem!important
}
.sidebar:not(.expanded) .tools-expanded{
    display:block!important;
    position:absolute;
    top:0;
    left:var(--sidebar-collapsed);
    width:var(--sidebar-expanded);
    height:100%;
    background:#fff;
    box-shadow:2px 0 12px rgba(0,0,0,.1);
    transform-origin:left var(--sidebar-origin-y,center);
    transform:scaleX(0);
    transition:transform .25s ease;
    overflow-y:hidden;
    z-index:1000
}
.sidebar:not(.expanded) .tools-expanded.open-overlay{
    transform:scaleX(1);
    overflow-y:auto
}
.sidebar:not(.expanded) .tools-expanded{
    transform:scaleX(0);
    opacity:0;
    will-change:transform,opacity;
    transition:transform 2s ease-out,opacity 2s ease-out
}
.sidebar:not(.expanded) .tools-expanded.open-overlay{
    transform:scaleX(1);
    opacity:1
}
.sidebar:not(.expanded) .group-history,.sidebar:not(.expanded) .group-setting .settings-expanded,.sidebar:not(.expanded) .tools-expanded{
    display:block!important;
    position:absolute;
    top:0;
    left:var(--sidebar-collapsed);
    width:var(--sidebar-expanded);
    max-height:100%;
    transform-origin:left var(--sidebar-origin-y,center);
    transform:scaleX(0);
    opacity:0;
    transition:transform .3s ease-out,opacity .3s ease-out;
    background:#fff;
    overflow-y:auto;
    box-shadow:2px 0 12px rgba(0,0,0,.1);
    z-index:1000
}
.sidebar:not(.expanded) .home-icon .logo-collapsed{
    width:72px!important;
    height:29px!important
}
.sidebar:not(.expanded) .group-history.open-overlay{
    transform:scaleX(1);
    opacity:1
}
#sidebar:not(.expanded) .home-icon .logo-collapsed{
    display:block!important;
    width:48px!important;
    height:auto!important
}
#sidebar:not(.expanded) .home-icon .logo-expanded{
    display:none!important
}
#sidebar.expanded .home-icon .logo-collapsed{
    display:none!important
}
#sidebar.expanded .home-icon .logo-expanded{
    display:block!important
}
#sidebar:not(.expanded) .sidebar-icon.home-icon{
    padding:0 0!important;
    margin-bottom:-1rem !important;
}
#sidebar:not(.expanded) .sidebar-icon.home-icon .logo-collapsed{
    width:47px!important;
    height:47px!important
}
.sidebar:not(.expanded) .sidebar-icon.home-icon{
    position:relative
}
.sidebar:not(.expanded) .sidebar-icon.home-icon .logo-expanded{
    position:absolute;
    top:0;
    left:var(--sidebar-collapsed);
    width:var(--sidebar-expanded);
    height:auto;
    background:#fff;
    box-shadow:2px 0 12px rgba(0,0,0,.1);
    transform-origin:left center;
    transform:scaleX(0);
    opacity:0;
    transition:transform .3s ease-out,opacity .3s ease-out;
    z-index:1000;
    overflow:hidden
}
#sidebar{
    overflow-x:hidden
}
.history-collapsed{
    display:flex;
    flex-direction:column
}
.sidebar.expanded .history-collapsed{
    display:none!important
}
.sidebar:not(.expanded) .history-collapsed{
    display:flex!important
}
.history-expanded{
    display:none
}
.sidebar.expanded .history-expanded{
    display:block!important
}
.sidebar:not(.expanded) .history-expanded{
    display:none!important
}
.sidebar.expanded .sidebar-header,.sidebar.expanded .sidebar-icon.home-icon{
    flex:0 0 auto;
    position:sticky;
    top:0;
    z-index:10;
    background:#e8f2fc
}
.sidebar.expanded .group-history,.sidebar.expanded .tools-expanded{
    flex:1 1 auto;
    display:flex;
    flex-direction:column;
    overflow:hidden
}
.sidebar.expanded .tools-expanded .tool-list{
    flex:1 1 auto;
    overflow-y:auto;
    padding-bottom: 0rem !important;
}

.sidebar.expanded .history-expanded .tool-list{
    flex:1 1 auto;
    overflow-y:auto;
    padding-bottom: 0rem !important;
}

.sidebar.expanded .group-history,.sidebar.expanded .settings-expanded{
    flex:0 0 auto
}
.sidebar.expanded .sidebar-inner{
    height:100vh;
    overflow-y:auto
}
.sidebar.expanded .sidebar-icon.home-icon{
    position:sticky;
    top:0;
    z-index:10;
    background:#e8f2fc
}

.sidebar.expanded .sidebar-icon.home-icon{
    position:sticky;
    top:-7px!important;
    z-index:9999;
    width:100%;
    background:#e8f2fc
}
.sidebar.expanded .sidebar-icon.home-icon{
    position:fixed;
    top:0;
    left:-15px;
    width:var(--sidebar-expanded);
    height:60px;
    background:#e8f2fc;
    z-index:1000
}
.sidebar.expanded .sidebar-inner{
    padding-top:60px;
    height:calc(100vh - 60px);
    overflow-y:auto
}


/* make each header stick to the top of its own panel */
.sidebar.expanded .tools-expanded,
.sidebar.expanded .history-expanded,
.sidebar.expanded .settings-expanded {
  display: flex;
  flex-direction: column;
  overflow-y: auto;   /* turn each group into its own scroll-container */
}



/* 1) Zero out all radii on any "tool-link" inside a nested .sub-tools */
.history-expanded .sub-tools .tool-link {
  border-radius: 0 !important;
}

/* 2) Also make sure the very first nested item doesn't carry any inherited top rounding */
.history-expanded .sub-tools > .tool-item > .tool-link:first-child {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

/* 3) And the last nested item doesn't carry any bottom rounding */
.history-expanded .sub-tools > .tool-item > .tool-link:last-child {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

/* 4) Finally, if you only want the _outermost_ panel rounded, re-apply it there */
.history-expanded
  > .tool-list
  > .tool-item
  > .tool-link {
  border-radius: 8px !important;
}




/* ── Modern SVG "i" Icon ───────────────────────────────────────────────── */
svg.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  cursor: pointer;
  margin-left: 0.1em;
  transition: box-shadow .2s, transform .1s;
  width: 0.6em;
  position: relative;
  top: -0.125em;
  height: 1.25em;
  left: -0.2rem;
}

svg.info-icon:hover,
svg.info-icon:focus {
  transform: scale(1.05);
  outline: none;
}

svg.info-icon .info-svg {
  width: 0.75em;
  height: 0.75em;
  color: #111;
}


/* History config */

.history-main-title {
    display: inline-block;
    font-family: bootstrap-icons !important;
    font-style: normal;
    font-weight: normal !important;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    position: relative;
    right: 12px;
    vertical-align: -.125em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.history-full-subtitle {
    border-top: 2px solid #d7eaf5 !important;
    background-color: rgba(68, 167, 225, .15) !important;
}

.history-subtitle-text{
    font-size: .71rem !important;
    flex: 1 !important;
    margin-left: 18px;
    margin-right:5px;
}


.history-plus-icon {
    display: inline-block;
    font-family: bootstrap-icons !important;
    font-style: normal;
    font-weight: normal !important;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    position: relative;
    right: 13px;
    vertical-align: -.125em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.navbar {
  background-color: transparent !important;
  border-radius: inherit !important;
  box-shadow: none !important;
  padding-top: 0px;
}



/* Scrollbar styling */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(68, 167, 225, 0.2) transparent;
}

*::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: rgba(68, 167, 225, 0.3);
  border-radius: 3px;
  border: none;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(68, 167, 225, 0.5);
}

*::-webkit-scrollbar-button,
*::-webkit-scrollbar-track-piece,
*::-webkit-scrollbar-corner,
*::-webkit-resizer {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.plan-card.flex-plan {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.plan-card.flex-plan::-webkit-scrollbar-button {
  display: none;
  height: 0;
  width: 0;
}

.plans-lightbar,
.plans-lightbar-wrapper,
.plans-main-content {
  overflow: visible;
}

.plan-card.flex-plan::-webkit-scrollbar-button:vertical:start:decrement,
.plan-card.flex-plan::-webkit-scrollbar-button:vertical:end:increment,
.plan-card.flex-plan::-webkit-scrollbar-button:horizontal:start:decrement,
.plan-card.flex-plan::-webkit-scrollbar-button:horizontal:end:increment {
  display: none !important;
}

:root {
  scrollbar-width: thin !important;
  scrollbar-gutter: stable !important;
}

body * {
  scrollbar-width: inherit !important;
}