body {
  font-family: 'Poppins', sans-serif;
  background: #f8f9fa;
}

/* Navbar hover effect - updated to dark green */
.navbar-nav .nav-link {
  color: #333;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: #2E7D32 !important;  /* Changed to dark green */
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #2E7D32;  /* Changed to dark green */
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #388E3C 0%, #2E7D32 100%);  /* Updated to green gradient */
  color: white;
  padding: 100px 0 60px;
  margin-bottom: 50px;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-section p {
  font-size: 1.2rem;
  opacity: 0.95;
}

/* Sidebar Navigation */
.sidebar {
  position: sticky;
  top: 80px;
  height: calc(100vh - 100px);
  overflow-y: auto;
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.sidebar-title {
  font-weight: 600;
  color: #2E7D32;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #388E3C;  /* Changed to darker green */
}

.sidebar-nav {
  list-style: none;
  padding: 0;
}

.sidebar-nav li {
  margin-bottom: 5px;
}

.sidebar-nav a {
  color: #666;
  text-decoration: none;
  padding: 8px 12px;
  display: block;
  border-radius: 5px;
  transition: all 0.3s;
  font-size: 0.95rem;
}

.sidebar-nav a:hover {
  background: #E8F5E9;
  color: #2E7D32;
  padding-left: 18px;
}

.sidebar-nav a.active {
  background: #388E3C;  /* Changed to darker green */
  color: white;
}

.sidebar-nav .sub-item {
  padding-left: 20px;
  font-size: 0.9rem;
}

/* Content Sections */
.content-section {
  background: white;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.section-header {
  color: #2E7D32;
  font-weight: 600;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 3px solid #388E3C;  /* Changed to darker green */
  position: relative;
}

.subsection-header {
  color: #388E3C;  /* Changed to darker green */
  font-weight: 500;
  margin-top: 30px;
  margin-bottom: 20px;
}

/* Code Blocks with Copy Button */
.code-wrapper {
  margin: 20px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.code-header {
  background: #f6f8fa;
  border: 1px solid #d1d5da;
  border-bottom: none;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.code-language {
  color: #586069;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

.copy-btn {
  background: transparent;
  border: none;
  color: #586069;
  cursor: pointer;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

.copy-btn:hover {
  background: #e1e4e8;
  color: #24292e;
}

.copy-btn.copied {
  color: #28a745;
}

.copy-btn i {
  font-size: 14px;
}

/* Code Blocks */
.code-wrapper pre {
  background: #2d2d2d !important;
  border-radius: 0 0 8px 8px;
  padding: 20px !important;
  margin: 0;
  overflow-x: auto;
  border: 1px solid #d1d5da;
  border-top: none;
}

pre code {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Inline Code */
.inline-code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  color: #e91e63;
  font-size: 0.9rem;
}

/* Info Boxes */
.info-box {
  background: #E3F2FD;
  border-left: 4px solid #2196F3;
  padding: 20px;
  margin: 20px 0;
  border-radius: 5px;
}

.warning-box {
  background: #FFF3E0;
  border-left: 4px solid #FF9800;
  padding: 20px;
  margin: 20px 0;
  border-radius: 5px;
}

.success-box {
  background: #E8F5E9;
  border-left: 4px solid #388E3C;  /* Changed to darker green */
  padding: 20px;
  margin: 20px 0;
  border-radius: 5px;
}

/* Requirements List */
.requirements-list {
  background: #F5F5F5;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.requirements-list ul {
  margin: 10px 0 0 0;
  padding-left: 20px;
}

.requirements-list li {
  margin: 8px 0;
  color: #555;
}

/* Step Cards */
.step-card {
  background: #FAFAFA;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  position: relative;
}

.step-number {
  background: #388E3C;  /* Changed to darker green */
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  position: absolute;
  top: -15px;
  left: 20px;
}

.step-card h4 {
  margin-top: 10px;
  color: #2E7D32;
}

/* Directory Structure */
.directory-structure {
  background: #2d2d2d;
  color: #4CAF50;  /* Changed to medium green for better readability */
  padding: 20px;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  margin: 20px 0;
}

/* Footer */
.footer {
  background: #2d2d2d;
  color: #ffffff;
  padding: 40px 0 20px;
  margin-top: 80px;
}

.footer a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #4CAF50;  /* Changed to medium green for better visibility */
}

.footer i {
  color: #388E3C;  /* Changed to darker green */
}

.footer hr {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #388E3C;  /* Changed to darker green */
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.scroll-top.show {
  opacity: 1;
}

.scroll-top:hover {
  background: #2E7D32;  /* Changed to even darker green on hover */
  transform: translateY(-3px);
}

/* Table of Contents */
.toc-item {
  padding: 5px 0;
}

.toc-item a {
  color: #666;
  text-decoration: none;
}

.toc-item a:hover {
  color: #388E3C;  /* Changed to darker green */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sidebar {
    position: relative;
    height: auto;
    margin-bottom: 30px;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .copy-btn {
    padding: 3px 8px;
    font-size: 12px;
  }
}