.docs-navbar {
position: fixed;
top: 0;
left: 0;
right: 0;
height: 56px;
background: #252b3d;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
z-index: 1000;
}
.docs-navbar-inner {
display: flex;
align-items: center;
justify-content: space-between;
height: 100%;
padding: 0 20px;
}
.docs-navbar-left {
display: flex;
align-items: center;
gap: 16px;
}
.docs-navbar-toggle {
display: none;
background: none;
border: none;
color: rgba(255, 255, 255, 0.7);
font-size: 20px;
cursor: pointer;
padding: 8px;
border-radius: 6px;
transition: all 0.2s;
}
.docs-navbar-toggle:hover {
background: rgba(255, 255, 255, 0.1);
color: #fff;
}
.docs-navbar-brand {
display: flex;
align-items: center;
gap: 10px;
cursor: pointer;
}
.docs-navbar-brand img {
width: 32px;
height: 32px;
object-fit: contain;
}
.docs-navbar-brand span {
font-size: 16px;
font-weight: 600;
color: #fff;
}
.docs-navbar-right {
display: flex;
align-items: center;
gap: 12px;
}
.docs-navbar-user {
display: flex;
align-items: center;
gap: 10px;
padding: 6px 12px;
border-radius: 8px;
cursor: pointer;
transition: all 0.2s;
}
.docs-navbar-user:hover {
background: rgba(255, 255, 255, 0.1);
}
.docs-navbar-user img {
width: 28px;
height: 28px;
border-radius: 50%;
object-fit: cover;
}
.docs-navbar-user span {
font-size: 13px;
color: rgba(255, 255, 255, 0.8);
}
.docs-navbar-guest {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 14px;
background: none;
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 8px;
color: rgba(255, 255, 255, 0.8);
font-size: 13px;
cursor: pointer;
transition: all 0.2s;
}
.docs-navbar-guest:hover {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.25);
color: #fff;
}
.docs-wrapper {
display: flex;
min-height: 100vh;
padding-top: 56px;
overflow-x: hidden;
width: 100%;
}
.docs-sidebar {
position: fixed;
left: 0;
top: 56px;
width: 260px;
height: calc(100vh - 56px);
height: calc(100dvh - 56px);
background: #252b3d;
border-right: 1px solid rgba(255, 255, 255, 0.08);
overflow-y: auto;
z-index: 500;
transition: transform 0.3s ease;
}
.docs-sidebar.collapsed {
transform: translateX(-100%);
}
.docs-search {
position: sticky;
top: 0;
padding: 12px 16px;
background: #252b3d;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
z-index: 10;
cursor: pointer;
transition: all 0.2s;
}
.docs-search:hover {
background: #2a3142;
}
.docs-search input {
width: 100%;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 6px;
padding: 8px 40px 8px 34px;
color: #fff;
font-size: 13px;
outline: none;
transition: all 0.2s;
cursor: pointer;
}
.docs-search i {
position: absolute;
left: 28px;
top: 50%;
transform: translateY(-50%);
color: rgba(255, 255, 255, 0.35);
font-size: 12px;
pointer-events: none;
}
.docs-search-kbd {
position: absolute;
right: 28px;
top: 50%;
transform: translateY(-50%);
font-size: 10px;
font-weight: 600;
padding: 3px 6px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 4px;
color: rgba(255, 255, 255, 0.4);
font-family: monospace;
letter-spacing: 0.5px;
pointer-events: none;
}
.docs-search input:focus {
border-color: rgba(74, 158, 255, 0.4);
background: rgba(74, 158, 255, 0.06);
}
.docs-search input::placeholder {
color: rgba(255, 255, 255, 0.35);
}
.docs-nav {
padding: 24px 0;
}
.docs-nav-section {
margin-bottom: 32px;
}
.docs-nav-title {
padding: 0 20px;
margin-bottom: 10px;
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.8px;
color: rgba(255, 255, 255, 0.4);
}
.docs-nav-link {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 20px;
color: rgba(255, 255, 255, 0.6);
text-decoration: none;
font-size: 13px;
font-weight: 500;
transition: all 0.15s;
border-left: 2px solid transparent;
margin: 1px 0;
}
.docs-nav-link:hover {
background: rgba(255, 255, 255, 0.04);
color: rgba(255, 255, 255, 0.9);
}
.docs-nav-link.active {
background: rgba(74, 158, 255, 0.08);
color: #4a9eff;
border-left-color: #4a9eff;
}
.docs-nav-link i {
font-size: 15px;
width: 20px;
text-align: center;
opacity: 0.8;
}
.docs-nav-link-disabled {
cursor: not-allowed;
opacity: 0.5;
position: relative;
}
.docs-nav-link-disabled:hover {
background: transparent;
color: rgba(255, 255, 255, 0.6);
}
.docs-coming-soon {
display: inline-block;
font-size: 9px;
font-weight: 600;
padding: 2px 6px;
background: rgba(74, 158, 255, 0.15);
color: #4a9eff;
border-radius: 4px;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-left: auto;
}
.docs-main {
flex: 1;
margin-left: 260px;
padding: 32px 40px 80px;
transition: margin-left 0.3s ease;
min-height: calc(100vh - 56px);
overflow-x: hidden;
max-width: 100%;
}
.docs-main.expanded {
margin-left: 0;
}
.docs-content {
max-width: 820px;
margin: 0 auto;
width: 100%;
overflow-x: hidden;
}

