:root {
  --primary-bg: #0f172a;
  --primary-text: #e2e8f0;
  --secondary-bg: #1e293b;
  --secondary-text: #f8fafc;
  --accent-color: #3b82f6;
  --accent-hover: #2563eb;
  --highlight-color: #60a5fa;
  --transition-speed: 0.3s;
  --card-bg: rgba(30, 41, 59, 0.7);
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --info-color: #3b82f6;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--primary-bg);
  color: var(--primary-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 768px) {
  html {
font-size: 14px;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  background: linear-gradient(90deg, var(--accent-color), var(--highlight-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

h2 {
  font-size: 2rem;
  color: var(--highlight-color);
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), transparent);
  border-radius: 3px;
}

h3 {
  font-size: 1.5rem;
  color: var(--highlight-color);
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--highlight-color);
  text-decoration: underline;
}

/* Layout */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#header {
  position: sticky;
  top: 0;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#header h1 {
  font-size: 1.5rem;
  margin: 0;
  background: none;
  color: var(--highlight-color);
}

#contents {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
}

/* Navigation */
#drop {
  position: relative;
  z-index: 1001;
}

.menu {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.bar1, .bar2, .bar3 {
  width: 28px;
  height: 3px;
  background-color: var(--highlight-color);
  margin: 4px 0;
  transition: var(--transition-speed);
}

.change .bar1 {
  transform: translate(0, 11px) rotate(-45deg);
}

.change .bar2 {
  opacity: 0;
}

.change .bar3 {
  transform: translate(0, -11px) rotate(45deg);
}

#down {
  position: fixed;
  right: 2rem;
  top: 5rem;
  display: flex;
  flex-direction: column;
  border-radius: var(--border-radius);
  width: 280px;
  max-width: 90vw;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-speed) ease-out;
  background-color: var(--secondary-bg);
  box-shadow: var(--card-shadow);
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

#down.change {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#down p {
  margin: 0;
  padding: 1rem;
  color: var(--highlight-color);
  font-size: 1.2rem;
  font-weight: 600;
  background-color: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#down a {
  display: block;
  padding: 0.8rem 1rem;
  color: var(--primary-text);
  font-size: 1rem;
  transition: all var(--transition-speed);
  border-left: 3px solid transparent;
}

#down a:hover {
  background-color: rgba(59, 130, 246, 0.1);
  border-left-color: var(--accent-color);
  padding-left: 1.2rem;
  text-decoration: none;
}

/* Articles */
article {
  padding: 1rem;
  margin-bottom: 2rem;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

article:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Code Blocks */
pre {
  background-color: #0f172a;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  overflow-x: auto;
  font-family: 'Fira Code', monospace;
  margin: 1.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
  position: relative;
}

pre code {
  font-size: 0.9rem;
  line-height: 1.5;
}

code {
  background-color: rgba(59, 130, 246, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  color: var(--highlight-color);
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
}

/* Buttons */
button {
  padding: 0.75rem 1.5rem;
  border: none;
  color: white;
  border-radius: var(--border-radius);
  cursor: pointer;
  background-color: var(--accent-color);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-speed);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

button:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

button:active {
  transform: translateY(0);
}

button i {
  font-size: 1.2rem;
}

/* Forms */
textarea, input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--primary-text);
  font-size: 1rem;
  transition: all var(--transition-speed);
  margin-bottom: 1rem;
}

textarea:focus, input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Lists */
ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

