body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background-color: #f8fafc;
  color: #111;
}

/* Header */
.docs-header {
  background-color: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 40px 20px;
}

.sidebar-menu {
  width: 200px;
  margin-top: 30px;
  position: absolute;
  left: 40px;
  top: 60px;
  z-index: 1000;
  background-color: rgba(248, 250, 252, 0.95);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-height: 600px; /* INCREASED HEIGHT */
  overflow-y: auto; /* ALLOW SCROLLING IF NEEDED */
}

.sidebar-menu {
  width: 200px;
  margin-top: 30px;
  position: absolute;
  left: 40px;
  top: 60px;
  z-index: 1000;
  background-color: rgba(248, 250, 252, 0.95);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-height: 500px; /* MAKE IT TALLER */
  overflow-y: scroll; /* ALLOW SCROLLING */
}

.sidebar-menu {
  width: 200px;
  margin-top: 30px;
  position: absolute;
  left: 40px;
  top: 60px;
  z-index: 1000;
  background-color: rgba(248, 250, 252, 0.95);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-height: 500px; /* ADD THIS LINE */
  overflow-y: auto; /* ADD THIS LINE */
}

/* ADD THESE NEW RULES AT THE END OF YOUR CSS FILE */
.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}


.sidebar-menu h3,
.quick-links-inline h3 {
  color: #1e293b;
  font-size: 1rem;
  margin-bottom: 8px;
}

.sidebar-menu ul {
  list-style: none;
  padding: 0;
}

.sidebar-menu li {
  padding: 6px 10px;
  margin-bottom: 6px;
  border-radius: 4px;
  transition: background-color 0.2s;
  cursor: pointer;
  font-size: 0.95rem;
  position: relative;
  z-index: 1001;
}

.sidebar-menu li:hover {
  background-color: #e2e8f0;
}

.sidebar-menu a {
  text-decoration: none;
  color: #1e293b;
  display: block;
  position: relative;
  z-index: 1002;
  pointer-events: auto !important;
}

.banner-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-grow: 1;
  margin-top: 5px;
  margin-left: 20px;
}

.banner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.banner-moon {
  /* Bright DeFi gradient background */
  background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 25%, #45b7d1 50%, #96ceb4 75%, #ffeaa7 100%);
  height: 400px;
  flex-grow: 1;
  border-radius: 12px;
  margin-right: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(255, 107, 107, 0.3);
  animation: bannerShift 6s ease-in-out infinite;
}

/* Animated floating particles instead of moon */
.banner-moon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.4) 3px, transparent 3px),
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.3) 2px, transparent 2px),
    radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.5) 4px, transparent 4px),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.3) 2px, transparent 2px),
    radial-gradient(circle at 90% 40%, rgba(255, 255, 255, 0.4) 3px, transparent 3px);
  background-size: 100px 100px, 150px 150px, 200px 200px, 120px 120px, 80px 80px;
  animation: particleFloat 8s linear infinite;
  border-radius: 12px;
}

/* Dynamic logo/text instead of moon */
.banner-moon::after {
  content: '✨ MOONDRAFT DOCS ✨';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  letter-spacing: 2px;
  animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes bannerShift {
  0% { 
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 25%, #45b7d1 50%, #96ceb4 75%, #ffeaa7 100%);
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.3);
  }
  33% { 
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7d1 25%, #96ceb4 50%, #ffeaa7 75%, #ff6b6b 100%);
    box-shadow: 0 8px 32px rgba(78, 205, 196, 0.3);
  }
  66% { 
    background: linear-gradient(135deg, #45b7d1 0%, #96ceb4 25%, #ffeaa7 50%, #ff6b6b 75%, #4ecdc4 100%);
    box-shadow: 0 8px 32px rgba(69, 183, 209, 0.3);
  }
  100% { 
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 25%, #45b7d1 50%, #96ceb4 75%, #ffeaa7 100%);
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.3);
  }
}

@keyframes particleFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
  100% { transform: translateY(0px) rotate(360deg); }
}

@keyframes textGlow {
  0% { 
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%) scale(1);
  }
  100% { 
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
    transform: translate(-50%, -50%) scale(1.05);
  }
}


.launch-button {
  background-color: #334155;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  font-weight: 500;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.launch-button:hover {
  background-color: #475569;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) translateY(-1px);
}

.quick-links-inline {
  margin-top: 30px;
}

.quick-links-inline ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.quick-links-inline li {
  margin-bottom: 6px;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background-color 0.2s;
  cursor: pointer;
}

.quick-links-inline li:hover {
  background-color: #e2e8f0;
}

.quick-links-inline a {
  text-decoration: none;
  color: #1e293b;
  display: block;
}

