body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    padding: 1rem 1rem 2rem 1rem;
}

code {
    background-color: #f0f0f0;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
}

pre {
    background-color: #f8f8f8;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e0e0e0;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
}

h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: bold;
    font-size: 1.75rem;
    color: #2563eb;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: bold;
    font-size: 1.5rem;
    color: #374151;
}

h4 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 1.25rem;
    color: #4b5563;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.warning {
    background-color: #fff4e5;
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    margin: 1rem 0;
}

.tag {
    display: inline-block;
    background-color: #e2e8f0;
    color: #4a5568;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    margin-right: 0.75rem;
    margin-bottom: 0.75rem;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1.5rem;
}

th, td {
    border: 1px solid #e2e8f0;
    padding: 0.75rem;
    text-align: left;
}

th {
    background-color: #f7fafc;
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: #f7fafc;
}

.tags {
    justify-content: center;
    display: flex;
}

.font-medium {
    font-weight: 800;
}
.content-section[data-lang] {
    display: none;
}

.content-section[data-lang].active {
    display: block;
}

.language-toggle {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 1000;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 23px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 17px;
    width: 17px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(17px);
}

.lang-label {
    font-weight: bold;
}

.table-of-contents {
    background-color: #f9fafb;
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.table-of-contents ul {
    list-style-type: none;
    margin-left: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

a {
    color: #0177a9;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.method-signature {
    font-family: 'Consolas', 'Courier New', monospace;
    background-color: #f5f5f5;
    padding: 0.5rem;
    border-radius: 3px;
    margin-bottom: 0.5rem;
}

.parameter {
    margin-left: 1.5rem;
    margin-bottom: 0.25rem;
}

.parameter-name {
    font-weight: bold;
}

.example-block {
    background-color: #f0f4f8;
    padding: 1rem;
    border-left: 4px solid #2563eb;
    margin: 1rem 0;
}
:root {
  --background-color: #ffffff;
  --text-color: #000000;
  --code-background-color: #f5f5f5;
  --code-text-color: #000000;
  --method-signature-background-color: #f5f5f5;
  --sidebar-background-color: #ffffff;
}

[data-theme="dark"] {
  --background-color: #121212;
  --text-color: #ffffff;
  --code-background-color: #333333;
  --code-text-color: #ffffff;
  --method-signature-background-color: #333333;
  --sidebar-background-color: #1e1e1e;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  transition: background-color 0.2s, color 0.2s;
}

pre, code {
  background-color: var(--code-background-color) !important;
  color: var(--code-text-color) !important;
  transition: background-color 0.2s, color 0.2s;
}

pre {
  padding: 10px;
  border-radius: 5px;
  overflow-x: auto;
}

code {
  padding: 2px 4px;
  border-radius: 3px;
}

.method-signature {
  background-color: var(--method-signature-background-color);
  color: var(--code-text-color);
  transition: background-color 0.2s, color 0.2s;
}

.bg-white {
  background-color: var(--sidebar-background-color);
  transition: background-color 0.2s;
}

.theme-toggle {
    position: absolute;
    top: 15px;
    left: 20px;
    z-index: 1000;
}

/* Override highlight.js styles for dark theme */
[data-theme="dark"] .hljs {
  background: var(--code-background-color) !important;
  color: var(--code-text-color) !important;
}

[data-theme="dark"] .hljs-comment,
[data-theme="dark"] .hljs-quote {
  color: #7c7c7c !important;
}

[data-theme="dark"] .hljs-keyword,
[data-theme="dark"] .hljs-selector-tag,
[data-theme="dark"] .hljs-subst {
  color: #f08d49 !important;
}

[data-theme="dark"] .hljs-number,
[data-theme="dark"] .hljs-literal,
[data-theme="dark"] .hljs-variable,
[data-theme="dark"] .hljs-template-variable,
[data-theme="dark"] .hljs-tag .hljs-attr {
  color: #d8a657 !important;
}

[data-theme="dark"] .hljs-string,
[data-theme="dark"] .hljs-doctag {
  color: #7cb8bb !important;
}

[data-theme="dark"] .hljs-title,
[data-theme="dark"] .hljs-section,
[data-theme="dark"] .hljs-selector-id {
  color: #4271ae !important;
}

[data-theme="dark"] .hljs-subst {
  color: #4271ae !important;
}

[data-theme="dark"] .hljs-type,
[data-theme="dark"] .hljs-class .hljs-title {
  color: #89bdff !important;
}

[data-theme="dark"] .hljs-tag,
[data-theme="dark"] .hljs-name,
[data-theme="dark"] .hljs-attribute {
  color: #81a2be !important;
}

[data-theme="dark"] .hljs-regexp,
[data-theme="dark"] .hljs-link {
  color: #b5bd68 !important;
}

[data-theme="dark"] .hljs-symbol,
[data-theme="dark"] .hljs-bullet {
  color: #8abeb7 !important;
}

[data-theme="dark"] .hljs-built_in,
[data-theme="dark"] .hljs-builtin-name {
  color: #b294bb !important;
}

[data-theme="dark"] .hljs-meta {
  color: #deb887 !important;
}

[data-theme="dark"] .hljs-deletion {
  background: #ffdddd !important;
}

[data-theme="dark"] .hljs-addition {
  background: #ddffdd !important;
}

[data-theme="dark"] .hljs-emphasis {
  font-style: italic !important;
}

[data-theme="dark"] .hljs-strong {
  font-weight: bold !important;
}










