:root {
  --primary-color: #1a1f36;
  --secondary-color: #2d3748;
  --accent-color: #4299e1;
  --accent-hover: #3182ce;
  --text-color: #2d3748;
  --text-light: #718096;
  --bg-color: #f7fafc;
  --card-bg-color: #ffffff;
  --border-color: #e2e8f0;
  --nav-bg: #1a202c;
  --nav-text: #a0aec0;
  --nav-hover: #2d3748;
  --success-color: #48bb78;
  --warning-color: #ed8936;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  display: flex;
  min-height: 100vh;
}

/* Navigation Styles */
nav {
  width: 320px;
  background: linear-gradient(180deg, var(--nav-bg) 0%, #0f1419 100%);
  color: #fff;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

nav::-webkit-scrollbar {
  width: 8px;
}

nav::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.nav-header {
  padding: 30px 25px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.nav-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
  letter-spacing: -0.5px;
}

.nav-subtitle {
  font-size: 14px;
  color: var(--nav-text);
  font-weight: 400;
}

.search-container {
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#searchInput {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  font-size: 14px;
  transition: all 0.3s ease;
}

#searchInput::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

#searchInput:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.search-results {
  display: none;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding: 10px;
}

.search-results::-webkit-scrollbar {
  width: 8px;
}

.search-results::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.search-results::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.search-results-header {
  padding: 10px 15px;
  color: #a0aec0;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-result-item {
  display: block;
  padding: 12px 15px;
  margin: 5px 0;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: #4299e1;
  transform: translateX(3px);
}

.search-result-title {
  color: white;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.search-result-title mark {
  background: #4299e1;
  color: white;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 600;
}

.search-result-path {
  color: #718096;
  font-size: 12px;
}

.no-results {
  padding: 20px;
  text-align: center;
  color: #a0aec0;
  font-size: 14px;
}

.nav-content {
  padding: 20px 0;
}

.nav-section {
  margin-bottom: 30px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  padding: 12px 25px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--accent-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.subsection {
  margin-bottom: 20px;
}

.subsection-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-color);
  padding: 8px 25px 8px 35px;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: block;
  padding: 10px 25px 10px 45px;
  color: var(--nav-text);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.nav-list a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-left-color: var(--accent-color);
  padding-left: 48px;
}

/* Main Content Styles */
main {
  margin-left: 320px;
  flex: 1;
  padding: 0;
  background-color: var(--bg-color);
  min-height: 100vh;
}

.welcome-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
}

.welcome-section h1 {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 15px;
  letter-spacing: -1px;
}

.intro-text {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 50px;
  line-height: 1.8;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 60px;
}

.feature-card {
  background: var(--card-bg-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.06);
  border-color: var(--accent-color);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
  border: none;
  padding: 0;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
}

/* Getting Started Section */
.getting-started {
  background: var(--card-bg-color);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
}

.getting-started h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 25px;
  border: none;
  padding: 0;
}

.getting-started ol {
  padding-left: 25px;
  margin: 0;
}

.getting-started li {
  font-size: 16px;
  color: var(--text-color);
  margin-bottom: 15px;
  line-height: 1.8;
  padding-left: 10px;
}

.getting-started li::marker {
  color: var(--accent-color);
  font-weight: 700;
}

/* Documentation Content Styles */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: 36px;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 3px solid var(--accent-color);
  padding-bottom: 15px;
}

h2 {
  font-size: 28px;
  margin-top: 35px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 12px;
}

h3 {
  font-size: 22px;
  margin-top: 30px;
  margin-bottom: 15px;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  background-color: #f1f5f9;
  color: #e53e3e;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  border: 1px solid #e2e8f0;
}

pre {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  color: #e2e8f0;
  padding: 25px;
  border-radius: 10px;
  overflow-x: auto;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  margin: 25px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

pre code {
  background-color: transparent;
  color: #e2e8f0;
  padding: 0;
  border: none;
  font-size: 14px;
  line-height: 1.6;
}

button {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(66, 153, 225, 0.4);
}

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

table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background-color: var(--card-bg-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
}

th, td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

thead {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: #fff;
}

thead th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
}

tbody tr {
  transition: background-color 0.2s ease;
}

tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

tbody tr:hover {
  background-color: #edf2f7;
}

tbody tr:last-child td {
  border-bottom: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  nav {
    width: 280px;
  }
  
  main {
    margin-left: 280px;
  }
  
  .welcome-section {
    padding: 40px 30px;
  }
  
  .feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  nav {
    width: 100%;
    position: relative;
    height: auto;
  }
  
  main {
    margin-left: 0;
  }
  
  .welcome-section {
    padding: 30px 20px;
  }
  
  .welcome-section h1 {
    font-size: 32px;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .getting-started {
    padding: 30px 25px;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.p-4 {
  padding: 2rem;
}
