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

/* Page and body */
html, body {
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f6f7f9;
  color: #222;
}

body {
  display: flex;
  height: 100vh;
}

/* Sidebar */
#sidebar {
  width: 280px;
  background-color: #ffffff;
  border-right: 1px solid #e6e8eb;
  padding: 12px;
  display: flex;
  flex-direction: column;
}

#sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

/* Search input */
#search-input {
  width: 100%;
  padding: 7px 10px 7px 32px;
  margin-bottom: 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: #fff;
  color: #222;
  font-size: 16px;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23777' viewBox='0 0 24 24'%3E%3Cpath d='M10 2a8 8 0 105.293 14.293l4.707 4.707 1.414-1.414-4.707-4.707A8 8 0 0010 2zm0 2a6 6 0 110 12 6 6 0 010-12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 10px center;
}

#search-input::placeholder {
  color: #888;
}

#search-input:focus {
  background-image: none;
  padding: 8px 10px;
}

/* Category list */
#category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-y: auto;
  flex: 1;
}

#category-list li {
  padding: 10px 12px;
  margin-bottom: 4px;
  border-radius: 4px;
  cursor: pointer;
  color: #444;
  transition: background-color 0.15s ease, color 0.15s ease;
}

#category-list li.active {
  background-color: #111;
  color: #fff;
}

#category-list li:hover {
  background-color: #333;
  color: #fff;
}

/* Content area */
#content {
  flex: 1;
  padding: 40px 44px;
  overflow-y: auto;
  background-color: #ffffff;
}

#content h1 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 32px;
  font-weight: 600;
  color: #111;
}

#content h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 26px;
  font-weight: 600;
  color: #111;
}

#content p {
  max-width: 900px;
  line-height: 1.6;
  font-size: 16px;
  color: #222;
}

#content ul {
  max-width: 900px;
  line-height: 1.6;
  font-size: 16px;
  color: #222;
  padding-left: 1.5em;
  margin: 1em 0;
  list-style-type: disc;
}

#content ul li {
  margin-bottom: 0.5em;
}

/* Table */
table {
  border-collapse: collapse;
  margin-top: 16px;
  width: 100%;
  max-width: 900px;
}

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

th {
  color: #111;
  font-weight: 600;
}

td {
  color: #444;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Manual header logo */
#manual-logo {
  display: flex;
  align-items: center;
  padding: 8px 0;
  margin-left: 5px;
  text-decoration: none;
}

#manual-logo img {
  max-width: 25px;
  border-radius: 6px;
  transition: transform 0.2s ease;
}

#manual-logo img:hover {
  transform: scale(1.1);
}

/* Home icon tooltip */
#manual-home svg {
  fill: none;
  stroke: #111;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(1px);
}

#manual-home {
  position: relative;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

#manual-home:hover {
  opacity: 1;
}

#manual-home::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  left: 110%;
  transform: translateY(-50%);
  background: #fff;
  color: #222;
  font-family: inherit;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 2px;
  white-space: nowrap;
  border: 1px solid #ccc; 
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

#manual-home:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(4px);
}