html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #141414;
  color: #bbbbbb;
  font-family: monospace;
  overflow: hidden; /* Prevent global scroll */
}

.container {
  display: flex;
  height: 100vh;
  max-width: 1200px;
  margin: auto;
  overflow: hidden;
}

/* Sidebar with its own scroll */
.sidebar {
  width: 300px;
  background-color: #1d1d1d;
  padding: 20px;
  border-right: 1px solid #333;
  overflow-y: auto;
}

.sidebar h2 {
  font-size: 16px;
  margin-bottom: 10px;
}

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

.sidebar li {
  margin-bottom: 8px;
}

.sidebar a {
  color: #b9b6b6;
  text-decoration: none;
}

.sidebar a:hover {
  text-decoration: underline;
}

.sidebar input[type="text"] {
  width: 100%;
  padding: 8px;
  margin-bottom: 12px;
  background-color: #222;
  border: 1px solid #333;
  color: #eee;
  font-family: monospace;
}

/* Main content wrapper */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Sticky Title */
.main-content h1 {
  text-align: center;
  margin: 0;
  padding: 20px;
  border-bottom: 1px solid #444;
  position: sticky;
  top: 0;
  background-color: #111;
  z-index: 10;
}

/* Sticky Tabs */
.tab-bar {
  display: flex;
  border-bottom: 2px solid #444;
  position: sticky;
  top: 64px; /* Height of h1 */
  background-color: #111;
  z-index: 9;
}

.tab {
  padding: 10px 20px;
  margin-right: 5px;
  background: #222;
  color: #eee;
  border: 1px solid #333;
  border-bottom: none;
  cursor: pointer;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.tab.active {
  background: #111;
  font-weight: bold;
}

/* Scrollable review content */
.main-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.review-tab {
  display: none;
}

h2 {
  border-bottom: 1px solid #444;
  padding-bottom: 5px;
  margin-top: 30px;
}

h3 {
  margin-top: 20px;
}

table {
  width: 100%;
  max-width: 400px;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  border: 1px solid #555;
  padding: 5px 10px;
  text-align: left;
}

@media (max-width: 768px) {
  html, body {
    overflow: auto;
  }
  
  .container {
    flex-direction: column;
    height: auto;
  }

  .sidebar {
    width: 100%;
    height: 200px;
    overflow-y: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid #333;
  }

  .main-content {
    height: auto;
  }

  .main-content h1 {
    font-size: 18px;
    padding: 15px;
  }

  .tab-bar {
    top: auto;
    position: relative;
    flex-wrap: wrap;
  }

  .tab {
    flex: 1 1 auto;
    margin: 2px;
    text-align: center;
  }

  .main-scroll {
    padding: 15px;
  }

  table {
    font-size: 14px;
    word-break: break-word;
  }

  h2, h3 {
    font-size: 16px;
  }
}
