/* HARM Bot Docs - Main CSS */
:root {
  --harm-red: #e53935;
  --sidebar-bg: #18181b;
  --sidebar-text: #fff;
  --sidebar-active: #fff;
  --sidebar-link: #bdbdbd;
  --main-bg: #f8fafc;
  --main-text: #18181b;
  --header-bg: #fff;
  --header-text: #18181b;
  --quick-link-bg: #fff;
  --quick-link-border: #e53935;
  --quick-link-hover: #e53935;
  --quick-link-text: #e53935;
}
[data-theme="dark"] {
  --sidebar-bg: #18181b;
  --sidebar-text: #fff;
  --sidebar-active: #e53935;
  --sidebar-link: #bdbdbd;
  --main-bg: #18181b;
  --main-text: #fff;
  --header-bg: #23272f;
  --header-text: #fff;
  --quick-link-bg: #23272f;
  --quick-link-border: #e53935;
  --quick-link-hover: #e53935;
  --quick-link-text: #fff;
}
body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: var(--main-bg);
  color: var(--main-text);
  min-height: 100vh;
}
#docs-app {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 250px;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  padding: 0;
  border-right: 1px solid #222;
  min-height: 100vh;
  position: sticky;
  top: 0;
}
.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px 16px 20px;
  border-bottom: 1px solid #23272f;
}
.sidebar-logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}
.sidebar-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
}
.sidebar-link {
  color: var(--sidebar-link);
  text-decoration: none;
  padding: 12px 28px;
  font-size: 1.05rem;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.sidebar-link.active, .sidebar-link:hover {
  color: var(--sidebar-active);
  background: rgba(229,57,53,0.08);
  border-left: 3px solid var(--harm-red);
}
.docs-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.docs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--header-bg);
  color: var(--header-text);
  padding: 18px 32px;
  border-bottom: 1px solid #ececec;
  position: sticky;
  top: 0;
  z-index: 10;
}
.docs-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}
.header-title {
  font-size: 1.2rem;
  font-weight: 600;
}
.docs-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
#docs-search {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  font-size: 1rem;
  background: var(--quick-link-bg);
  color: var(--main-text);
  outline: none;
  transition: border 0.15s;
}
#docs-search:focus {
  border: 1.5px solid var(--harm-red);
}
#theme-toggle {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--harm-red);
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.15s;
}
#theme-toggle:hover {
  background: rgba(229,57,53,0.08);
}
.docs-content {
  max-width: 820px;
  margin: 40px auto 0 auto;
  padding: 0 32px 48px 32px;
}
.docs-content h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--harm-red);
}
.docs-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 10px;
}
.docs-content ul {
  margin: 0 0 18px 20px;
  padding: 0;
}
.docs-content li {
  margin-bottom: 7px;
  font-size: 1.05rem;
}
.quick-links {
  display: flex;
  gap: 16px;
  margin: 24px 0 18px 0;
}
.quick-link {
  display: inline-block;
  background: var(--quick-link-bg);
  color: var(--quick-link-text);
  border: 2px solid var(--quick-link-border);
  border-radius: 8px;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border 0.15s;
}
.quick-link:hover {
  background: var(--quick-link-hover);
  color: #fff;
  border: 2px solid var(--harm-red);
}
@media (max-width: 900px) {
  .sidebar {
    width: 60px;
    min-width: 60px;
    padding: 0;
  }
  .sidebar-header {
    flex-direction: column;
    gap: 0;
    padding: 18px 0 10px 0;
  }
  .sidebar-title {
    display: none;
  }
  .sidebar-link {
    font-size: 0.95rem;
    padding: 10px 10px;
    text-align: center;
  }
  .docs-content {
    padding: 0 10px 32px 10px;
  }
}
@media (max-width: 600px) {
  #docs-app {
    flex-direction: column;
  }
  .sidebar {
    width: 100vw;
    min-width: 0;
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid #222;
    position: static;
    min-height: 0;
    height: 54px;
    z-index: 20;
  }
  .sidebar-header {
    display: none;
  }
  .sidebar-nav {
    flex-direction: row;
    width: 100vw;
    margin: 0;
    justify-content: space-around;
    align-items: center;
  }
  .sidebar-link {
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 0 8px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .sidebar-link.active, .sidebar-link:hover {
    border-bottom: 3px solid var(--harm-red);
    border-left: none;
    background: none;
  }
  .docs-header {
    padding: 12px 10px;
  }
  .docs-content {
    margin-top: 24px;
    padding: 0 4px 24px 4px;
  }
} 