
/* ================================
   Ultra Modern Compact Sidebar
   Drop-in full CSS with stable mini-sidebar flyouts
   ================================ */

/* Logo Section - Compact */
.main-logo {
  position: relative;
  text-align: center;
  padding: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-logo img {
  max-height: 40px;
  transition: all 0.3s ease;
  filter: brightness(1.2) drop-shadow(0 2px 8px rgba(99,102,241,0.3));
}

/* College Logo Block */
._college_logo {
  position: relative;
  text-align: center;
  padding: 0.75rem;
  background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(168,85,247,.15));
  margin: 0.75rem 1rem;
  border-radius: 16px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1);
  transition: all .3s ease;
  overflow: hidden;
}
._college_logo::before {
  content:'';
  position:absolute; inset:0 auto 0 -100%;
  width:100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent);
  transition: left .6s ease;
}
._college_logo:hover::before { left:100%; }
._college_logo img {
  max-height:150px;
  background: rgba(255,255,255,.95);
  padding:6px; border-radius:12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  transition: all .3s ease;
}
._college_logo:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(99,102,241,.25);
}

/* Main Sidebar */
.left-sidebar {
  width:260px;
  height:100vh;
  top:0; left:0;
  position:fixed;
  /*z-index:1000;*/
  background: linear-gradient(145deg, #0f0f23 0%, #1a1a2e 35%, #16213e 100%);
  backdrop-filter: blur(30px);
  border-right:1px solid rgba(99,102,241,.2);
  box-shadow: 4px 0 20px rgba(0,0,0,.4), inset -1px 0 0 rgba(99,102,241,.1);
  transition: all .4s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden; /* will be overridden in mini mode */
}

/* Animated Background Pattern */
@keyframes gradientShift {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.left-sidebar::after {
  content:'';
  position:absolute; inset:0;
  background:
    radial-gradient(circle at 20% 20%, rgba(99,102,241,.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(168,85,247,.05) 0%, transparent 50%);
  pointer-events:none;
}
.fix-sidebar .left-sidebar { position:fixed; z-index: 1;}
.mini-sidebar.fix-sidebar .left-sidebar{
  top: 0;
}
/* Scroll area */
.scroll-sidebar {
  position: relative;
  height:100%;
  overflow:auto !important;
  scroll-behavior: smooth;
}
.scroll-sidebar::-webkit-scrollbar { width:3px; }
.scroll-sidebar::-webkit-scrollbar-track { background:transparent; }
.scroll-sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6366f1, #a855f7);
  border-radius:2px;
  transition: all .3s ease;
}
/* slimScroll plugin bar fallback */
.slimScrollBar {
  background: linear-gradient(180deg, #6366f1, #a855f7) !important;
  width:3px !important;
  border-radius:2px !important;
  right:1px !important;
  opacity:.6; transition: opacity .3s ease;
}

/* Navigation */
.sidebar-nav { padding: .5rem 0 150px; position:relative; z-index:2; }
.sidebar-nav ul.side-navigation { padding-bottom:4rem; margin:0; }
.sidebar-nav ul { list-style:none; margin:0; padding:0; }
.sidebar-nav ul li { display:block; width:100%; margin-bottom:2px; position:relative; }

/* Menu Links */
.sidebar-nav ul li a {
  color: rgba(255,255,255,.85);
  font-weight:500; letter-spacing:.2px;
  display:flex; align-items:center;
  border-radius:14px; line-height:1.3;
  padding:7px 14px; text-align:left; margin:0 10px;
  text-decoration:none; transition: all .35s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
  border:1px solid transparent;
  backdrop-filter: blur(10px);
}
.sidebar-nav ul li a:hover {
  color:#fff;
  background: rgba(99,102,241,.15);
  border-color: rgba(99,102,241,.3);
  box-shadow: 0 6px 20px rgba(99,102,241,.2), inset 0 1px 0 rgba(255,255,255,.1);
}
.sidebar-nav ul li a.active {
  color:#fff !important;
  background: linear-gradient(135deg, rgba(99,102,241,.25), rgba(168,85,247,.25));
  border:1px solid rgba(99,102,241,.4);
  box-shadow: 0 0 20px rgba(99,102,241,.3), 0 4px 15px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.2);
}
.sidebar-nav ul li a.active::after {
  content:''; position:absolute; right:-1px; top:50%; transform: translateY(-50%);
  width:3px; height:60%;
  background: linear-gradient(180deg, #6366f1, #a855f7);
  border-radius:2px; box-shadow: 0 0 8px rgba(99,102,241,.6);
}

/* Icons */
.sidebar-nav ul li a i,
#sidebarnav .nav-link .material-symbols-outlined {
  width:20px; height:20px; font-size:16px;
  display:flex; align-items:center; justify-content:center;
  margin-right:5px; color:inherit; transition: all .3s cubic-bezier(0.4,0,0.2,1);
  flex-shrink:0; border-radius:6px; background: rgba(255,255,255,.08); position:relative;
}
.sidebar-nav ul li a i::before {
  content:''; position:absolute; inset:0;
  background: linear-gradient(135deg, rgba(99,102,241,.3), rgba(168,85,247,.3));
  border-radius:6px; opacity:0; transform: scale(.8);
  transition: all .3s cubic-bezier(0.4,0,0.2,1); z-index:-1;
}
.sidebar-nav ul li a:hover i::before,
.sidebar-nav ul li a.active i::before { opacity:1; transform: scale(1); }
.sidebar-nav ul li a:hover i { transform: scale(1.1) rotate(5deg); color:#fff; }
.sidebar-nav ul li a.active i { color:#6366f1; transform: scale(1.1); }
#sidebarnav .nav-link .material-symbols-outlined {
  font-size:18px;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
#sidebarnav .nav-link:hover .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  transform: scale(1.1);
}

/* Tree arrows (FontAwesome) */
.menu-list > a::before {
  content: "\f107";
  position:absolute; font-family: 'FontAwesome';
  width:10px; top:50%; font-size:15px; line-height:10px;
  right:4px; margin-top:-5px; transition: transform .6s ease; opacity:.7;
}
.menu-list.active > a::before { transform: rotate(-180deg); }

/* Submenu (expanded sidebar) */
.sidebar-nav ul li ul {
  padding-left:10px; padding-bottom:0;
  margin:4px 10px 0 10px;
  background: rgba(0,0,0,.3);
  border-radius:12px; border:1px solid rgba(255,255,255,.05);
  backdrop-filter: blur(10px); overflow:hidden;
}
.collapse.in { display:block; background-color: rgba(0,0,0,.10); }
.sidebar-nav ul li ul.collapse.in { display:block; padding:6px 0; }
.sidebar-nav ul li ul li a {
  padding:8px 12px 8px 20px; font-size:.9rem; margin:0 6px;
  border-radius:8px; font-weight:400; position:relative;
}
/*.sidebar-nav ul li ul li a::before {
  content:''; position:absolute; left:20px; top:50%; transform: translateY(-50%);
  width:4px; height:4px; background: rgba(255,255,255,.4); border-radius:50%; transition: all .3s ease;
}*/
.sidebar-nav ul li ul li a:hover::before,
.sidebar-nav ul li ul li a.active::before {
  background:#6366f1; transform: translateY(-50%) scale(1.5); box-shadow: 0 0 8px rgba(99,102,241,.6);
}

/* Search Box */
.left-sidebar .sidebar-search { padding: 0 12px; }
.left-sidebar .sidebar-search .input-group {
  position:relative; border-radius:14px; overflow:hidden;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(20px);
  border:1px solid rgba(255,255,255,.1);
  transition: all .3s ease; height:40px;
}
.left-sidebar .sidebar-search .input-group:focus-within {
  background: rgba(255,255,255,.12);
  border-color: rgba(99,102,241,.5);
  box-shadow: 0 0 20px rgba(99,102,241,.2);
  transform: scale(1.02);
}
.left-sidebar .sidebar-search input {
  background: transparent !important; border:none !important;
  color:#fff; font-weight:400; letter-spacing:.2px;
  padding:10px 14px; outline:none; font-size:13px;
}
.left-sidebar .sidebar-search input::placeholder { color: rgba(255,255,255,.5); font-size:13px; }
.left-sidebar .sidebar-search .btn {
  background: transparent !important; border:none; color: rgba(255,255,255,.6);
  padding:10px 12px; transition: all .3s ease; font-size:14px;
}
.left-sidebar .sidebar-search .btn:hover { color:#6366f1; transform: scale(1.15); }

/* Labels & dividers */
.sidebar-nav ul li.nav-small-cap {
  font-size:10px; padding:12px 16px 4px;
  color: rgba(255,255,255,.4); font-weight:700; text-transform:uppercase; letter-spacing:1.2px; position:relative;
}
.sidebar-nav ul li.nav-devider {
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,.3), transparent);
  margin:8px 16px;
}

/* Notification badge */
.sidebar-nav ul li a span.leave-unread-count {
  background: linear-gradient(135deg, #ef4444, #f97316) !important;
  color:#fff !important; font-size:9px; font-weight:700; padding:3px 6px !important;
  border-radius:10px !important; line-height:1 !important; margin-left:auto;
  animation: pulse 2s infinite; box-shadow: 0 2px 8px rgba(239,68,68,.4);
}
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 2px 8px rgba(239,68,68,.4); }
  50% { transform: scale(1.05); box-shadow: 0 4px 16px rgba(239,68,68,.6); }
  100% { transform: scale(1); box-shadow: 0 2px 8px rgba(239,68,68,.4); }
}

/* Entrance animation */
@keyframes slideInUp { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: translateY(0); } }
.sidebar-nav ul li { animation: slideInUp .4s ease forwards; }
.sidebar-nav ul li:nth-child(1){animation-delay:.05s}
.sidebar-nav ul li:nth-child(2){animation-delay:.1s}
.sidebar-nav ul li:nth-child(3){animation-delay:.15s}
.sidebar-nav ul li:nth-child(4){animation-delay:.2s}
.sidebar-nav ul li:nth-child(5){animation-delay:.25s}
.sidebar-nav ul li:nth-child(6){animation-delay:.3s}

