/* ============================================
   SIDEBAR LAYOUT - Pump.fun Style
   ============================================ */

:root {
  --sidebar-width-expanded: 240px;
  --sidebar-width-collapsed: 68px;
  --sidebar-bg: #1a1a2e;
  --sidebar-border: #2d2d44;
  --sidebar-item-hover: rgba(255, 255, 255, 0.1);
  --sidebar-item-active: rgba(0, 212, 255, 0.2);
  --sidebar-text: #ffffff;
  --sidebar-text-muted: #aaaaaa;
  --sidebar-accent: #00d4ff;
  --sidebar-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Lucide Icons Styling for Sidebar - WHITE for dark theme */
.sidebar i[data-lucide],
.sidebar svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* Hide old hamburger menu when sidebar is active */
body.has-sidebar .hamburger {
  display: none !important;
}

body.has-sidebar .side-menu {
  display: none !important;
}

/* Mobile menu button - hidden on desktop */
.sidebar-mobile-toggle {
  display: none;
}

/* Main Layout Container */
.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Sidebar Container */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width-expanded);
  height: 100vh;
  background: #1a1a2e !important;
  border-right: 1px solid var(--sidebar-border);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: width var(--sidebar-transition);
  overflow-x: hidden;
  overflow-y: hidden;
  color: #ffffff !important;
  opacity: 1 !important;
}

/* Force all sidebar text to be visible */
.sidebar * {
  color: #ffffff;
}

.sidebar .sidebar-nav-title {
  color: #aaaaaa !important;
}

.sidebar .sidebar-badge {
  color: #888888 !important;
}

.sidebar.collapsed {
  width: var(--sidebar-width-collapsed);
}

/* Sidebar Header - Logo */
.sidebar-header {
  padding: 20px 16px;
  border-bottom: 1px solid var(--sidebar-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  overflow: hidden;
}

.sidebar-logo-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  object-fit: cover;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.5));
}

.sidebar-logo-text {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ff0000 0%, #00ff00 25%, #ffd700 50%, #ff0000 75%, #00ff00 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: christmasGradient 3s ease infinite;
  white-space: nowrap;
  transition: opacity var(--sidebar-transition);
}

.sidebar.collapsed .sidebar-logo-text {
  opacity: 0;
  width: 0;
}

/* Collapse Toggle Button */
.sidebar-toggle {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 14px;
}

.sidebar-toggle:hover {
  background: rgba(0, 0, 0, 0.15);
  color: #000;
}

.sidebar.collapsed .sidebar-toggle {
  transform: rotate(180deg);
}

/* Close Button (Mobile) */
.sidebar-close {
  display: none;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  color: #333;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.sidebar-close:hover {
  background: rgba(0, 0, 0, 0.15);
  color: #000;
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  padding: 8px 10px;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-nav-section {
  margin-bottom: 12px;
}

.sidebar-nav-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--sidebar-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 8px;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity var(--sidebar-transition);
}

.sidebar.collapsed .sidebar-nav-title {
  opacity: 0;
}

/* Sidebar Navigation Items */
.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 2px;
}

.sidebar-nav-item:hover {
  background: var(--sidebar-item-hover);
  color: var(--sidebar-text);
}

.sidebar-nav-item.active {
  background: var(--sidebar-item-active);
  color: var(--sidebar-accent);
  border-left: 3px solid var(--sidebar-accent);
  margin-left: -3px;
  padding-left: 15px;
}

.sidebar-nav-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  stroke-width: 2.5;
}

.sidebar-nav-label {
  white-space: nowrap;
  overflow: hidden;
  transition: opacity var(--sidebar-transition), width var(--sidebar-transition);
}

.sidebar.collapsed .sidebar-nav-label {
  opacity: 0;
  width: 0;
}

/* Sidebar Info Section - Note Box */
.sidebar-info-section {
  padding: 0 10px;
  flex-shrink: 0;
}

