@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --primary-color: #1d7b2b;
  --primary-light: #e8f5e9;
  --primary-dark: #145a20;
}

/* Base Styles */
body {
  font-family: "Poppins", sans-serif;
  color: #555;
  background-color: #f9f9f9;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #333;
}

b {
  font-weight: 600;
}

/* Text Colors */
.text-primary {
  color: var(--primary-color) !important;
}

/* Background Colors */
.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-primary-light {
  background-color: var(--primary-light);
}

.bg-success-light {
  background-color: #d1e7dd;
}

.bg-warning-light {
  background-color: #fff3cd;
}

.text-success {
  color: #198754 !important;
}

.text-warning {
  color: #856404 !important;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* Hero Section */
.hero-section {
  background: #1d7b2b;
  background: linear-gradient(90deg,
      rgba(29, 123, 43, 1) 0%,
      rgba(87, 199, 133, 1) 50%,
      rgba(255, 255, 84, 1) 100%);
  padding: 4rem 0;
}

main {
  padding-bottom: 60px;
}

/* Documentation Cards */
.doc-card {
  border: none;
  border-radius: 8px;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.doc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.doc-card .card-body {
  padding: 1.5rem;
}

.doc-card .card-title {
  font-weight: 600;
  margin-bottom: 1rem;
}

.doc-card a:hover {
  color: var(--primary-color);
}

/* Icon Box */
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-box i {
  font-size: 1.25rem;
}

/* Steps */
.steps .step {
  display: flex;
  align-items: flex-start;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
  font-weight: bold;
}

/* Offcanvas Sidebar */
.offcanvas-start {
  width: 280px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0;
  }

  .hero-section h1 {
    font-size: 2.2rem;
  }
}

/* Sidebar Styles */
.sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 1rem 0;
  border-right: 1px solid #eee;
  background-color: #f8f9fa;
}

.nav-general {
  padding: 0 1rem;
}

.nav-general .nav-link {
  color: #333;
  padding: 0.3rem 1rem;
  font-size: 14px;
  border-radius: 5px;
  margin-bottom: 0.25rem;
  transition: all 0.2s ease;
}

.nav-general .nav-link.sub {
  font-size: 12px;
  padding-left: 12px;
  border-left: 1px solid #ddd;
  margin: 0;
  border-radius: 0;
  margin-left: 15px;
}

.nav-general .nav-link:hover,
.nav-general .nav-link.active {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.nav-general .nav-link.active {
  font-weight: 600;
}

.nav-general .nav-link i {
  width: 20px;
  text-align: center;
}

/* Offcanvas sidebar for mobile */
.offcanvas-start {
  width: 280px;
}

@media (max-width: 991.98px) {
  .sidebar {
    display: none;
  }
}

/* Badge Styles */
.highlights .badge {
  font-weight: 500;
  padding: 0.35em 0.65em;
  margin-right: 0.5rem;
  display: inline-block;
}

/* Card Button Styles */
.doc-card .btn-outline-primary {
  border-width: 2px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.doc-card .btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

.search-box .input-group {
  height: 60px;
}

.search-box .form-control-lg {
  height: 100%;
  font-size: 1.25rem;
  padding: 0 1rem;
  border: none;
  outline: none;
}

.search-box .btn,
.search-box .btn-primary,
#doc-search-btn {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  font-size: 1.25rem;
  padding: 0 1.5rem;
  height: 100%;
  border-radius: 0 8px 8px 0;
  transition: all 0.3s ease;
}

#doc-search-btn:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-primary {
  color: white !important;
}

/* Ordered list */
ol.listing {
  list-style: none;
  counter-reset: item;
  padding: 0;
  position: relative;
}

ol.listing>li {
  counter-increment: item;
  padding-bottom: 20px;
  display: flex;
  gap: 16px;
  position: relative;
  align-items: baseline;
}

ol.listing>li::after {
  content: "";
  display: block;
  position: absolute;
  left: 20px;
  top: 10px;
  width: 1px;
  height: 100%;
  background-color: #ccc;
  z-index: -1;
}

ol.listing>li:last-child::after {
  display: none;
}

ol.listing>li:before {
  margin-right: 10px;
  content: counter(item);
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 100%;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  display: inline-block;
  flex-shrink: 0;
}

h4 {
  margin-bottom: 30px;
}

.badge {
  font-size: 12px !important;
  font-weight: 600;
}

section[id] {
  padding-top: 100px;
}

@media (max-width: 991.98px) {
  section[id] {
    padding-top: 20px;
  }
}