/* Main Layout */
.layout-wrapper {
  display: grid;
  grid-template-columns: 260px 1fr 140px;
  grid-auto-rows: auto;
  gap: 20px;
  padding: 0 20px 20px;
  margin-top: -50px;
  position: relative;
  z-index: 1;
}

.sidebar, .rightbar {
  background-color: transparent;
  padding: 10px 0;
  color: #1e293b;
  height: calc(100vh - 300px);
  overflow-y: auto;
  font-size: 0.9rem;
}

.main-content {
  background-color: #ffffff;
  padding: 24px;
  border-radius: 8px;
  height: calc(100vh - 300px);
  overflow-y: scroll;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sidebar ul, .rightbar ul {
  padding-left: 18px;
  line-height: 1.8;
}

.sidebar li, .rightbar li {
  margin-bottom: 12px;
}

.rightbar h3 {
  font-size: 1rem;
  margin-top: 0;
}

/* Content */
blockquote {
  background-color: #f1f5f9;
  border-left: 4px solid #1e293b;
  margin: 1em 0;
  padding: 0.75em 1em;
  color: #0f172a;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-container {
    animation: fadeInUp 0.6s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

.disclaimer {
  font-size: 0.75rem;
  text-align: center;
  color: #64748b;
  margin-top: 40px;
  padding: 20px;
}

.pool-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.pool-card {
  background-color: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
}

.pool-card.clmm {
  border-color: #3b82f6;
}

.pool-card.amm {
  border-color: #10b981;
}

.warning {
  background-color: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 16px;
  margin: 16px 0;
  border-radius: 4px;
}

.danger {
  background-color: #fee2e2;
  border-left: 4px solid #ef4444;
  padding: 16px;
  margin: 16px 0;
  border-radius: 4px;
}

.info-card {
  background-color: #dbeafe;
  border-left: 4px solid #3b82f6;
  padding: 16px;
  margin: 16px 0;
  border-radius: 4px;
}

.step-list {
  counter-reset: step-counter;
}

.step-list li {
  counter-increment: step-counter;
  margin: 10px 0;
  padding-left: 30px;
  position: relative;
}

.step-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background-color: #3b82f6;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.settings-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
}

.settings-card h4 {
  margin-top: 0;
  color: #1e293b;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 8px;
}

.setting-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0;
  padding: 10px;
  background-color: white;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.setting-toggle {
  width: 50px;
  height: 25px;
  background-color: #e2e8f0;
  border-radius: 15px;
  position: relative;
  cursor: pointer;
}

.setting-toggle.on {
  background-color: #10b981;
}

.setting-toggle::after {
  content: '';
  position: absolute;
  width: 21px;
  height: 21px;
  background-color: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.3s;
}

.setting-toggle.on::after {
  transform: translateX(25px);
}

.security-level {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.security-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.security-indicator.low { background-color: #ef4444; }
.security-indicator.medium { background-color: #f59e0b; }
.security-indicator.high { background-color: #10b981; }

.staking-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.staking-card {
  background-color: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
}

.staking-card.platform {
  border-color: #8b5cf6;
}

.staking-card.partner {
  border-color: #10b981;
}

.staking-card.liquidity {
  border-color: #f59e0b;
}

.wallet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.wallet-card {
  background-color: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  transition: border-color 0.3s;
}

.wallet-card:hover {
  border-color: #3b82f6;
}

.wallet-card.recommended {
  border-color: #10b981;
  background-color: #f0fdf4;
}

.wallet-card h4 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.recommended-badge {
  background-color: #10b981;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
}

.security-checklist {
  background-color: #f1f5f9;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.security-checklist h4 {
  margin-top: 0;
  color: #1e293b;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  margin: 10px 0;
  gap: 10px;
}

.checklist-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #10b981;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

.banner-moon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.5) 0%, rgba(254, 202, 87, 0.5) 25%, rgba(72, 219, 251, 0.5) 50%, rgba(255, 159, 243, 0.5) 75%, rgba(84, 160, 255, 0.5) 100%);
  border-radius: 8px;
  mix-blend-mode: overlay;
  animation: brightnessShift 4s ease-in-out infinite alternate;
}

@keyframes brightnessShift {
  0% { 
    opacity: 0.5;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.5) 0%, rgba(254, 202, 87, 0.5) 25%, rgba(72, 219, 251, 0.5) 50%, rgba(255, 159, 243, 0.5) 75%, rgba(84, 160, 255, 0.5) 100%);
  }
  100% { 
    opacity: 0.7;
    background: linear-gradient(135deg, rgba(255, 159, 243, 0.6) 0%, rgba(84, 160, 255, 0.6) 25%, rgba(255, 107, 107, 0.6) 50%, rgba(72, 219, 251, 0.6) 75%, rgba(254, 202, 87, 0.6) 100%);
  }
}

