/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #feffff; 
  display: flex;
}

/* Sidebar Styles */
.sidebar {
  width: 300px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #f4f4f7;
  border-right: 1px solid #e9ecef;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  transition: transform 0.3s ease;
  z-index: 1000;
}

.sidebar h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #212529;
}

.sidebar ol, .sidebar ul {
  list-style-type: none;
}

.sidebar ol > li {
  margin-bottom: 0.75rem;
}

.sidebar ul {
  padding-left: 1rem;
  margin-top: 0.5rem;
  border-left: 2px solid #e9ecef;
}

.sidebar ul li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.sidebar a {
  text-decoration: none;
  color: #495057;
  transition: color 0.2s;
}

.sidebar a:hover {
  color: #0056b3;
}

/* Main Content Styles */
.content {
  margin-left: 300px; /* Offset by sidebar width */
  padding: 3rem 4rem;
  max-width: 1000px;
  width: 100%;
  background-color: #feffff;
}

h1, h2, h3 {
  color: #212529;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: inherit;
  text-decoration: none;
}

h1 a, h2 a, h3 a {
  color: inherit; 
  text-decoration: none;
}

h1 a:visited, h2 a:visited, h3 a:visited {
    color: inherit;
    text-decoration: none;
}

h1:first-child {
  margin-top: 0;
}

p {
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1rem 0;
}

code {
  background-color: #f1f3f5;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: Consolas, monospace;
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2.5rem 0;
  font-size: 0.95rem;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}

th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #495057;
  border-top: 2px solid #dee2e6;
}

tbody tr:hover {
  background-color: #f1f3f5;
}

/* Mobile Toggle Button */
.menu-toggle {
  display: none;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 1100;
  background: #212529;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 850px) {
  .menu-toggle {
    display: block;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .content {
    margin-left: 0;
    padding: 4rem 2rem 2rem 2rem; /* Extra top padding for mobile button */
  }
}