/* Hide tree icons inside nav-treeview rows */
.nav-treeview .nav-link .material-symbols-outlined{ display:none; }

/* Page wrapper shifts */
@media (min-width:1024px){ .page-wrapper { margin-left:260px; transition: margin-left .4s cubic-bezier(0.4,0,0.2,1);} }
@media (max-width:1023px){ .page-wrapper { transition: .2s ease-in; } }

/* Responsive drawer on mobile */
@media (max-width:767px){
  .left-sidebar {
     width:260px; 
     /* transform: translateX(-100%); */
      transition: transform .3s cubic-bezier(0.4,0,0.2,1); 
    }
  .show-sidebar .left-sidebar { transform: translateX(0); }
  .mini-sidebar .left-sidebar { position:fixed; z-index:1001; }
}

/* Light Theme Variant */
.current-theme- .left-sidebar {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
  border-right:1px solid rgba(99,102,241,.2);
  box-shadow: 4px 0 20px rgba(0,0,0,.08);
}
.current-theme- .sidebar-nav ul li a { color: rgba(0,0,0,.8); }
.current-theme- .sidebar-nav ul li a:hover { background: rgba(99,102,241,.1); color:#1f2937; }

/* ======================================================
   MINI SIDEBAR (stable flyouts with anti-flicker)
   Body has class: .mini-sidebar
   ====================================================== */
@media (min-width:768px){
  .mini-sidebar .left-sidebar {
    width:65px;
    overflow: visible; /* allow flyouts to escape */
    z-index: 1100;
  }
  .mini-sidebar .scroll-sidebar {
    overflow: visible !important; /* avoid clipping flyouts */
    position: relative;
  }

  /* hide labels and extras in rail */
  .mini-sidebar .hide-menu,
  .mini-sidebar .nav-small-cap,
  .mini-sidebar .sidebar-footer,
  .mini-sidebar .user-profile .profile-text,
  .mini-sidebar .sidebar-search,
  .mini-sidebar .logo-main { display:none !important; }
  .mini-sidebar .mini-logo { display:block !important; padding:10px; }
  .mini-sidebar .nav-devider { width:60px; }

  /* rail buttons */
  .mini-sidebar .sidebar-nav { background: transparent; margin-bottom:0 !important; padding-bottom:0; }
  .mini-sidebar .sidebar-nav #sidebarnav>li>a {
    width:50px; margin:0 7px; padding:10px 12px;
    border-radius:10px; color:#fff;
  }
  .mini-sidebar .sidebar-nav #sidebarnav>li>a i,
  .mini-sidebar #sidebarnav .nav-link .material-symbols-outlined {
    margin-right:0; flex:none;
  }
  .mini-sidebar .sidebar-nav li span:not(span.material-symbols-outlined){ opacity:0; white-space:nowrap; }

  /* remove arrow inside rail */
  .mini-sidebar .sidebar-nav #sidebarnav>li>a.has-arrow:after { display:none; }
  .mini-sidebar .menu-list > a::before { right:1px; margin-top:-4px; }
  .mini-sidebar .sidebar-nav #sidebarnav>li:hover>a::before { right:5px; }

  /* FLYOUT submenu as a fixed-position popover to the right of rail */
  .mini-sidebar .sidebar-nav #sidebarnav>li>ul {
    position: fixed; /* detach from clipping containers */
    top: 0; /* will be set via JS; CSS fallback aligns to top 0 */
    left: 65px; /* right of rail */
    min-width: 200px;
    /*max-height: 80vh;*/
    overflow: auto;
    z-index: 2000;
    background: #fff;
    color:#111827;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,.22);
    padding: 8px 6px;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s step-end;
  }

  /* bridge hit area to avoid hover gap */
  .mini-sidebar .sidebar-nav #sidebarnav>li>ul::before {
    content:'';
    position: absolute;
    top:0; bottom:0; left:-10px; width:12px;
    /* transparent bridge so moving from rail to flyout doesn't trigger mouseleave */
  }

  /* submenu items in flyout */
  .mini-sidebar .sidebar-nav #sidebarnav>li>ul li a {
    display:block; padding:8px 14px; font-size:14px; color:#343a40;
    background: transparent; border-radius:6px; transition: background .2s ease, color .2s ease;
    white-space: nowrap; margin: 2px 6px;
  }
  .mini-sidebar .sidebar-nav #sidebarnav>li>ul li a:hover { background:#f3f4f6; color:#111827; }

  /* show on hover of li or the flyout itself (CSS-only fallback) */
  .mini-sidebar .sidebar-nav #sidebarnav>li:hover>ul,
  .mini-sidebar .sidebar-nav #sidebarnav>li>ul:hover {
    opacity:1; visibility: visible; transform: translateY(0);
    transition: opacity .15s ease, transform .15s ease, visibility 0s linear;
  }

  /* keep parent highlighted while flyout shown */
  .mini-sidebar .sidebar-nav #sidebarnav>li:hover>a {
    background: rgba(99,102,241,.2); color:#fff;
  }

  /* remove nested tree arrow visuals in flyout */
  .mini-sidebar .sidebar-nav #sidebarnav>li>ul .menu-list > a::before { display:none; }

  /* nav treeview alignment override in mini */
  .mini-sidebar .sidebar-nav ul li ul li a { padding:8px 12px; }

  /* Page content shift in mini */
  .mini-sidebar .page-wrapper { margin-left:65px; }
}