.docs-breadcrumb {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 20px;
font-size: 12px;
color: rgba(255, 255, 255, 0.4);
}
.docs-breadcrumb a {
color: rgba(255, 255, 255, 0.5);
text-decoration: none;
transition: color 0.2s;
}
.docs-breadcrumb a:hover {
color: #4a9eff;
}
.docs-breadcrumb i {
font-size: 9px;
opacity: 0.5;
}
.docs-article-header {
margin-bottom: 28px;
padding-bottom: 20px;
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.docs-article-header h1 {
font-size: 36px;
font-weight: 800;
margin: 0 0 10px 0;
letter-spacing: -1px;
line-height: 1.1;
background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.docs-meta {
display: flex;
gap: 24px;
color: rgba(255, 255, 255, 0.45);
font-size: 13px;
}
.docs-meta span {
display: flex;
align-items: center;
gap: 8px;
}
.docs-meta i {
font-size: 14px;
opacity: 0.7;
}
.docs-article-body {
line-height: 1.6;
overflow-x: hidden;
word-wrap: break-word;
}
.docs-article-body h2 {
font-size: 22px;
font-weight: 700;
margin: 36px 0 14px 0;
padding-top: 20px;
border-top: 1px solid rgba(255, 255, 255, 0.05);
letter-spacing: -0.3px;
}
.docs-article-body h2:first-child {
margin-top: 0;
padding-top: 0;
border-top: none;
}
.docs-article-body p {
color: rgba(255, 255, 255, 0.75);
line-height: 1.6;
margin-bottom: 14px;
font-size: 14px;
}
.docs-callout {
display: flex;
gap: 12px;
padding: 14px;
border-radius: 10px;
margin: 16px 0;
}
.docs-callout i {
font-size: 18px;
flex-shrink: 0;
margin-top: 2px;
}
.docs-callout strong {
display: block;
margin-bottom: 4px;
font-size: 13px;
}
.docs-callout p {
margin: 0;
font-size: 13px;
opacity: 0.85;
line-height: 1.5;
}
.docs-callout-info {
background: rgba(74, 158, 255, 0.08);
border: 1px solid rgba(74, 158, 255, 0.15);
}
.docs-callout-info i {
color: #4a9eff;
}
.docs-callout-warning {
background: rgba(251, 191, 36, 0.08);
border: 1px solid rgba(251, 191, 36, 0.15);
}
.docs-callout-warning i {
color: #fbbf24;
}

.docs-list {
list-style: none;
padding: 0;
margin: 12px 0;
}
.docs-list li {
display: flex;
align-items: flex-start;
gap: 10px;
padding: 8px 0;
color: rgba(255, 255, 255, 0.75);
font-size: 14px;
border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.docs-list li:last-child {
border-bottom: none;
}
.docs-list li i {
color: #10b981;
margin-top: 4px;
font-size: 14px;
}
.docs-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 12px;
margin: 16px 0;
}
.docs-card {
background: rgba(255, 255, 255, 0.02);
border: 1px solid rgba(255, 255, 255, 0.06);
border-radius: 12px;
padding: 16px;
transition: all 0.25s;
}
.docs-card:hover {
background: rgba(255, 255, 255, 0.04);
border-color: rgba(74, 158, 255, 0.25);
transform: translateY(-4px);
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
.docs-card-icon {
width: 40px;
height: 40px;
background: rgba(74, 158, 255, 0.1);
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 12px;
}
.docs-card-icon i {
font-size: 20px;
color: #4a9eff;
}
.docs-card h3 {
font-size: 15px;
font-weight: 600;
margin: 0 0 6px 0;
}
.docs-card p {
font-size: 13px;
color: rgba(255, 255, 255, 0.55);
margin: 0;
line-height: 1.5;
}
.docs-code-block {
background: rgba(0, 0, 0, 0.25);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 10px;
overflow: hidden;
margin: 16px 0;
}
.docs-code-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 8px 14px;
background: rgba(0, 0, 0, 0.2);
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.docs-code-header span {
font-size: 12px;
color: rgba(255, 255, 255, 0.45);
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.docs-copy-btn {
background: rgba(255, 255, 255, 0.06);
border: none;
padding: 8px 14px;
border-radius: 8px;
color: rgba(255, 255, 255, 0.6);
font-size: 12px;
cursor: pointer;
display: flex;
align-items: center;
gap: 8px;
transition: all 0.2s;
font-weight: 500;
}
.docs-copy-btn:hover {
background: rgba(74, 158, 255, 0.15);
color: #4a9eff;
}
.docs-code-block pre {
margin: 0;
padding: 14px;
overflow-x: auto;
max-width: 100%;
}
.docs-code-block {
max-width: 100%;
overflow: hidden;
}
.docs-code-block code {
font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
font-size: 13px;
line-height: 1.5;
color: #e2e8f0;
background: transparent !important;
}
.docs-code-block pre[class*="language-"] {
margin: 0;
padding: 14px;
background: transparent !important;
}
.docs-code-block code[class*="language-"] {
background: transparent !important;
text-shadow: none;
}

.docs-steps {
margin: 16px 0;
}
.docs-step {
display: flex;
gap: 14px;
padding: 14px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.docs-step:last-child {
border-bottom: none;
}
.docs-step-number {
width: 32px;
height: 32px;
background: linear-gradient(135deg, #4a9eff 0%, #3b82f6 100%);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 14px;
flex-shrink: 0;
box-shadow: 0 4px 12px rgba(74, 158, 255, 0.25);
}
.docs-step-content h4 {
margin: 0 0 4px 0;
font-size: 15px;
font-weight: 600;
}
.docs-step-content p {
margin: 0;
color: rgba(255, 255, 255, 0.6);
font-size: 13px;
line-height: 1.5;
}
.docs-table-wrapper {
overflow-x: auto;
margin: 20px 0;
border-radius: 10px;
border: 1px solid rgba(255, 255, 255, 0.08);
}
.docs-table {
width: 100%;
border-collapse: collapse;
font-size: 14px;
}
.docs-table th {
background: rgba(0, 0, 0, 0.2);
padding: 10px 14px;
text-align: left;
font-weight: 600;
color: rgba(255, 255, 255, 0.85);
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.docs-table td {
padding: 10px 14px;
border-bottom: 1px solid rgba(255, 255, 255, 0.04);
color: rgba(255, 255, 255, 0.75);
font-size: 13px;
}
.docs-table tr:last-child td {
border-bottom: none;
}
.docs-table code {
background: rgba(74, 158, 255, 0.12);
padding: 4px 10px;
border-radius: 6px;
font-size: 13px;
color: #4a9eff;
font-weight: 500;
}
.docs-pagination {
display: flex;
justify-content: space-between;
gap: 12px;
margin-top: 48px;
padding-top: 24px;
border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.docs-pagination-btn {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 14px;
background: rgba(255, 255, 255, 0.03);
border: none;
border-radius: 6px;
color: rgba(255, 255, 255, 0.7);
cursor: pointer;
transition: all 0.2s;
font-size: 13px;
}
.docs-pagination-btn:hover {
background: rgba(74, 158, 255, 0.12);
color: #4a9eff;
}
.docs-pagination-btn:disabled {
opacity: 0.25;
cursor: not-allowed;
}
.docs-pagination-btn:disabled:hover {
background: rgba(255, 255, 255, 0.03);
color: rgba(255, 255, 255, 0.7);
}
.docs-pagination-btn i {
font-size: 14px;
}
.docs-prev {
justify-content: flex-start;
}
.docs-next {
justify-content: flex-end;
margin-left: auto;
}

.docs-changelog-item {
padding: 28px;
background: rgba(255, 255, 255, 0.02);
border: 1px solid rgba(255, 255, 255, 0.06);
border-radius: 16px;
margin-bottom: 20px;
}
.docs-changelog-version {
font-size: 20px;
font-weight: 700;
color: #4a9eff;
margin-bottom: 6px;
}
.docs-changelog-date {
font-size: 13px;
color: rgba(255, 255, 255, 0.45);
margin-bottom: 20px;
}
.docs-changelog-item ul {
margin: 0;
padding-left: 20px;
}
.docs-changelog-item li {
color: rgba(255, 255, 255, 0.75);
padding: 6px 0;
font-size: 14px;
}
@media (max-width: 1200px) {
.docs-main {
padding: 40px 40px 80px;
}
}
@media (max-width: 1024px) {
.docs-navbar-toggle {
display: flex;
align-items: center;
justify-content: center;
}
.docs-sidebar {
transform: translateX(-100%);
}
.docs-sidebar.open {
transform: translateX(0);
}
.docs-main {
margin-left: 0;
padding: 28px 24px 80px;
}
.docs-content {
max-width: 100%;
}
}
@media (max-width: 768px) {
.docs-navbar-inner {
padding: 0 16px;
}
.docs-navbar-brand span {
font-size: 14px;
}
.docs-navbar-user span {
display: none;
}
.docs-navbar-guest span {
display: none;
}
.docs-wrapper {
padding-top: 56px;
}
.docs-sidebar {
width: 280px;
top: 56px;
height: 100%;
height: 100dvh;
max-height: calc(100vh - 56px);
max-height: calc(100dvh - 56px);
}
.docs-main {
padding: 20px 16px 120px;
}
.docs-article-header h1 {
font-size: 26px;
}
.docs-article-body h2 {
font-size: 20px;
margin-top: 32px;
}
.docs-article-body p {
font-size: 15px;
line-height: 1.7;
}
.docs-grid {
grid-template-columns: 1fr;
}
.docs-pagination {
gap: 8px;
flex-direction: column;
}
.docs-pagination-btn {
width: 100%;
justify-content: center;
}
.docs-code-block pre {
padding: 14px 12px;
}
.docs-code-block code {
font-size: 12px;
word-break: break-word;
}
.docs-callout {
padding: 14px;
flex-direction: column;
gap: 10px;
}
.docs-callout p {
font-size: 14px;
}
.docs-step {
gap: 12px;
}
.docs-use-case {
padding: 12px;
}
.docs-use-case p {
font-size: 14px;
}
.docs-example {
padding: 12px;
}
.docs-example-explanation {
font-size: 14px;
}
.docs-table td,
.docs-table th {
padding: 8px 10px;
font-size: 12px;
}
.docs-table code {
font-size: 11px;
padding: 2px 6px;
}
.docs-confused-toggle {
font-size: 13px;
}
.docs-confused-content {
font-size: 13px;
}
.docs-confused-content code {
font-size: 12px;
}
}
@media (max-width: 480px) {
.docs-navbar-brand span {
font-size: 13px;
}
.docs-article-header h1 {
font-size: 22px;
}
.docs-article-body h2 {
font-size: 18px;
}
.docs-article-body p {
font-size: 14px;
}
.docs-code-block code {
font-size: 11px;
}
.docs-meta {
flex-direction: column;
gap: 8px;
}
.docs-breadcrumb {
font-size: 11px;
flex-wrap: wrap;
}
.docs-image img {
max-width: 100% !important;
max-height: none !important;
}
}

.docs-sidebar::-webkit-scrollbar {
width: 5px;
}
.docs-sidebar::-webkit-scrollbar-track {
background: transparent;
}
.docs-sidebar::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.08);
border-radius: 3px;
}
.docs-sidebar::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.15);
}
.docs-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.6);
z-index: 400;
backdrop-filter: blur(2px);
-webkit-backdrop-filter: blur(2px);
}
.docs-overlay.active {
display: block;
}
@media (min-width: 1025px) {
.docs-overlay {
display: none !important;
}
}

.docs-image {
margin: 12px 0;
text-align: center;
}
.docs-image img {
max-width: 100%;
border-radius: 8px;
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.docs-image-caption {
display: block;
margin-top: 6px;
font-size: 12px;
color: rgba(255, 255, 255, 0.5);
font-style: italic;
text-align: left;
}
/* Custom JavaScript syntax highlighting - VS Code Dark+ theme colors */
.docs-code-block pre code {
color: #d4d4d4; /* Default text color */
}

.js-keyword {
color: #569cd6; /* Blue for keywords (function, const, let, if, etc.) */
font-weight: normal;
}

.js-string {
color: #ce9178; /* Orange-ish for strings */
}

.js-comment {
color: #6a9955; /* Green for comments */
font-style: italic;
}

.js-number {
color: #b5cea8; /* Light green for numbers */
}

.js-function {
color: #dcdcaa; /* Yellow for function names */
}

.js-property {
color: #9cdcfe; /* Light blue for properties and methods */
}

/* Inline code styling for docs - Discord-like */
.docs-article code:not([data-language]) {
background-color: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 4px;
padding: 2px 6px;
font-family: 'Courier New', Courier, monospace;
font-size: 0.9em;
color: #ffb914;
white-space: normal;
word-break: break-word;
}

/* Use Case Box Styling */
.docs-use-case {
background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
border: 1px solid rgba(99, 102, 241, 0.3);
border-radius: 8px;
padding: 14px;
margin: 14px 0;
}

.docs-use-case-title {
display: flex;
align-items: center;
gap: 6px;
font-weight: 600;
color: #a78bfa;
margin-bottom: 4px;
font-size: 13px;
}

.docs-use-case-title i {
font-size: 14px;
}

.docs-use-case p {
margin: 0;
color: rgba(255, 255, 255, 0.8);
font-size: 13px;
}

/* Example Box Styling */
.docs-example {
background: rgba(16, 185, 129, 0.1);
border: 1px solid rgba(16, 185, 129, 0.3);
border-radius: 8px;
padding: 14px;
margin: 14px 0;
}

.docs-example-title {
display: flex;
align-items: center;
gap: 6px;
font-weight: 600;
color: #34d399;
margin-bottom: 8px;
font-size: 13px;
}

.docs-example-title i {
font-size: 14px;
}

.docs-example .docs-code-block {
margin: 0 0 10px 0;
}

.docs-example-explanation {
margin-top: 10px;
padding-top: 10px;
border-top: 1px solid rgba(16, 185, 129, 0.2);
font-size: 13px;
color: rgba(255, 255, 255, 0.75);
line-height: 1.5;
}

.docs-example-explanation code {
background-color: rgba(16, 185, 129, 0.15);
border: 1px solid rgba(16, 185, 129, 0.3);
color: #34d399;
}


/* Still Confused? Expandable Section - Minimal */
.docs-confused {
margin: 8px 0;
}

.docs-confused-toggle {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 0;
background: none;
border: none;
cursor: pointer;
color: #ffb914;
font-size: 12px;
font-weight: 500;
opacity: 0.8;
transition: opacity 0.2s;
}

.docs-confused-toggle:hover {
opacity: 1;
}

.docs-confused-toggle i {
font-size: 10px;
transition: transform 0.2s;
}

.docs-confused-toggle[aria-expanded="true"] i {
transform: rotate(90deg);
}

.docs-confused-content {
display: none;
margin-top: 6px;
padding-left: 14px;
border-left: 2px solid rgba(255, 185, 20, 0.3);
font-size: 12px;
color: rgba(255, 255, 255, 0.65);
line-height: 1.5;
}

.docs-confused-content.open {
display: block;
}

.docs-confused-content p {
margin: 0 0 4px 0;
}

.docs-confused-content p:last-child {
margin-bottom: 0;
}

.docs-confused-content ul {
margin: 4px 0;
padding-left: 16px;
}

.docs-confused-content li {
margin: 2px 0;
}

.docs-confused-content code {
background-color: rgba(255, 185, 20, 0.1);
border: none;
padding: 1px 4px;
border-radius: 3px;
color: #ffb914;
font-size: 11px;
}


/* Skin gallery grid */
.docs-skin-gallery {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin: 16px 0;
}
.docs-skin-item {
text-align: center;
}
.docs-skin-item img {
max-height: 100px;
border-radius: 4px;
}
.docs-skin-item span {
display: block;
font-size: 12px;
margin-top: 4px;
color: rgba(255, 255, 255, 0.6);
}
@media (max-width: 768px) {
.docs-skin-gallery {
gap: 16px;
justify-content: space-around;
}
.docs-skin-item {
flex: 0 0 calc(33.333% - 16px);
}
.docs-skin-item img {
max-height: 120px;
width: 100%;
object-fit: contain;
}
.docs-skin-item span {
font-size: 12px;
}
}
@media (max-width: 480px) {
.docs-skin-gallery {
gap: 12px;
justify-content: space-around;
}
.docs-skin-item {
flex: 0 0 calc(50% - 12px);
}
.docs-skin-item img {
max-height: 140px;
width: 100%;
object-fit: contain;
}
.docs-skin-item span {
font-size: 11px;
}
}

/* Search Overlay */
.docs-search-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0);
backdrop-filter: blur(0px);
z-index: 2000;
display: none;
align-items: flex-start;
justify-content: center;
padding-top: 80px;
overflow-y: auto;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.docs-search-overlay.active {
display: flex;
background: rgba(0, 0, 0, 0.85);
backdrop-filter: blur(8px);
animation: fadeIn 0.2s ease-out;
}
.docs-search-overlay-content {
width: 100%;
max-width: 680px;
background: #252b3d;
border-radius: 16px;
box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
margin: 0 20px 40px;
opacity: 0;
transform: translateY(-20px) scale(0.95);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
border: 1px solid rgba(255, 255, 255, 0.08);
}
.docs-search-overlay.active .docs-search-overlay-content {
opacity: 1;
transform: translateY(0) scale(1);
}
.docs-search-overlay-header {
padding: 24px;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.docs-search-overlay-input-wrapper {
display: flex;
align-items: center;
gap: 14px;
background: #1a1f2e;
border-radius: 10px;
padding: 14px 18px;
border: 2px solid transparent;
transition: all 0.2s;
}
.docs-search-overlay-input-wrapper:focus-within {
border-color: rgba(74, 158, 255, 0.3);
background: #1e2433;
}
.docs-search-overlay-input-wrapper i.bi-search {
font-size: 20px;
color: rgba(255, 255, 255, 0.5);
transition: color 0.2s;
}
.docs-search-overlay-input-wrapper:focus-within i.bi-search {
color: #4a9eff;
}
.docs-search-overlay-input-wrapper input {
flex: 1;
background: none;
border: none;
outline: none;
color: #fff;
font-size: 16px;
}
.docs-search-overlay-input-wrapper input::placeholder {
color: rgba(255, 255, 255, 0.35);
}
.docs-search-overlay-close {
background: none;
border: none;
color: rgba(255, 255, 255, 0.4);
font-size: 26px;
cursor: pointer;
padding: 0;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 6px;
transition: all 0.2s;
flex-shrink: 0;
}
.docs-search-overlay-close:hover {
background: rgba(255, 255, 255, 0.08);
color: #fff;
transform: scale(1.05);
}
.docs-search-overlay-results {
max-height: 520px;
overflow-y: auto;
}
.docs-search-overlay-results::-webkit-scrollbar {
width: 8px;
}
.docs-search-overlay-results::-webkit-scrollbar-track {
background: transparent;
}
.docs-search-overlay-results::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.1);
border-radius: 4px;
}
.docs-search-overlay-results::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.15);
}
.docs-search-overlay-empty {
padding: 70px 20px;
text-align: center;
color: rgba(255, 255, 255, 0.35);
}
.docs-search-overlay-empty i {
font-size: 52px;
margin-bottom: 16px;
opacity: 0.25;
animation: pulse 2s ease-in-out infinite;
}
.docs-search-overlay-empty p {
font-size: 14px;
margin: 0;
}
.docs-search-result {
padding: 18px 24px;
border-bottom: 1px solid rgba(255, 255, 255, 0.04);
cursor: pointer;
transition: all 0.15s ease;
position: relative;
}
.docs-search-result::before {
content: '';
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 3px;
background: #4a9eff;
opacity: 0;
transition: opacity 0.2s;
}
.docs-search-result:hover {
background: rgba(74, 158, 255, 0.05);
padding-left: 28px;
}
.docs-search-result:hover::before {
opacity: 1;
}
.docs-search-result:last-child {
border-bottom: none;
border-radius: 0 0 16px 16px;
}
.docs-search-result-header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 8px;
}
.docs-search-result-section {
font-size: 11px;
font-weight: 700;
color: #4a9eff;
text-transform: uppercase;
letter-spacing: 0.8px;
display: flex;
align-items: center;
gap: 6px;
}
.docs-search-result-section i {
font-size: 12px;
}
.docs-search-result-snippet {
font-size: 13px;
color: rgba(255, 255, 255, 0.65);
line-height: 1.6;
}
.docs-search-highlight {
background: rgba(74, 158, 255, 0.2);
color: #6bb3ff;
padding: 2px 5px;
border-radius: 4px;
font-weight: 600;
}
.docs-search-no-results {
padding: 50px 20px;
text-align: center;
color: rgba(255, 255, 255, 0.4);
}
.docs-search-no-results i {
font-size: 40px;
margin-bottom: 14px;
opacity: 0.3;
}
.docs-search-no-results p {
font-size: 14px;
margin: 0;
}
.docs-search-loading {
padding: 40px 20px;
text-align: center;
color: rgba(255, 255, 255, 0.4);
}
.docs-search-loading i {
font-size: 32px;
animation: spin 1s linear infinite;
}

@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}

@keyframes pulse {
0%, 100% {
opacity: 0.25;
}
50% {
opacity: 0.15;
}
}

@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}

@media (max-width: 768px) {
.docs-search-overlay {
padding-top: 20px;
}
.docs-search-overlay-content {
margin: 0 12px 20px;
border-radius: 12px;
}
.docs-search-overlay-header {
padding: 18px;
}
.docs-search-overlay-input-wrapper {
padding: 12px 14px;
}
.docs-search-overlay-results {
max-height: 400px;
}
.docs-search-result {
padding: 14px 18px;
}
.docs-search-result:hover {
padding-left: 22px;
}
}
