/* ============================================================
   Docs Plugin — docs.css
   ============================================================ */

/* ── CSS Variables ────────────────────────────────────────── */
.docs-plugin-wrap {
    --docs-bg:           #f5f7fa;
    --docs-sidebar-bg:   #ffffff;
    --docs-content-bg:   #ffffff;
    --docs-border:       #e8ecf0;
    --docs-text:         #1a1d23;
    --docs-muted:        #6b7280;
    --docs-accent:       #2563eb;
    --docs-accent-light: #eff6ff;
    --docs-hover-bg:     #f0f4ff;
    --docs-active-dot:   #2563eb;
    --docs-radius:       10px;
    --docs-shadow:       0 2px 12px rgba(0,0,0,.06);
    --docs-font:         'DM Sans';

    font-family: var(--docs-font);
    color: var(--docs-text);
    display: flex;
    min-height: 600px;
    gap: 45px;
    position: relative;
    overflow: hidden;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.docs-sidebar {
    width: 26.59%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ── Search ───────────────────────────────────────────────── */
.docs-search-wrap {
    position: relative;
}

.docs-search-input {
    width: 100%;
    padding: 14px 17px 14px 40px;
    border: 1px solid #D5E5FF;
    border-radius: 50px;
    font-size: 18px;
	font-weight: 400;
	line-height: 25px;
    color: #171717;
    background: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}

.docs-search-input:focus {
    border-color: var(--docs-accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
    background: #fff;
}

.docs-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--docs-muted);
    display: flex;
    align-items: center;
    pointer-events: none;
}

/* Search results dropdown */
.docs-search-results {
    display: none;
    position: absolute;
    top: calc(100% - 2px);
    left: 18px;
    right: 18px;
    background: #fff;
    border: 1.5px solid var(--docs-border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    z-index: 100;
    overflow: hidden;
}

.docs-search-results.is-open {
    display: block;
}

.docs-search-result-item {
    display: block;
    padding: 10px 16px;
    font-size: 13.5px;
    color: var(--docs-text);
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
    border-bottom: 1px solid var(--docs-border);
}

.docs-search-result-item:last-child {
    border-bottom: none;
}

.docs-search-result-item:hover {
    background: var(--docs-hover-bg);
    color: var(--docs-accent);
}

.docs-search-no-results {
    padding: 12px 16px;
    font-size: 13.5px;
    color: var(--docs-muted);
    font-style: italic;
}

/* ── Nav / Accordion ──────────────────────────────────────── */
.docs-nav {
    flex: 1;
    overflow-y: auto;
    padding: 38px 0 0 0;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

.docs-nav::-webkit-scrollbar { width: 4px; }
.docs-nav::-webkit-scrollbar-track { background: transparent; }
.docs-nav::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

/* Group */
.docs-nav-group-title {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 14px 0;
	font-family: 'DM Sans';
    font-size: 18px;
    font-weight: 600;
	line-height: 21px;
    color: #171717;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: color .15s, background .15s;
    gap: 8px;
}

.docs-nav-group-title:hover {
    color: #0088FF;
}

/* Chevron animation */
.docs-chevron {
    flex-shrink: 0;
    transition: transform .25s ease;
    color: #0095FF;
}

.docs-nav-group.is-open .docs-chevron {
    transform: rotate(180deg);
}

/* Items list */
.docs-nav-items {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.docs-nav-group.is-open .docs-nav-items {
    max-height: 1000px;
}
.docs-nav-item:last-child{
	padding-bottom: 6px;
}
.docs-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 0 13px 17px;
    font-size: 16px;
	font-weight: 500;
	line-height: 19px;
    color: #0088FF;
    text-decoration: none;
    transition: color .15s, background .15s;
    position: relative;
}

.docs-nav-link:hover {
    color: var(--docs-accent);
}

.docs-nav-link.is-active {
    color: var(--docs-accent);
    font-weight: 500;
}

/* Active dot indicator */
.docs-nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: transparent;
    flex-shrink: 0;
    transition: background .15s;
}

.docs-nav-link.is-active .docs-nav-dot {
    background: var(--docs-active-dot);
}

.docs-nav-link:hover .docs-nav-dot {
    background: var(--docs-accent);
}

.docs-empty {
    padding: 20px 18px;
    font-size: 13.5px;
    color: var(--docs-muted);
}

.docs-empty a {
    color: var(--docs-accent);
}

/* ── Content Panel ────────────────────────────────────────── */
.docs-content-panel {
    width: 70.60%;
    overflow-y: auto;
    background: var(--docs-content-bg);
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
	border-radius: 15px;
}

.docs-content-panel::-webkit-scrollbar { width: 5px; }
.docs-content-panel::-webkit-scrollbar-track { background: transparent; }
.docs-content-panel::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

.docs-content-inner {
    padding: 60px 40px;
    position: relative;
    min-height: 100%;
    box-sizing: border-box;
}

/* Title */
.docs-content-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--docs-text);
    margin: 0 0 28px;
    line-height: 1.25;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--docs-border);
}

