/* ========================================
   VINSNAP SIDEBAR - ENHANCED DESIGN
   ======================================== */

.sidebar {
  width: 260px;
  height: 100vh;
  background: linear-gradient(180deg, rgba(15, 20, 25, 0.98) 0%, rgba(10, 14, 19, 0.95) 50%, rgba(15, 20, 25, 0.98) 100%);
  backdrop-filter: blur(10px);
  border-right: 2px solid rgba(139, 92, 246, 0.15);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3), 0 0 40px rgba(139, 92, 246, 0.08);
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  padding-top: 20px;
  position: fixed;
  top: 0;
  left: 0;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Scrollbar */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ========================================
   VINSNAP BRANDING
   ======================================== */

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px 24px 20px;
  margin-bottom: 28px;
  border-bottom: 2px solid rgba(139, 92, 246, 0.2);
  position: relative;
}

.sidebar-brand::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.4) 50%, transparent 100%);
}

.brand-icon {
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.5));
  animation: brandGlow 3s ease-in-out infinite;
}

@keyframes brandGlow {
  0%, 100% {
    filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.5));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 6px 20px rgba(139, 92, 246, 0.7));
    transform: scale(1.05);
  }
}

.brand-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 12px rgba(139, 92, 246, 0.4));
  text-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

/* ========================================
   NAVIGATION
   ======================================== */

.sidebar-nav {
  flex: 1 1 auto;
  padding: 0 12px;
  overflow-y: visible;
  min-height: 0;
}

.nav-section {
  margin-bottom: 28px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 8px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-header svg {
  opacity: 0.8;
  color: #8b5cf6;
  filter: drop-shadow(0 2px 4px rgba(139, 92, 246, 0.3));
}

.section-divider {
  height: 2px;
  background: linear-gradient(90deg,
    rgba(139, 92, 246, 0.4) 0%,
    rgba(99, 102, 241, 0.2) 50%,
    transparent 100%
  );
  margin-bottom: 12px;
  border-radius: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 6px;
  border-radius: 12px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg,
    rgba(139, 92, 246, 0.15) 0%,
    rgba(99, 102, 241, 0.1) 100%
  );
  transition: width 0.3s ease;
  border-radius: 12px;
}

.nav-item:hover {
  color: #f8fbff;
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.nav-item:hover::before {
  width: 100%;
}

.nav-item:hover .nav-icon {
  transform: translateX(2px) scale(1.1);
  color: #8b5cf6;
  filter: drop-shadow(0 2px 8px rgba(139, 92, 246, 0.4));
}

.nav-item.active {
  color: #f8fbff;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(99, 102, 241, 0.15) 100%);
  border: 1.5px solid rgba(139, 92, 246, 0.4);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.nav-item.active .nav-icon {
  color: #8b5cf6;
  filter: drop-shadow(0 2px 8px rgba(139, 92, 246, 0.5));
}

.nav-icon {
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.nav-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.badge-count {
  background: #667eea;
  color: #ffffff;
  min-width: 24px;
  text-align: center;
}

.badge-new {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  animation: badgePulse 2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.badge-beta {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  animation: badgePulse 2s ease-in-out infinite;
  animation-delay: 0.5s;
}

.badge-soon {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  opacity: 0.7;
}

.badge-live {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  animation: badgePulse 2s ease-in-out infinite;
  animation-delay: 1s;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

@keyframes badgePulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(0.95);
  }
}

/* ========================================
   SIDEBAR FOOTER
   ======================================== */

.sidebar-footer {
  padding: 0 12px 12px 12px;
  margin-top: auto;
  position: sticky;
  bottom: 0;
  background: #0f1419;
  z-index: 10;
  padding-top: 12px;
}

.footer-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.3) 50%, transparent 100%);
  margin-bottom: 12px;
  border-radius: 2px;
}

.nav-signout {
  border: none;
  background: none;
  width: 100%;
  justify-content: flex-start;
}

.nav-signout:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.nav-signout:hover .nav-icon {
  color: #ef4444;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }
}

/* ========================================
   ANIMATIONS & TRANSITIONS
   ======================================== */

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.nav-item {
  animation: slideIn 0.3s ease-out backwards;
}

.nav-item:nth-child(1) { animation-delay: 0.05s; }
.nav-item:nth-child(2) { animation-delay: 0.1s; }
.nav-item:nth-child(3) { animation-delay: 0.15s; }
.nav-item:nth-child(4) { animation-delay: 0.2s; }
.nav-item:nth-child(5) { animation-delay: 0.25s; }

/* Sidebar Toggle Button */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
}

.sidebar-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

@media (max-width: 768px) {
  .sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
.sidebar-user-email {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-top: 8px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(99, 102, 241, 0.05) 100%);
  border: 1.5px solid rgba(139, 92, 246, 0.2);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

.sidebar-user-email .nav-icon {
  color: #8b5cf6;
  filter: drop-shadow(0 2px 4px rgba(139, 92, 246, 0.3));
}

.user-email-text {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