.sidebar-info-box {
  background: rgba(20, 20, 35, 0.9);
  border: 2px solid rgba(77, 212, 228, 0.4);
  border-radius: 12px;
  padding: 14px;
  margin-top: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(77, 212, 228, 0.05);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-icon {
  font-size: 16px;
  min-width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
  min-width: 0;
}

.info-content strong {
  font-size: 11px;
  font-weight: 700;
  color: #4dd4e4;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-content span {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
  word-wrap: break-word;
}

/* Hide info section when sidebar is collapsed */
.sidebar.collapsed .sidebar-info-section {
  display: none;
}

/* Mobile adjustments for info section */
@media (max-width: 768px) {
  .sidebar-info-box {
    padding: 12px;
  }

  .info-item {
    padding: 8px;
    margin-bottom: 6px;
  }

  .info-content span {
    font-size: 11px;
  }
}

/* Coming Soon Badge */
.sidebar-badge {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent-purple), #9000cc);
  color: white;
  font-weight: 600;
  margin-left: auto;
  white-space: nowrap;
  transition: opacity var(--sidebar-transition);
}

.sidebar.collapsed .sidebar-badge {
  opacity: 0;
}

.sidebar-badge.active {
  background: linear-gradient(135deg, var(--accent-green), #00cc7a);
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 8px 10px;
  border-top: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}

.sidebar-footer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--sidebar-text-muted);
  text-decoration: none;
  font-size: 11px;
  transition: all 0.2s ease;
}

.sidebar-footer-item:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--sidebar-text);
}

.sidebar.collapsed .sidebar-footer-item span {
  opacity: 0;
  width: 0;
}

/* Social Icons Row */
.sidebar-social-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--sidebar-text);
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-icon-btn:hover {
  background: rgba(77, 212, 228, 0.2);
  color: #4dd4e4;
  transform: translateY(-2px);
}

.social-icon-btn svg,
.social-icon-btn i {
  width: 18px;
  height: 18px;
}

/* Legal Links Row */
.sidebar-legal-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.legal-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--sidebar-text-muted);
  text-decoration: none;
  font-size: 10px;
  transition: all 0.2s ease;
}

.legal-link:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--sidebar-text);
}

.legal-link i {
  width: 12px;
  height: 12px;
}

/* Main Content Area */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width-expanded);
  transition: margin-left var(--sidebar-transition);
  min-height: 100vh;
  width: calc(100% - var(--sidebar-width-expanded));
}

body.sidebar-collapsed .main-content {
  margin-left: var(--sidebar-width-collapsed);
  width: calc(100% - var(--sidebar-width-collapsed));
}

/* Update Navigation Bar */
body.has-sidebar .nav {
  left: var(--sidebar-width-expanded);
  width: calc(100% - var(--sidebar-width-expanded));
  transition: left var(--sidebar-transition), width var(--sidebar-transition);
}

body.has-sidebar.sidebar-collapsed .nav {
  left: var(--sidebar-width-collapsed);
  width: calc(100% - var(--sidebar-width-collapsed));
}

body.has-sidebar .nav .nav-left {
  display: none;
}

/* Footer Updates */
body.has-sidebar .main-footer {
  margin-left: 0;
  width: 100%;
}

/* Water Canvas adjustment */
body.has-sidebar #water {
  left: var(--sidebar-width-expanded);
  width: calc(100% - var(--sidebar-width-expanded));
  transition: left var(--sidebar-transition), width var(--sidebar-transition);
}

body.has-sidebar.sidebar-collapsed #water {
  left: var(--sidebar-width-collapsed);
  width: calc(100% - var(--sidebar-width-collapsed));
}

/* Tooltip for collapsed state */
.sidebar.collapsed .sidebar-nav-item {
  position: relative;
}

.sidebar.collapsed .sidebar-nav-item::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1001;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar.collapsed .sidebar-nav-item:hover::after {
  opacity: 1;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {

  /* Mobile: Sidebar becomes overlay */
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .sidebar.collapsed {
    width: 280px;
  }

  /* Show mobile hamburger */
  body.has-sidebar .mobile-menu-btn {
    display: flex !important;
  }

  /* Reset main content on mobile */
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
  }

  /* Reset nav on mobile */
  body.has-sidebar .nav {
    left: 0 !important;
    width: 100% !important;
  }

  body.has-sidebar .nav .nav-left {
    display: flex;
  }

  /* Water canvas reset */
  body.has-sidebar #water {
    left: 0 !important;
    width: 100% !important;
  }

  /* Mobile overlay backdrop */
  .sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .sidebar-backdrop.active {
    display: block;
    opacity: 1;
  }
}

