* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", sans-serif;
  background-color: #f3f4f6;
  color: #1f2937;
  line-height: 1.6;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  background-color: white;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Prevents image from overflowing */
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Ensures image fits properly */
}

.site-title {
  font-size: 1.25rem;
  font-weight: bold;
}

.site-subtitle {
  font-size: 0.75rem;
  color: #6b7280;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.github-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #4b5563;
  text-decoration: none;
  transition: color 0.3s;
}

.github-link:hover {
  color: #2563eb;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

/* Main Container */
.main-container {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 1rem;
}

/* Sidebar */
.sidebar {
  width: 256px;
  flex-shrink: 0;
}

.nav-menu {
  background-color: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 1rem;
  position: sticky;
  top: 96px;
}

.nav-menu ul {
  list-style: none;
}

.nav-menu li {
  margin-bottom: 0.25rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: #4b5563;
  text-decoration: none;
  transition: all 0.3s;
}

.nav-link:hover {
  background-color: #f3f4f6;
}

/* In your .nav-link.active class */
.nav-link.active {
  background-color: #dbeafe; /* Using the new light blue */
  color: #1e40af; /* Using the new dark blue for text */
  font-weight: 600;
}

/* Main Content */
.main-content {
  flex: 1;
  min-width: 0;
}

/* Hero Section */
/* In your .hero class */
.hero {
  background: linear-gradient(135deg, #2563eb 0%, #10b981 100%); /* Updated Gradient */
  color: white;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* New Green Accent Button */
.btn-accent {
  background-color: #10b981;
  color: white;
}

.btn-accent:hover {
  background-color: #059669;
}

/* Class for green badges or tags */
.badge-success {
  background-color: #d1fae5; /* A very light green */
  color: #065f46; /* A dark green */
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.875rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}

.btn-primary {
  background-color: white;
  color: #2563eb;
}

.btn-primary:hover {
  background-color: #f3f4f6;
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background-color: white;
  color: #2563eb;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.card {
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  transition: box-shadow 0.3s;
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-icon {
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.card p {
  color: #6b7280;
  margin-bottom: 1rem;
}

.card-link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Quick Start Box */
.quick-start {
  background-color: #f9fafb;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.quick-start h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.step-list {
  list-style: none;
}

.step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.step-number {
  background-color: #2563eb;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  flex-shrink: 0;
  font-size: 0.875rem;
}

/* Content Sections */
.content-section {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.content-box {
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.content-box h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.content-box h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
}

.content-box p {
  color: #4b5563;
  margin-bottom: 1rem;
}

.feature-list {
  list-style: none;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.feature-item svg {
  color: #2563eb;
  margin-right: 0.5rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

/* API Documentation */
.api-endpoint {
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.api-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.api-method {
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.875rem;
}

.method-post {
  background-color: #d1fae5;
  color: #065f46;
}

.method-get {
  background-color: #dbeafe;
  color: #1e40af;
}

.api-path {
  font-family: monospace;
  font-size: 1.125rem;
}

.param-box {
  background-color: #f9fafb;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.param-item {
  margin-bottom: 0.75rem;
}

.param-item:last-child {
  margin-bottom: 0;
}

.param-name {
  font-family: monospace;
  font-size: 0.875rem;
  color: #2563eb;
}

.param-type {
  font-size: 0.75rem;
  color: #6b7280;
  margin-left: 0.5rem;
}

.param-required {
  font-size: 0.75rem;
  background-color: #fee2e2;
  color: #991b1b;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
}

.param-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.code-block {
  background-color: #1f2937;
  color: #f3f4f6;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  font-family: monospace;
  font-size: 0.875rem;
}

/* Release Section */
.release-card {
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.release-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.release-version {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2563eb;
}

.release-date {
  color: #6b7280;
}

.download-btn {
  background-color: #10b981;
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.3s;
}

.download-btn:hover {
  background-color: #059669;
}

.download-warning {
    font-size: 0.875rem;
    color: #dc2626;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: #fef2f2;
    border-radius: 4px;
    border-left: 3px solid #dc2626;
}

.release-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.release-description {
  color: #4b5563;
  margin-bottom: 1rem;
}

.changelog-section {
  margin-bottom: 1rem;
}

.changelog-section h4 {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  background-color: white;
  border-top: 1px solid #e5e7eb;
  margin-top: 3rem;
  padding: 1.5rem 0;
  text-align: center;
}

.footer p {
  color: #6b7280;
}

.footer-subtitle {
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .header-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .main-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    display: none;
  }

  .sidebar.active {
    display: block;
  }

  .nav-menu {
    position: static;
  }

  .hero h1 {
    font-size: 1.875rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}