/* XS mini drawer behavior */
@media (max-width:767px){
  .mini-sidebar .left-sidebar, .mini-sidebar .sidebar-footer { left:-270px; }
  .mini-sidebar.show-sidebar .left-sidebar, .mini-sidebar.show-sidebar .sidebar-footer { left:0; }
}

/* Misc tweaks */
.mini-sidebar .top-bar{ z-index:99; }
.sidebar-nav ul li a { position:relative; overflow:visible; }
.sidebar-nav ul li a:hover { z-index:10; }
/* Make the mini flyout render and override Bootstrap collapse hiding */
@media (min-width:768px){
  .mini-sidebar .left-sidebar,
  .mini-sidebar .scroll-sidebar { overflow: visible !important; }

  /* Ensure flyout is above content and not clipped */
  .mini-sidebar .sidebar-nav #sidebarnav > li > ul{
    position: fixed;    /* detach from clipping ancestors */
    left: 65px;         /* to the right of rail */
    z-index: 2000;      /* above app chrome */
    display: none;      /* default hidden; shown on hover below */
  }

  /* Show submenu despite .collapse display:none */
  .mini-sidebar .sidebar-nav #sidebarnav > li:hover > ul,
  .mini-sidebar .sidebar-nav #sidebarnav > li > ul:hover{
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    height: fit-content !important;
  }

  /* Unhide labels inside flyout (counter the global mini rule) */
  .mini-sidebar .sidebar-nav #sidebarnav > li > ul span{
    opacity: 1 !important;
  }
  .mini-sidebar .sidebar-nav #sidebarnav > li > ul span.material-symbols-outlined{
    display: none;
  }
  /* Readable text on white flyout */
  .mini-sidebar .sidebar-nav #sidebarnav > li > ul li a{
    color: #343a40 !important;
    background: transparent;
  }
}
/* Mini flyout: anchor to each <li>, not viewport */
@media (min-width:768px){
  .mini-sidebar .left-sidebar,
  .mini-sidebar .scroll-sidebar { overflow: visible !important; } /* no clipping */

  .mini-sidebar .sidebar-nav #sidebarnav > li { position: relative; z-index: 1; }
    .mini-sidebar .sidebar-nav ul li ul li a::before{
        content: none;
    }
  .mini-sidebar .sidebar-nav #sidebarnav > li > ul{
    position: absolute;              /* align to parent item */
    top: 0;                          /* top of the parent li */
    left: 65px;                      /* right of the rail */
    min-width: 200px;
    max-width: 250px;
    max-height: 80vh;
    overflow: auto;
    background: #fff;
    color: #111827;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,.22);
    padding: 8px 4px;
    z-index: 3000;                   /* above page content/topbar */
    display: none;                   /* defeat Bootstrap collapse hiding via class below */
    opacity: 0; visibility: hidden; transform: translateX(-6px);
    transition: opacity .15s ease, transform .15s ease, visibility 0s step-end;
    will-change: transform, opacity;
  }

  /* bridge to avoid hover gap between rail and flyout */
  .mini-sidebar .sidebar-nav #sidebarnav > li > ul::before{
    content:'';
    position:absolute; top:0; bottom:0; left:-10px; width:12px;
  }

  /* show when .flyout-open is applied by JS or when ul itself hovered (fallback) */
  .mini-sidebar .sidebar-nav #sidebarnav > li.flyout-open > ul,
  .mini-sidebar .sidebar-nav #sidebarnav > li > ul:hover{
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
  }

  /* readable items inside flyout */
  .mini-sidebar .sidebar-nav #sidebarnav > li > ul li a{
    display:block; padding:8px 8px; margin:2px 6px;
    color:#343a40 !important; background: transparent; border-radius:6px;
  }
  .mini-sidebar .sidebar-nav #sidebarnav > li > ul li a:hover{ background:#f3f4f6; color:#111827; }

  /* unhide labels inside flyout only */
  .mini-sidebar .sidebar-nav #sidebarnav > li > ul span,
  .mini-sidebar .sidebar-nav #sidebarnav > li > ul .hide-menu{ opacity:1 !important; }

  /* keep parent highlighted while open */
  .mini-sidebar .sidebar-nav #sidebarnav > li.flyout-open > a{ background: rgba(99,102,241,.2); color:#fff; }

  /* neutralize Bootstrap collapse display:none in mini mode when open */
  .mini-sidebar .sidebar-nav #sidebarnav > li.flyout-open > ul.collapse{ display:block !important; }

  /* optional: avoid scrollbars on rail while flyout visible */
  .mini-sidebar .scroll-sidebar::-webkit-scrollbar { width:0; }
}
@media (min-width:768px){
  .mini-sidebar .sidebar-nav #sidebarnav > li > ul{
    max-height: 80vh;              /* already present, keep it */
    overflow: auto;                /* ensure a scrolling context */
    overscroll-behavior: contain;  /* stop scroll chaining to page */
    overscroll-behavior-y: contain;/* explicit vertical containment */
    -webkit-overflow-scrolling: touch; /* smooth on touch devices */
    pointer-events: auto;          /* guarantee wheel targets the panel */
    scrollbar-gutter: stable both-edges; /* optional: stable gutter */
  }
}
.global-search-html {
  position: relative;
  z-index: 1000;
}