/* Mobile Menu Button (shown on mobile only) */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-purple));
  border-radius: 8px;
  border: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  z-index: 998;
  box-shadow: var(--glow-green);
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  transform: scale(1.1);
}

.mobile-menu-btn span {
  width: 24px;
  height: 3px;
  background: #000;
  border-radius: 2px;
}

/* Hide toggle button on collapsed state when on mobile */
@media (max-width: 768px) {
  .sidebar-toggle {
    display: none;
  }

  .sidebar-close {
    display: flex;
    position: absolute;
    top: 20px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
  }

  .sidebar-close:hover {
    background: rgba(255, 255, 255, 0.2);
  }
}

@media (min-width: 769px) {
  .sidebar-close {
    display: none;
  }
}

/* Divider */
.sidebar-divider {
  height: 1px;
  background: var(--sidebar-border);
  margin: 16px 12px;
}

/* Scrollbar styling for sidebar */
.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Footer Titles */
.sidebar-footer-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--sidebar-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 10px;
  margin-bottom: 6px;
  margin-top: 8px;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity var(--sidebar-transition);
}

.sidebar-footer-title:first-child {
  margin-top: 0;
}

.sidebar.collapsed .sidebar-footer-title {
  opacity: 0;
}

/* Copyright */
.sidebar-copyright {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  padding: 12px 10px 0;
  margin-top: 8px;
  border-top: 1px solid var(--sidebar-border);
  white-space: nowrap;
  overflow: hidden;
  transition: opacity var(--sidebar-transition);
}

.sidebar.collapsed .sidebar-copyright {
  opacity: 0;
}

/* Disabled Nav Items */
.sidebar-nav-item.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sidebar-nav-item.disabled:hover {
  background: transparent;
}

/* Hide old footer when sidebar is active */
body.has-sidebar .main-footer {
  display: none !important;
}

/* Page Title for separate pages */
.page-header {
  padding: 40px 0 30px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.page-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Page Footer - Bottom of each page - Same style as header */
.page-footer {
  text-align: center;
  padding: 40px 20px;
  margin-top: 60px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  color: #1a1a2e;
  font-size: 14px;
  font-weight: 600;
}

.page-footer p {
  margin: 0;
}

/* Ensure nav bar is always visible */
body.has-sidebar .nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(5, 5, 8, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding-left: var(--sidebar-width-expanded);
  transition: padding-left var(--sidebar-transition);
}

body.has-sidebar.sidebar-collapsed .nav {
  padding-left: var(--sidebar-width-collapsed);
}

/* Wallet Connect Button / Home Button - Fixed Top Right */
.wallet-connect-fixed {
  position: fixed !important;
  top: 15px;
  right: 20px;
  z-index: 10000;
  display: block !important;
  pointer-events: auto !important;
}

.wallet-connect-fixed .nav-btn {
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Hero section adjustment - move content up */
body.has-sidebar .hero-section {
  padding-top: 20px;
}

body.has-sidebar .hero-section .hero {
  padding-top: 0;
  margin-top: -30px;
}

/* Ensure main footer is visible on pages with sidebar */
body.has-sidebar .main-footer {
  display: block !important;
}

/* Fixed Page Footer - Copyright */
.page-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.9);
  border-top: 1px solid rgba(77, 212, 228, 0.2);
  text-align: center;
  z-index: 100;
}

.page-footer p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  font-size: 12px;
}

/* Add padding to main content for fixed footer */
body.has-sidebar .main-content {
  padding-bottom: 50px;
}

/* ============================================
   MOBILE RESPONSIVE - SIDEBAR
   ============================================ */
