/* Reset + Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  display: flex;
  min-height: 100vh;
  color: #e3e5e8;
  background: #18191c;
  overflow: hidden; /* Prevents page scrolling when sidebar scrolls */
}

/* Sidebar */
.sidebar {
  width: 240px;
  background: #242529;
  padding: 1.5rem;
  border-right: 1px solid #3a3d42;
  overflow-y: auto;
  height: 100vh; /* Full height of the viewport */
  position: fixed;
  top: 0;
  left: 0;
}

.sidebar-logo h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.sidebar-nav a {
  display: block;
  font-size: 1rem;
  padding: 0.05rem;
  color: #b9bbbe;
  text-decoration: none;
  margin: 0.2rem 0;
}

/* Highlight the target element */
/* Highlight the target element with a border */
.highlight {
  border: 3px solid rgba(255, 136, 0, 0.8);
}


.sidebar-nav .nav-section-title {
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 1rem;
  color: #b4b5b7;
}

.sidebar-nav a:hover {
  background: #141414;
  color: #ffffff;
  border-radius: 4px;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 2rem 3rem;
  margin-left: 240px; /* Sidebar width */
  height: 100vh; /* Full height of the viewport */
  overflow-y: auto; /* Allows the content to scroll separately */
  padding-top: 2rem;
  width: 100%; /* Ensure it stretches across the screen */
}

.docs-header {
  margin-bottom: 1.5rem;
}

/* Sections */
.doc-section + .doc-section {
  margin-top: 2rem;
}

.doc-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.doc-section p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #c3c5c8;
}

.main-content a {
  color: rgb(164, 164, 164);
  text-decoration:underline;
}

/* Boxes */
.info-box {
  background: #232323;
  padding: 1rem;
  border-left: 4px solid #ffffff;
  margin-bottom: 0.1rem;
  color: #e3e5e8;
}

.depreciation-box {
  background: #161616;
  padding: 1rem;
  border-left: 4px solid #8f8f8f;
  margin-bottom: 0.1rem;
  color: #8f8f8f;
}

.warning-box {
  background: #727000;
  padding: 1rem;
  border-left: 4px solid #ffa200;
  margin-bottom: 0.1rem;
  color: #e3e5e8;
}

/* Divider */
.divider {
  border: 0;
  height: 1px;
  background: #4b4b4b;
  margin: 3.5rem 0; /* Adds space around the divider */
}

.dividerblank {
  border: 0;
  height: 1px;
  background: #4b4b4b;
  margin: 3.5rem 0; /* Adds space around the divider */
}

.dividersmall {
  border: 0;
  height: 1px;
  background: #4b4b4b;
  margin: 1.5rem 0; /* Adds space around the divider */
}

.dividersmallblank {
  border: 0;
  height: 1px;
  background: #4b4b4b00;
  margin: 1.5rem 0;
}

.success-box {
  background: #1b5100;
  padding: 1rem;
  border-left: 4px solid #8fff90;
  margin-bottom: 0.1rem;
  color: #e3e5e8;
}

.error-box {
  background: #570000;
  padding: 1rem;
  border-left: 4px solid #ff5d5d;
  margin-bottom: 0.1rem;
  color: #e3e5e8;
}

/* Tables */
.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
}

.doc-table th,
.doc-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border: 1px solid #3a3d42;
}

.doc-table th {
  background: #2f3338;
  font-weight: 600;
}

.doc-table tbody tr:nth-child(even) {
  background: #212427;
}
.doc-table tbody tr:nth-child(odd) {
  background: #212427;
}

/* Code Blocks */
.code-block {
  display: block;
  padding: 1rem;
  background: #2f3338;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #ffffff;
  margin-top: 0.8rem;
  white-space: pre-wrap;
}

/* Copy Button */
.copy-btn {
  background-color: #2f3338;
  color: #c7c7c7;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 1rem;
}

.copy-btn:hover {
  background-color: #5a6b9d;
}

/* Headings */
h2 {
  margin-top: 1.5rem;
  font-size: 1.5rem;
  color: #ffffff;
}

/* Footer */
footer {
  background-color: #2f3136;
  color: #fff;
  text-align: center;
  padding: 1rem;
  position: relative;
  bottom: 0;
  width: 100%;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #2f3338;
}

::-webkit-scrollbar-thumb {
  background: #464646;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }

  .main-content {
    margin-left: 0;
  }
}
