:root {
  --primary-color: #16a34a;
  /* Vibrant green */
  --primary-bg: #dcfce7;
  --text-dark: #111827;
  --text-body: #4b5563;
  --text-light: #9ca3af;
  --bg-color: #f9fafb;
  --bg-card: #ffffff;
  --border-color: #e5e7eb;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header */
.navbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  letter-spacing: -0.02em;
}

.header-badge {
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.875rem;
  background-color: #f3f4f6;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
}

/* Layout Container */
.container {
  max-width: 1200px;
  margin: 3rem auto;
  display: flex;
  gap: 4rem;
  padding: 0 2rem;
  align-items: flex-start;
}

/* Sidebar */
.sidebar {
  width: 280px;
  position: sticky;
  top: 100px;
  /* Offset for sticky header */
  flex-shrink: 0;
}

.sidebar-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 1rem;
  padding-left: 1rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-item {
  padding: 0.875rem 1rem;
  border-radius: 8px;
  color: var(--text-body);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background-color: #f3f4f6;
  color: var(--text-dark);
}

.nav-item.active {
  background-color: var(--primary-bg);
  color: var(--primary-color);
  font-weight: 600;
  border-left-color: var(--primary-color);
  border-radius: 0 8px 8px 0;
}

.sidebar-footer {
  margin-top: 3rem;
  padding-left: 1rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

.company-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.company-brand-text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.company-logo {
  max-width: 120px;
  height: auto;
  opacity: 0.9;
}

.sidebar-footer p {
  margin-bottom: 0.25rem;
}

.sidebar-footer strong {
  color: var(--text-body);
  font-weight: 600;
}

.support-info {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  line-height: 1.6;
}

.support-info p {
  margin-bottom: 0.25rem;
}

.support-info a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

.support-info a:hover {
  text-decoration: underline;
  color: #15803d;
  /* Darker green */
}

.project-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  margin-right: 12px;
  object-fit: contain;
}

/* Content Area */
.content-wrapper {
  flex: 1;
  min-width: 0;
  /* Prevents overflow in flexbox */
}

.content {
  background: var(--bg-card);
  padding: 4rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
}

/* Markdown typography styles styling */
.content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  color: var(--text-dark);
  line-height: 1.2;
}

.content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  color: var(--text-dark);
}

.content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.content p,
.content ul,
.content ol {
  margin-bottom: 1.5rem;
  color: var(--text-body);
  font-size: 1.05rem;
}

.content ul,
.content ol {
  padding-left: 1.75rem;
}

.content li {
  margin-bottom: 0.5rem;
}

.content li::marker {
  color: var(--primary-color);
}

.content strong {
  color: var(--text-dark);
  font-weight: 600;
}

.content hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 3rem 0;
}

.content a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.content a:hover {
  border-color: var(--primary-color);
}

/* Loader */
.loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.loader {
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
    gap: 2rem;
    padding: 0 1.5rem;
    margin: 2rem auto;
  }

  .sidebar {
    width: 100%;
    position: static;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
  }

  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .nav-item {
    flex-shrink: 0;
    border-left: none;
    border-bottom: 3px solid transparent;
    border-radius: 8px 8px 0 0;
  }

  .nav-item.active {
    border-left: none;
    border-bottom-color: var(--primary-color);
    border-radius: 8px 8px 0 0;
  }

  .content {
    padding: 2rem 1.5rem;
  }

  .content h1 {
    font-size: 2rem;
  }

  .sidebar-footer {
    display: none;
  }
}