/* Feature Cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-speed);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: var(--accent-color);
}

.feature-card h3 {
  margin-top: 0;
  align-items: center;
}

.feature-card h3 i {
  color: var(--accent-color);
}

/* API Reference Table */
.api-reference {
  width: 100%;
  border: 1px solid var(--accent-color);
  border-collapse: collapse;
  margin: 2rem 0;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.api-reference th, .api-reference td {
  padding: 1rem;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.api-reference th {
  background-color: var(--accent-color);
  color: white;
  font-weight: 600;
  position: sticky;
  top: 0;
}

.api-reference tr:last-child td {
  border-bottom: none;
}

.api-reference tr:hover {
  background-color: rgba(59, 130, 246, 0.05);
}

.api-reference td:first-child {
  font-family: 'Fira Code', monospace;
  color: var(--highlight-color);
  white-space: nowrap;
}

.api-reference td:nth-child(2) {
  color: var(--primary-text);
}

.api-reference td:nth-child(3) {
  font-family: 'Fira Code', monospace;
  color: #86efac;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
  margin-left: 0.5rem;
  background-color: var(--accent-color);
  color: white;
  vertical-align: middle;
}

.badge.new {
  background-color: var(--success-color);
}

.badge.updated {
  background-color: var(--warning-color);
}

.badge.experimental {
  background-color: var(--error-color);
}

/* Footer */
#footer {
  padding: 2rem;
  background-color: var(--secondary-bg);
  color: var(--secondary-text);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#footer p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.social-links a {
  color: var(--secondary-text);
  font-size: 1.5rem;
  transition: all var(--transition-speed);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
  color: var(--highlight-color);
  transform: translateY(-3px);
  background-color: rgba(59, 130, 246, 0.2);
  text-decoration: none;
}

/* Back to top button */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--accent-color);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: none;
  transition: all var(--transition-speed);
  z-index: 999;
  opacity: 0.9;
}

#back-to-top:hover {
  background-color: var(--accent-hover);
  transform: translateY(-3px) scale(1.1);
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  #contents {
padding: 1.5rem;
  }
  
  article {
padding: 1.5rem;
  }
  
  .feature-grid {
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  #header {
padding: 0.75rem 1rem;
  }
  
  #header h1 {
font-size: 1.25rem;
  }
  
  #contents {
padding: 1rem;
  }
  
  article {
padding: 1.25rem;
  }
  
  h1 {
font-size: 2rem;
  }
  
  h2 {
font-size: 1.75rem;
  }
  
  pre {
padding: 1rem;
  }
  
  .api-reference {
display: block;
overflow-x: auto;
  }
}

@media (max-width: 480px) {
  #down {
right: 1rem;
top: 4rem;
  }
  
  .feature-grid {
grid-template-columns: 1fr;
  }
  
  .api-reference th, .api-reference td {
padding: 0.75rem;
font-size: 0.9rem;
  }
  
  #back-to-top {
width: 45px;
height: 45px;
bottom: 1.5rem;
right: 1.5rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

article {
  animation: fadeIn 0.6s ease-out forwards;
}

article:nth-child(1) { animation-delay: 0.1s; }
article:nth-child(2) { animation-delay: 0.2s; }
article:nth-child(3) { animation-delay: 0.3s; }
article:nth-child(4) { animation-delay: 0.4s; }
article:nth-child(5) { animation-delay: 0.5s; }
article:nth-child(6) { animation-delay: 0.6s; }
article:nth-child(7) { animation-delay: 0.7s; }
article:nth-child(8) { animation-delay: 0.8s; }
article:nth-child(9) { animation-delay: 0.9s; }
article:nth-child(10) { animation-delay: 1s; }

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}

.tab {
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all var(--transition-speed);
  font-weight: 500;
}

.tab.active {
  border-bottom-color: var(--accent-color);
  color: var(--highlight-color);
}

.tab:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Tooltips */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: var(--secondary-bg);
  color: var(--primary-text);
  text-align: center;
  border-radius: 6px;
  padding: 0.5rem;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity var(--transition-speed);
  font-size: 0.9rem;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Status indicators */
.status {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.status.stable {
  background-color: var(--success-color);
}

.status.beta {
  background-color: var(--warning-color);
}

.status.deprecated {
  background-color: var(--error-color);
}

/* Copy code button */
.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background-color: var(--card-bg);
  border: none;
  color: var(--primary-text);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all var(--transition-speed);
  opacity: 0;
}

pre:hover .copy-btn {
  opacity: 1;
}

.copy-btn:hover {
  background-color: var(--accent-color);
  color: white;
}

/* Dark mode toggle (example - would need JS implementation) */
.theme-toggle {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  background-color: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: var(--card-shadow);
}

.logo{
  width: 50px;
  height: 50px;
  aspect-ratio: 1;
  border-radius: 4px;
}

/* scrollbar */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 0;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0;
}
::-webkit-scrollbar-track:hover {
  background: rgba(0, 0, 0, 0.2);
}