/* Body content */
.docs-content-body {
    font-size: 15px;
    line-height: 1.8;
    color: #374151;
}

.docs-content-body h1,
.docs-content-body h2,
.docs-content-body h3,
.docs-content-body h4 {
    font-weight: 700;
    margin-top: 1.8em;
    margin-bottom: .6em;
    color: var(--docs-text);
    line-height: 1.3;
}

.docs-content-body h2 { font-size: 20px; }
.docs-content-body h3 { font-size: 17px; }
.docs-content-body h4 { font-size: 15px; }

.docs-content-body p { margin: 0 0 1.1em; }

.docs-content-body a {
    color: var(--docs-accent);
    text-decoration: none;
}
.docs-content-body a:hover { text-decoration: underline; }

.docs-content-body ul,
.docs-content-body ol {
    padding-left: 24px;
    margin: 0 0 1.1em;
}

.docs-content-body li {
    margin-bottom: .45em;
}

.docs-content-body strong,
.docs-content-body b {
    font-weight: 600;
    color: var(--docs-text);
}

.docs-content-body code {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    padding: 2px 6px;
    font-size: .875em;
    font-family: 'Fira Code', 'Consolas', monospace;
    color: #c0392b;
}

.docs-content-body pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 18px 22px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: .875em;
    line-height: 1.65;
    margin: 1.4em 0;
}

.docs-content-body pre code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.docs-content-body blockquote {
    border-left: 3px solid var(--docs-accent);
    margin: 1.4em 0;
    padding: 12px 18px;
    background: var(--docs-accent-light);
    border-radius: 0 8px 8px 0;
    color: var(--docs-muted);
    font-style: italic;
}

.docs-content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    font-size: 14px;
}

.docs-content-body th {
    background: var(--docs-bg);
    font-weight: 600;
    padding: 10px 14px;
    border: 1px solid var(--docs-border);
    text-align: left;
}

.docs-content-body td {
    padding: 9px 14px;
    border: 1px solid var(--docs-border);
}

.docs-content-body tr:hover td { background: var(--docs-hover-bg); }

.docs-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--docs-shadow);
    margin: .75em 0;
}

/* Placeholder */
.docs-content-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: var(--docs-muted);
    text-align: center;
    gap: 14px;
}

.docs-content-placeholder svg { opacity: .3; }

/* ── Loading Spinner ──────────────────────────────────────── */
.docs-loading {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.docs-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--docs-border);
    border-top-color: var(--docs-accent);
    border-radius: 50%;
    animation: docs-spin .6s linear infinite;
}

@keyframes docs-spin { to { transform: rotate(360deg); } }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
	.docs-content-panel{
		width: 100% !important;
	}
    .docs-plugin-wrap {
        flex-direction: column;
        min-height: auto;
    }

    .docs-sidebar {
        width: 100%;
        min-width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--docs-border);
    }

    .docs-nav {
        max-height: 350px;
    }

    .docs-content-inner {
        padding: 24px 20px 40px;
    }

    .docs-content-title {
        font-size: 22px;
    }
}