.global-search-html .dropdown-all {
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 16px;
  max-width: 300px;
  margin: 0 auto;
  animation: slideDown 0.2s ease-out;
  
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.global-search-html .fa-close{
    position: absolute;
  top: 10px !important;
  right: 12px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7280;
  font-size: 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
  z-index: 10;
}
/*
.global-search-html .fa-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7280;
  font-size: 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
  z-index: 10;
}

.global-search-html .fa-close:hover {
  background: #f3f4f6;
  color: #1f2937;
  transform: rotate(90deg);
}*/

.global-search-html .boxes {
  margin: 3px 0; 
}

.global-search-html .boxes:last-child {
  margin-bottom: 0;
  border-bottom: 0 !important;
}

.global-search-html .top-search-box {
  position: relative;
}

/* Select2 Container Overrides */
.global-search-html .select2-container--material {
  width: 100% !important;
}

.global-search-html .select2-container--material .select2-selection--single {
  height: 40px;
  border: 1px solid #6a6a6a;
  border-radius: 8px;
  background: transparent;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.global-search-html .select2-container--material .select2-selection--single:hover {
  border-color: #d1d5db;
  background: rgba(249, 250, 251, 0.5);
}

.global-search-html .select2-container--material.select2-container--focus .select2-selection--single,
.global-search-html .select2-container--material.select2-container--open .select2-selection--single {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.global-search-html .select2-selection__rendered {
  color: #6b7280;
  font-size: 13px;
  line-height: 40px;
  padding: 0 !important;
}

.global-search-html .select2-container--material .select2-selection__placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.global-search-html .select2-selection__arrow {
  height: 40px;
  right: 12px;
  transition: transform 0.2s ease;
}

.global-search-html .select2-container--open .select2-selection__arrow {
  transform: rotate(180deg);
}

.global-search-html .select2-selection__arrow b {
  border-color: #6b7280 transparent transparent transparent;
  border-style: solid;
  border-width: 5px 4px 0 4px;
  margin-left: -4px;
  margin-top: -2px;
}

/* Dropdown Menu */
.global-search-html .select2-dropdown {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  margin-top: 4px;
  overflow: hidden;
  background: #ffffff;
}

.global-search-html .select2-results__option {
  padding: 10px 12px;
  font-size: 13px;
  color: #374151;
  transition: all 0.15s ease;
}

.global-search-html .select2-results__option--highlighted {
  background: #eff6ff !important;
  color: #1e40af !important;
}

.global-search-html .select2-results__option[aria-selected="true"] {
  background: #dbeafe;
  color: #1e40af;
}

/* Search Input in Dropdown */
.global-search-html .select2-search--dropdown {
  padding: 8px;
  background: transparent;
}

.global-search-html .select2-search__field {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  transition: all 0.2s ease;
  background: transparent;
}

.global-search-html .select2-search__field:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
  background: rgba(255, 255, 255, 0.8);
}

/* Loading State */
.global-search-html .select2-results__option--loading {
  color: #9ca3af;
}

/* Clear Button */
.global-search-html .select2-selection__clear {
  color: #9ca3af;
  font-size: 18px;
  font-weight: bold;
  margin-right: 6px;
  transition: color 0.2s ease;
}

.global-search-html .select2-selection__clear:hover {
  color: #ef4444;
}

/* Scrollbar Styling */
.global-search-html .select2-results__options {
  max-height: 280px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.global-search-html .select2-results__options::-webkit-scrollbar {
  width: 6px;
}

.global-search-html .select2-results__options::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.global-search-html .select2-results__options::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
  transition: background 0.2s ease;
}

.global-search-html .select2-results__options::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .global-search-html .dropdown-all {
    border-radius: 10px;
    padding: 12px;
    margin: 8px;
  }
  
  .global-search-html .select2-container--material .select2-selection--single {
    height: 38px;
  }
  
  .global-search-html .select2-selection__rendered {
    line-height: 38px;
  }
  
  .global-search-html .select2-selection__arrow {
    height: 38px;
  }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
  .global-search-html .dropdown-all {
    background: #1f2937;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  
  .global-search-html .select2-container--material .select2-selection--single {
    background: transparent;
    border-color: #4b5563;
    color: #f3f4f6;
  }
  
  .global-search-html .select2-container--material .select2-selection--single:hover {
    background: rgba(55, 65, 81, 0.3);
  }
  
  .global-search-html .select2-container--material.select2-container--focus .select2-selection--single,
  .global-search-html .select2-container--material.select2-container--open .select2-selection--single {
    background: rgba(55, 65, 81, 0.5);
  }
  
  .global-search-html .select2-selection__rendered {
    color: #d1d5db;
  }
  
  .global-search-html .select2-dropdown {
    background: #374151;
    border-color: #4b5563;
  }
  
  .global-search-html .select2-results__option {
    color: #f3f4f6;
  }
  
  .global-search-html .select2-results__option--highlighted {
    background: #1e3a8a !important;
    color: #dbeafe !important;
  }
  
  .global-search-html .select2-search__field {
    background: transparent;
    color: #f3f4f6;
  }
  
  .global-search-html .select2-search__field:focus {
    background: rgba(55, 65, 81, 0.5);
  }
}
@media (max-width: 426px){
.fix-sidebar .left-sidebar { position:fixed; z-index: 1; top: 50px; }
}