* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

#navbar {
  position: fixed;
  left: 0;
  top: 54px;
  width: 280px;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  z-index: 100;
}

#navbar header {
  font-size: 1.8rem;
  padding: 1.5rem;
  text-align: center;
  border-bottom: 2px solid #667eea;
  margin-bottom: 1rem;
  font-weight: bold;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-link {
  display: block;
  padding: 0.8rem 1.5rem;
  color: #e0e0e0;
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  font-size: 1rem;
}

.nav-link:hover {
  background: rgba(102, 126, 234, 0.2);
  border-left-color: #667eea;
  color: white;
  padding-left: 2rem;
}

#main-doc {
  margin-left: 280px;
  padding: 2rem;
  max-width: 1200px;
}

.main-section {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.main-section:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.main-section header {
  font-size: 2rem;
  color: #667eea;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #667eea;
  display: inline-block;
}

.main-section p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: #555;
}

.main-section code {
  display: block;
  background: #f4f4f4;
  padding: 0.8rem;
  margin: 1rem 0;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  border-left: 4px solid #667eea;
  color: #333;
  overflow-x: auto;
}

.main-section ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.main-section li {
  margin: 0.5rem 0;
  color: #555;
}

/* Media Query for smaller screens */
@media (max-width: 768px) {
  #navbar {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  #main-doc {
    margin-left: 0;
    padding: 1rem;
  }
  
  .main-section {
    padding: 1.5rem;
  }
  
  .main-section header {
    font-size: 1.5rem;
  }
  
  #navbar header {
    font-size: 1.5rem;
    padding: 1rem;
  }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}