html {
  scroll-behavior: smooth;
}

/* Global Styles */
body {
  font-family: "Source Code Pro", monospace;
  background-color: #191724;
  color: white;
  margin: 0;
  padding: 0;
}

h2 {
  text-align: center;
}

/* Container for all content */
.container-fluid {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.sidebar {
  font-family: "Source Code Pro", monospace;
  position: fixed;
  top: 75px; /* Push the sidebar below the navbar */
  left: 0;
  width: 250px;
  background-color: #1e1c2e;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  color: #ecf0f1;
  z-index: 100;
  transition: transform 0.3s ease-in-out; /* Smooth transition */
  height: 100%;
}

.sidebar.active {
  transform: translateX(250px); /* Sidebar visible when active */
  left: 0; /* Override initial left offset */
}

/* Sidebar content styling */
.sidebar h3 {
  font-size: 1.6em;
  margin-bottom: 20px;
}

.sidebar ul {
  list-style-type: none;
  padding: 0;
}

.sidebar ul li {
  margin-bottom: 15px;
  position: relative;
}

/* Regular items */
.sidebar ul li.regular {
  margin-bottom: 25px; /* Extra gap between regular and subsections */
}

/* Styling for links */
.sidebar ul li a {
  color: #ecf0f1;
  text-decoration: none;
  font-size: 1.1em;
  transition: all 0.3s ease;
  display: block;
  padding: 5px 0;
}

.sidebar ul li a:hover {
  color: #f39c12;
  padding-left: 10px;
}

.sidebar ul li a:active {
  color: #e74c3c;
}

/* Subsection Styling */
.sidebar li ul {
  display: none; /* Initially hide subsections */
  padding-left: 20px;
  list-style-type: none;
  margin-top: 5px;
}

.sidebar li.active > ul {
  display: block; /* Display nested items when parent is active */
}

.sidebar li > a::after {
  content: " ▼";
  font-size: 12px;
  padding-left: 5px;
}

.sidebar li.active > a::after {
  content: " ▲";
}

/* Main content area */
.main-content {
  margin-left: 260px;
  padding: 20px;
  width: calc(100% - 260px);
}

/* Main Content Styles */
.main-content {
  font-family: "Source Code Pro", monospace;
  margin-left: 280px; /* Ensure space for sidebar */
  padding: 20px;
  flex-grow: 1;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

header h1 {
  font-size: 2.5em;
  color: #fff;
}

/* Graph Section Styles */
.graph-section {
  text-align: center;
  margin-bottom: 40px;
}

.responsive-graph {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Documentation Section Styles */
.documentation-section {
  margin-bottom: 40px;
}

.documentation-section h2 {
  font-size: 1.8em;
  margin-bottom: 10px;
}

.documentation-section p {
  font-size: 1em;
  line-height: 1.6;
}

/* Table Styles */
table.table {
  font-family: "Source Code Pro", monospace;
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

table.table th,
table.table td {
  padding: 10px;
  text-align: left;
  border: 1px solid #ccc;
}

table.table th {
  background-color: #282a36;
  color: white;
}

table.table td {
  background-color: #1e1c2e;
}

.table-dark.table-hover tbody tr:hover {
  background-color: #282a36 !important; /* Custom hover color */
  color: white; /* Optional: Set text color for readability */
}

/* Responsive Design */
/* Sidebar layout adjustments for different screen sizes */
@media (max-width: 1024px) {
  .sidebar {
    width: 200px;
    padding: 15px;
  }

  .sidebar ul li a {
    font-size: 1.1em;
  }

  .overview-heading {
    font-size: 1.3em;
    padding: 8px;
  }

  .overview-heading::before {
    box-shadow: 0 0 0 2px #191825;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    position: fixed;
    top: 0;
    left: -100%;
    padding: 10px;
    transform: translateX(-100%); /* Hide sidebar by default on small screens */
    height: 100vh;
    z-index: 1000;
  }

  .sidebar.active {
    transform: translateX(0); /* Show sidebar when active */
  }

  .sidebar ul {
    padding-left: 10px;
  }

  .sidebar ul li {
    margin: 10px 0;
  }

  .overview-heading {
    font-size: 1.2em;
    padding: 10px;
  }

  .overview-heading::before {
    box-shadow: 0 0 0 1px #191825;
  }

  /* Adjust the main content's margin for small screens */
  .main-content {
    margin-left: 0; /* Remove the margin for main content */
  }
}

@media (max-width: 480px) {
  .overview-heading {
    font-size: 5vw; /* Scale text further down for very small screens */
    padding: 20px 25px; /* Adjust padding for even smaller screens */
  }

  .overview-heading::before {
    box-shadow: 0 0 0 1px #171620; /* Thinner border for very small screens */
  }
}

/* Button to toggle the sidebar */
.toggle-btn {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  background-color: #1e1c2e;
  color: white;
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  z-index: 1100;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .toggle-btn {
    display: block;
  }
}

/* Fancy Inverted Border */
.overview-heading {
  position: relative;
  background-color: #191825; /* Background color */
  color: white;
  font-size: 2vw; /* Use viewport width for responsive text size */
  padding: 10px 15px;
  border-radius: 8px;
  text-align: center; /* Center the text */
}

.overview-heading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #191825; /* Same as background */
  z-index: -1; /* Put behind the text */
  border-radius: 8px;
  box-shadow: 0 0 0 3px #171620; /* Inverted border effect */
  transition: box-shadow 0.3s ease-in-out; /* Smooth transition on resize */
}

/* Responsive Design: Adjust the border size and text size */
@media (max-width: 768px) {
  .overview-heading {
    font-size: 4vw; /* Scale text for smaller screens */
    padding: 15px 20px; /* Adjust padding for smaller screens */
  }

  .overview-heading::before {
    box-shadow: 0 0 0 2px #171620; /* Slightly thinner border for smaller screens */
  }
}

/* Adjust Body and Sidebar Layout for Responsive Views */
@media (max-width: 768px) {
  body {
    margin: 0;
    padding: 0;
  }

  .container-fluid {
    margin: 0;
    padding: 0;
  }

  .sidebar {
    width: 100%;
    position: fixed;
    top: 0;
    left: -100%;
    padding: 10px;
    transform: translateX(-100%);
    height: 100vh;
    z-index: 1000;
  }

  .sidebar.active {
    transform: translateX(0); /* Show sidebar when active */
  }

  /* Adjust the main content's margin for small screens */
  .main-content {
    margin-left: 0; /* Remove the margin for main content */
  }
}

/* Navbar Styles */
.navbar {
  background-color: #15141d; /* Dark blue (or any color you prefer) */
  padding: 10px 20px;
  font-family: "Source Code Pro", monospace;
  position: fixed; /* Keeps the navbar fixed at the top */
  top: 0; /* Position at the top of the page */
  left: 0; /* Ensure it spans across the full width of the screen */
  width: 100%; /* Full width of the viewport */
  z-index: 1000; /* Ensures navbar stays above other content */
}

.main-content {
  padding-top: 90px; /* Ensure it has space for the fixed navbar */
  margin-top: 0; /* Remove any additional top margin */
}

.navbar a {
  color: #ecf0f1;
  text-decoration: none;
  padding: 10px 15px;
  margin-right: 20px;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #f39c12;
}

.navbar .navbar-brand {
  color: #ecf0f1;
  font-size: 1.8em;
  font-weight: bold;
  text-transform: uppercase;
}

.navbar .navbar-nav {
  display: flex;
  justify-content: flex-start;
}

.navbar .navbar-nav .nav-item {
  margin-right: 10px;
}

/* Added navbar styling */
.navbar-toggle {
  background-color: transparent;
  border: none;
  color: white;
  font-size: 1.5em;
}

/* Footer Styling */
footer {
  background-color: #1e1c2e;
  padding: 20px;
  text-align: center;
  font-size: 0.9em;
  color: #ecf0f1;
  border-top: 2px solid #282a36;
  margin-top: 50px;
  bottom: 0;
  width: 100%;
}
/* Footer background styling */
.footer-background {
  background-color: #15141d; /* Footer background color */
  padding: 50px 0; /* Top and bottom padding */
  color: #fff;
  text-align: center;
  width: 100%; /* Ensure footer is 100% wide */
  margin: 0; /* Remove any margin */
  box-sizing: border-box; /* Ensure padding is included in width calculation */
}

/* Site name styling */
.footer-background .sitename {
  font-size: 24px;
  font-weight: bold;
}

/* Social links styling */
.social-links a {
  margin: 0 10px;
  font-size: 24px;
  color: #fff;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #1e90ff; /* Hover color */
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {
  .footer-background {
    padding: 30px 0; /* Reduce padding */
  }

  .footer-background .sitename {
    font-size: 20px; /* Smaller font size for sitename */
  }

  .social-links a {
    font-size: 20px; /* Adjust icon size */
    margin: 10px 5px; /* Reduce margin */
  }
}

@media (max-width: 480px) {
  .footer-background {
    padding: 20px 0; /* Further reduce padding */
  }

  .footer-background .sitename {
    font-size: 18px; /* Even smaller font size */
  }

  .social-links {
    display: block; /* Stack icons vertically */
    margin: 10px auto; /* Center and add spacing */
  }
}

.responsive-hr {
  border: 1px solid #ccc; /* Light gray border */
  width: 100%; /* Full width */
  max-width: 100%; /* Ensure it doesn’t go beyond the container */
  margin: 20px 0; /* Add some spacing above and below */
}

/* Subsection Styling (Hidden by Default) */
.subsection {
  display: none; /* Hide subsections by default */
  margin-left: 20px;
}

.subsection a {
  font-size: 1em;
}

.toggle-button {
  cursor: pointer;
  color: #3498db;
  font-weight: bold;
}

.sidebar ul li .subsection a:hover {
  color: #f39c12;
}

.custom-bg {
  background-color: #1d262f;
  color: white; /* Optional: changes text color to white for better contrast */
}

.spacing-container {
  margin-top: 30px; /* Adds spacing above the div */
  margin-bottom: 30px; /* Adds spacing below the div */
  padding: 20px; /* Optional: adds padding inside the div for more spacing */
}

h5 {
  color: #30738e;
}

.table-wrapper {
  max-width: 50%; /* Adjusts the table width as desired */
  margin: 0 auto; /* Centers the table */
}

.table th,
.table td {
  padding: 8px; /* Reduce padding to make the table more compact */
  font-size: 0.9rem; /* Optional: Decrease font size for a more compact look */
}

.table {
  width: auto; /* Prevents table from taking the full width */
}

.info-text {
  background-color: #4e748b; /* Light background for readability */
  border-left: 4px solid #ff6347; /* Accent border on the left */
  padding: 6px;
  font-size: 19px;
  margin: 10px 0;
  color: #333;
}
.compact-list {
  max-width: 1000px; /* Set a maximum width to control the size */
  margin: 0 auto; /* Center the list */
}

.compact-list .list-group-item {
  padding: 5px 10px;
  font-size: 0.85em;
  margin: 3px 0;
}
