
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #F3F8F7;
  color: #254A4F;
}

.app-header {
  background: #254A4F;
  color: #FFFFFF;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 48px;
}

.brand-text h1 {
  margin: 0;
  font-size: 20px;
}

.brand-text p {
  margin: 2px 0 0;
  font-size: 13px;
}

.pdf-button {
  background: #F3F8F7;
  color: #254A4F;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  border: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}

.main-layout {
  display: flex;
  min-height: calc(100vh - 120px);
}

.sidebar {
  width: 260px;
  padding: 20px;
  background: #FFFFFF;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.sidebar-title {
  font-weight: bold;
  margin-bottom: 10px;
}

.chapter-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.chapter-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 4px;
  line-height: 1.4;
}

.chapter-item span {
  display: inline-block;
}

.chapter-item:hover {
  background: #E0ECEB;
}

.chapter-item.active {
  background: #254A4F;
  color: #FFFFFF;
}

.badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #F3F8F7;
  color: #254A4F;
}

.content {
  flex: 1;
  padding: 24px;
  box-sizing: border-box;
  overflow-y: auto;
}

.content-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  max-width: 900px;
}

.pill {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #254A4F;
  margin-bottom: 8px;
}

.content-card h1 {
  margin-top: 0;
  margin-bottom: 4px;
}

.content-subtitle {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 13px;
  color: rgba(37,74,79,0.8);
}

.section-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.section-pill {
  padding: 6px 10px;
  background: #E7EFED;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
}

.section-pill.active {
  background: #254A4F;
  color: #FFFFFF;
}

.section-heading {
  margin-top: 16px;
}

.procedure-steps {
  padding-left: 20px;
}

.callout {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
}

.callout.info {
  background: #E7EFED;
  border-left: 4px solid #254A4F;
}

.callout.warning {
  background: #FFE5E0;
  border-left: 4px solid #C0392B;
}

.meta {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(37,74,79,0.8);
}

.pdf-link {
  color: #254A4F;
  text-decoration: underline;
}

.search-result {
  padding: 10px 0;
}

.search-result-title {
  font-weight: bold;
  cursor: pointer;
}

.search-bar {
  position: fixed;
  bottom: 10px;
  left: 260px;
  right: 20px;
  display: flex;
  gap: 8px;
}

#searchInput {
  flex: 1;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.15);
  font-size: 14px;
}

#voiceButton {
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.15);
  background: #FFFFFF;
  cursor: pointer;
  font-size: 18px;
}

#voiceButton.listening {
  background: #254A4F;
  color: #FFFFFF;
}

@media (max-width: 800px) {
  .main-layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }
  .search-bar {
    left: 10px;
    right: 10px;
  }
}