@media (max-width: 768px) {

  /* Hide sidebar by default on mobile */
  .sidebar {
    transform: translateX(-100%);
    width: 260px;
    z-index: 1001;
  }

  /* Show sidebar when open on mobile */
  .sidebar.mobile-open {
    transform: translateX(0);
  }

  /* Mobile menu toggle button - show on mobile */
  .sidebar-mobile-toggle {
    display: flex !important;
    position: fixed;
    top: 12px;
    left: 12px;
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1002;
    color: #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .sidebar-mobile-toggle i,
  .sidebar-mobile-toggle svg {
    width: 24px;
    height: 24px;
    color: #000000;
    stroke: #000000;
    stroke-width: 2.5;
  }

  .sidebar-mobile-toggle:hover {
    background: #f0f0f0;
  }

  /* Overlay when sidebar is open */
  .sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
  }

  .sidebar-backdrop.active {
    display: block;
  }

  /* Main content - no margin on mobile */
  .main-content {
    margin-left: 0 !important;
    padding-top: 60px;
  }

  /* Nav bar - hide on mobile since using menu button */
  body.has-sidebar .nav {
    display: none !important;
  }

  /* Wallet button stays at top right */
  .wallet-connect-fixed {
    position: fixed !important;
    right: 12px;
    top: 12px;
    z-index: 1002;
  }

  .wallet-connect-fixed .nav-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  /* Sidebar close button - visible on mobile */
  .sidebar-close {
    display: flex !important;
  }

  /* Footer positioning - LIGHT GLASSMORPHISM ON MOBILE */
  .page-footer {
    left: 0 !important;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid rgba(77, 212, 228, 0.2);
  }

  .page-footer p {
    font-size: 10px;
  }

  /* Hero section adjustment */
  .hero-section {
    padding-top: 20px !important;
  }

  /* Sidebar footer smaller on mobile */
  .sidebar-footer {
    padding: 8px;
  }

  .social-icon-btn {
    width: 30px;
    height: 30px;
  }

  .legal-link {
    font-size: 9px;
    padding: 4px 6px;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .sidebar {
    width: 200px;
  }

  .sidebar.collapsed {
    width: 60px;
  }

  .main-content {
    margin-left: 200px;
  }

  body.has-sidebar.sidebar-collapsed .main-content {
    margin-left: 60px;
  }
}

/* ============================================
   GENERATOR PAGE ONLY - Mobile menu on ALL devices
   ============================================ */
body.generator-bg .sidebar {
  transform: translateX(-100%);
  width: 260px;
}

body.generator-bg .sidebar.mobile-open {
  transform: translateX(0);
}

/* Generator form stays fixed in center - doesn't move with sidebar */
body.generator-bg .main-content {
  margin-left: 0 !important;
  width: 100% !important;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 20px;
}

body.generator-bg .generator-layout {
  margin: 0 auto;
  max-width: 700px;
  width: 100%;
}

body.generator-bg .sidebar-mobile-toggle {
  display: flex !important;
  position: fixed;
  top: 12px;
  left: 12px;
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1002;
  color: #000000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.generator-bg .sidebar-mobile-toggle i,
body.generator-bg .sidebar-mobile-toggle svg {
  width: 24px;
  height: 24px;
  color: #000000 !important;
  stroke: #000000 !important;
  stroke-width: 2.5;
}

body.generator-bg .sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
}

body.generator-bg .sidebar-backdrop.active {
  display: block;
}

/* Close button in sidebar for generator page */
body.generator-bg .sidebar-close {
  display: flex !important;
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: #ffffff;
}

body.generator-bg .sidebar-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

body.generator-bg .sidebar-close i,
body.generator-bg .sidebar-close svg {
  width: 20px;
  height: 20px;
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* Generator page menu button - CYAN on desktop/tablet */
@media (min-width: 769px) {
  body.generator-bg .sidebar-mobile-toggle {
    background: #00d4ff;
    border: 2px solid #00a8cc;
  }

  body.generator-bg .sidebar-mobile-toggle i,
  body.generator-bg .sidebar-mobile-toggle svg {
    color: #000000 !important;
    stroke: #000000 !important;
  }
}

/* Generator page menu button - WHITE on mobile */
@media (max-width: 768px) {
  body.generator-bg .sidebar-mobile-toggle {
    background: #ffffff;
    border: 2px solid rgba(0, 0, 0, 0.2);
  }

  body.generator-bg .sidebar-mobile-toggle i,
  body.generator-bg .sidebar-mobile-toggle svg {
    color: #000000 !important;
    stroke: #000000 !important;
  }
}