@import 'https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap';
@import 'https://fonts.googleapis.com/css2?family=Fira+Code';

:root {
  --based-bg-color: #0d0d0d;
  --based-sidebar-color: #0c0c0c;
  --based-text-color: #e5e7eb;
  --based-link-color: #e5e7eb;
  --based-accent-color: #3b82f6;
  --sidebar-width: 30rem;
}
html,
body {
  box-sizing: border-box;
  min-height: 100%;
  min-width: 100%;
  font-size: 15px;
  background-color: var(--based-bg-color);
  color: var(--based-text-color);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  margin: 0;
}
a {
  text-decoration: none;
  color: var(--based-link-color);
}
button {
  cursor: pointer;
}
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
pre {
  margin: 0;
  padding: 0;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

.mermaid text {
  font-size: 1.2rem !important;
}
.mermaid svg g text {
  font-size: 1.2rem !important;
}

.markdown-section {
  color: var(--based-text-color);
}
.markdown-section h1 {
  border-bottom: 1px solid rgba(229, 231, 235, 0.2);
  padding-bottom: 0.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.markdown-section h2,
.markdown-section h3 {
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}
.markdown-section p,
.markdown-section li {
  margin-bottom: 1rem;
}

.sidebar {
  background-color: var(--based-sidebar-color);
  color: var(--based-text-color);
  border-right: 1px solid rgba(229, 231, 235, 0.1);
  font-family: 'Inter', sans-serif;
}
.sidebar > h1 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
}
.sidebar a.app-name {
  color: var(--based-text-color);
}
.sidebar a {
  color: var(--based-text-color);
  opacity: 0.7;
}
.sidebar a:hover,
.sidebar li.active > a,
.sidebar li.active > a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--based-text-color);
  opacity: 1;
}

/* Search box */
.sidebar .search {
  padding: 0 1rem;
  margin-bottom: 1rem;
}
.sidebar .search input {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 235, 0.2);
  color: var(--based-text-color);
  padding: 0.5rem;
  border-radius: 0.25rem;
}
.sidebar .search .clear-button {
  color: var(--based-text-color);
  opacity: 0.7;
}

code,
pre {
  font-family: 'Fira Code', monospace;
}

code {
  color: #eb6ca1;
  background-color: #1a1a1a;
  padding: 0.2rem 0.4rem;
  border-radius: 0.2rem;
}

pre {
  background-color: #1a1a1a !important;
  color: var(--based-text-color) !important;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(229, 231, 235, 0.1);
  overflow-x: auto;
}
/* Syntax highlighting tokens from your provided CSS */
.token.cdata,
.token.comment,
.token.doctype,
.token.prolog {
  color: #5c6873;
}
.token.punctuation {
  color: #9e9e9e;
}
.namespace {
  opacity: 0.7;
}
.token.boolean,
.token.constant,
.token.deleted,
.token.number,
.token.property,
.token.symbol,
.token.tag {
  color: #eb6ca1;
}
.token.attr-name,
.token.builtin,
.token.char,
.token.inserted,
.token.selector,
.token.string {
  color: #63b4e5;
}
.language-css .token.string,
.style .token.string,
.token.entity,
.token.operator,
.token.url {
  color: #948e9b;
}
.token.atrule,
.token.attr-value,
.token.keyword {
  color: #96b4f6;
}
.token.function {
  color: #63d7e5;
}
.token.important,
.token.regex,
.token.variable {
  color: #ff9800;
}
.token.bold,
.token.important {
  font-weight: 700;
}
.token.italic {
  font-style: italic;
}
