/* Modern Teal Sidebar Styling */
/* ========================================== */

/* Main sidebar container */
.bg-menu-theme {
    background: linear-gradient(180deg, #0d9488 0%, #0f766e 100%) !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  /* App brand styling */
  .bg-menu-theme .app-brand {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 0 0 12px 12px;
    margin: 8px;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .bg-menu-theme .app-brand-link {
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }
  
.bg-menu-theme .app-brand-link:hover {
  color: #a7f3d0 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
  
  /* Logo styling */
  .bg-menu-theme .app-brand-logo {
    /* background: rgba(255, 255, 255, 0.2); */
    border-radius: 12px;
    padding: 10px;
    margin-right: 12px;
    transition: all 0.3s ease;
  }
  
  .bg-menu-theme .app-brand-logo img {
    filter: brightness(1.3) contrast(1.2) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
    width: 64px !important;
    height: 64px !important;
    object-fit: contain;
  }
  
.bg-menu-theme .app-brand-link:hover .app-brand-logo img {
  filter: brightness(1.5) contrast(1.3) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}
  
  .bg-menu-theme .app-brand-logo svg {
    filter: brightness(1.2) contrast(1.1);
    transition: all 0.3s ease;
  }
  
  .bg-menu-theme .app-brand-link:hover .app-brand-logo svg {
    filter: brightness(1.4) contrast(1.2);
  }
  
  /* App brand text */
  .bg-menu-theme .app-brand-text {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    background: linear-gradient(45deg, #ffffff, #a7f3d0, #14b8a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
  }
  
  /* Tito specific styling - Enhanced for better visibility */
  .bg-menu-theme h5 {
    font-size: 2.8rem !important;
    font-weight: 900 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    background: linear-gradient(45deg, #7dfff4, #7dfff4, #7dfff4) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: 
      0 0 10px rgba(102, 199, 191, 0.1),
      0 2px 8px rgba(102, 199, 191, 0.1),
      0 4px 12px rgba(102, 199, 191, 0.1) !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
    position: relative;
    z-index: 2;
  }
  
  /* Add a glowing effect behind the text */
  .bg-menu-theme h5::before {
    content: 'TITO';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #14b8a6, #0d9488, #14b8a6);
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    filter: blur(2px);
    opacity: 0.3;
    z-index: -1;
  }
  
  .bg-menu-theme .app-brand-link:hover h5::before {
    opacity: 0.6;
    filter: blur(3px);
  }
  
  .bg-menu-theme .app-brand-link:hover .app-brand-text {
    background: linear-gradient(45deg, #a7f3d0, #ffffff, #a7f3d0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.05);
  }
  
  /* Logo container enhancement */
  .bg-menu-theme .app-brand {
    position: relative;
    overflow: hidden;
  }
  
  .bg-menu-theme .app-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
  }
  
  .bg-menu-theme .app-brand:hover::before {
    left: 100%;
  } 
  
  /* Tito title glow animation */
  @keyframes titleGlow {
    0% {
      text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(20, 184, 166, 0.4);
    }
    50% {
      text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.7),
        0 0 25px rgba(20, 184, 166, 0.5),
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(20, 184, 166, 0.6);
    }
    100% {
      text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(20, 184, 166, 0.4);
    }
  }

  .bg-menu-theme h5 {
    animation: titleGlow 4s ease-in-out infinite;
  }
  
  /* Menu toggle button */
  .bg-menu-theme .layout-menu-toggle {
    color: #ffffff !important;
    transition: all 0.3s ease;
  }
  
  .bg-menu-theme .layout-menu-toggle:hover {
    color: #a7f3d0 !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
  }
  
/* Menu items */
.bg-menu-theme .menu-link {
  color: #e0f2f1 !important;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin: 2px 8px;
  position: relative;
  overflow: hidden;
}

.bg-menu-theme .menu-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bg-menu-theme .menu-link:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: #14b8a6;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}
    
/* Active menu items */
.bg-menu-theme .menu-item.active > .menu-link:not(.menu-toggle) {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}
  
/* Menu toggle items */
.bg-menu-theme .menu-item.active > .menu-toggle,
.bg-menu-theme .menu-item.open > .menu-toggle {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border-radius: 8px;
  margin: 2px 8px;
}
  
/* Menu headers - removed horizontal bar */
.bg-menu-theme .menu-header {
  color: #a7f3d0 !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
  margin: 16px 8px 8px 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border-left: none !important;
  border-bottom: none !important;
  border-top: none !important;
  border-right: none !important;
}
  
/* Submenu styling */
.bg-menu-theme .menu-sub {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin: 4px 8px;
  padding: 4px 0;
}

.bg-menu-theme .menu-sub .menu-link {
  margin: 1px 8px;
  padding-left: 2rem;
  font-size: 0.9rem;
  position: relative;
}

.bg-menu-theme .menu-sub .menu-link:before {
  content: '•';
  position: absolute;
  left: 1rem;
  color: #14b8a6;
  font-weight: bold;
}

.bg-menu-theme .menu-sub .menu-item.active > .menu-link {
  background: rgba(20, 184, 166, 0.2) !important;
  color: #ffffff !important;
  border-left: 3px solid #14b8a6;
}
  
/* Icons styling */
.bg-menu-theme .menu-icon {
  color: #a7f3d0;
  transition: all 0.3s ease;
  margin-right: 12px;
  width: 20px;
  text-align: center;
}

.bg-menu-theme .menu-link:hover .menu-icon {
  color: #ffffff;
}

.bg-menu-theme .menu-item.active .menu-icon {
  color: #ffffff;
}
  
  /* Badge styling */
  .bg-menu-theme .badge {
    background: #14b8a6 !important;
    color: #ffffff !important;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
  }
  
  /* Menu inner shadow */
  .bg-menu-theme .menu-inner-shadow {
    background: linear-gradient(180deg, rgba(13, 148, 136, 0.8) 0%, rgba(13, 148, 136, 0.4) 50%, transparent 100%) !important;
  }
  
  /* Scrollbar styling */
  .bg-menu-theme .ps__thumb-y {
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 4px;
  }
  
  .bg-menu-theme .ps__rail-y:hover .ps__thumb-y {
    background: rgba(255, 255, 255, 0.5) !important;
  }
  
  /* Responsive adjustments */
  @media (max-width: 1199px) {
    .bg-menu-theme .menu-link {
      margin: 1px 4px;
    }
    
    .bg-menu-theme .menu-sub {
      margin: 2px 4px;
    }
    
    .bg-menu-theme .menu-header {
      margin: 12px 4px 6px 4px;
    }
  }
  
/* Removed all animations for cleaner look */
  
/* Modern glassmorphism effect */
.bg-menu-theme {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Removed pulse animation on hover */
  
  /* Modern scrollbar - make vertical bar smaller */
  .bg-menu-theme::-webkit-scrollbar {
    width: 1px;
  }
  
  .bg-menu-theme::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
  }
  
  .bg-menu-theme::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
  }
  
  .bg-menu-theme::-webkit-scrollbar-thumb:hover {
    background: rgba(167, 243, 208, 0.8) !important;
  }
  
  /* Also style for non-webkit browsers */
  .bg-menu-theme {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
  }
  
  /* Make scrollbar same size as desktop on tablet and expand sidebar slightly */
  @media (min-width: 768px) and (max-width: 1199px) {
    .bg-menu-theme::-webkit-scrollbar {
      width: 1px !important;
    }
    
    .bg-menu-theme::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.3) !important;
    }
    
    .bg-menu-theme::-webkit-scrollbar-thumb:hover {
      background: rgba(167, 243, 208, 0.8) !important;
    }
    
    .bg-menu-theme {
      scrollbar-width: thin;
      scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
    }
    
    /* Expand sidebar slightly on tablet to prevent horizontal scroll */
    .bg-menu-theme,
    #layout-menu.layout-menu,
    .layout-menu {
      width: 18rem !important;
      min-width: 18rem !important;
    }
  }
  
  /* Enhanced focus states for accessibility */
  .bg-menu-theme .menu-link:focus {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
  }
  
  /* Modern loading state */
  .bg-menu-theme.loading .menu-item {
    opacity: 0.6;
    pointer-events: none;
  }
