/* ============================================
   GENESIS RM - DOCUMENTATION
   Professional Help Center Stylesheet
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    --docs-bg: #0a0a0a;
    --docs-surface: #111111;
    --docs-surface-hover: #161616;
    --docs-surface-active: #1a1a1a;
    --docs-border: #1e1e1e;
    --docs-border-light: #2a2a2a;
    --docs-text-primary: #e8e8e8;
    --docs-text-secondary: #999999;
    --docs-text-tertiary: #666666;
    --docs-accent: #ff6b35;
    --docs-accent-hover: #ff8c42;
    --docs-accent-muted: rgba(255, 107, 53, 0.12);
    --docs-accent-border: rgba(255, 107, 53, 0.25);
    --docs-success: #10b981;
    --docs-warning: #f59e0b;
    --docs-info: #06b6d4;
    --docs-danger: #ef4444;
    --docs-sidebar-width: 280px;
    --docs-header-height: 64px;
    --docs-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --docs-font-mono: 'IBM Plex Mono', 'Fira Code', monospace;
}

/* ---- Page Layout ---- */
.docs-page {
    min-height: 100vh;
    background: var(--docs-bg);
    color: var(--docs-text-primary);
    font-family: var(--docs-font-sans);
}

.docs-layout {
    display: grid;
    grid-template-columns: var(--docs-sidebar-width) 1fr;
    max-width: 1440px;
    margin: 0 auto;
    min-height: calc(100vh - var(--docs-header-height));
}

/* ---- Hero Header ---- */
.docs-hero-header {
    padding: 120px 48px 48px;
    text-align: center;
    background: linear-gradient(180deg, #0a0a0a 0%, #0f0f0f 50%, #0a0a0a 100%);
    border-bottom: 1px solid var(--docs-border);
    position: relative;
    overflow: hidden;
}

.docs-hero-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(255, 107, 53, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.docs-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--docs-accent-muted);
    border: 1px solid var(--docs-accent-border);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--docs-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.docs-hero-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
    color: var(--docs-text-primary);
}

.docs-hero-subtitle {
    font-size: 17px;
    color: var(--docs-text-secondary);
    max-width: 560px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

/* Search in hero */
.docs-hero-search {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
}

.docs-hero-search input {
    width: 100%;
    padding: 14px 20px 14px 44px;
    background: var(--docs-surface);
    border: 1px solid var(--docs-border-light);
    border-radius: 10px;
    color: var(--docs-text-primary);
    font-size: 15px;
    font-family: var(--docs-font-sans);
    outline: none;
    transition: all 0.2s;
}

.docs-hero-search input::placeholder {
    color: var(--docs-text-tertiary);
}

.docs-hero-search input:focus {
    border-color: var(--docs-accent);
    box-shadow: 0 0 0 3px var(--docs-accent-muted);
}

.docs-hero-search .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--docs-text-tertiary);
    font-size: 14px;
    pointer-events: none;
}

.docs-hero-search kbd {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    padding: 3px 8px;
    background: var(--docs-bg);
    border: 1px solid var(--docs-border-light);
    border-radius: 4px;
    font-family: var(--docs-font-mono);
    font-size: 11px;
    color: var(--docs-text-tertiary);
}

/* ---- Sidebar ---- */
.docs-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 24px 0;
    border-right: 1px solid var(--docs-border);
    background: var(--docs-bg);
    scrollbar-width: thin;
    scrollbar-color: var(--docs-border-light) transparent;
    z-index: 10;
}

.docs-sidebar::-webkit-scrollbar {
    width: 4px;
}

.docs-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.docs-sidebar::-webkit-scrollbar-thumb {
    background: var(--docs-border-light);
    border-radius: 2px;
}

/* Sidebar search */
.docs-sidebar-search {
    padding: 0 16px 16px;
    position: relative;
}

.docs-sidebar-search input {
    width: 100%;
    padding: 9px 12px 9px 34px;
    background: var(--docs-surface);
    border: 1px solid var(--docs-border);
    border-radius: 6px;
    color: var(--docs-text-primary);
    font-size: 13px;
    font-family: var(--docs-font-sans);
    outline: none;
    transition: border-color 0.2s;
}

.docs-sidebar-search input::placeholder {
    color: var(--docs-text-tertiary);
}

.docs-sidebar-search input:focus {
    border-color: var(--docs-accent);
}

.docs-sidebar-search .search-icon {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--docs-text-tertiary);
    font-size: 12px;
    pointer-events: none;
    margin-top: -8px;
}

/* Sidebar navigation groups */
.docs-nav-group {
    margin-bottom: 4px;
}

.docs-nav-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}

.docs-nav-group-header:hover {
    background: var(--docs-surface);
}

.docs-nav-group-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--docs-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.docs-nav-group-chevron {
    font-size: 10px;
    color: var(--docs-text-tertiary);
    transition: transform 0.2s;
}

.docs-nav-group.expanded .docs-nav-group-chevron {
    transform: rotate(90deg);
}

.docs-nav-items {
    display: none;
    padding: 0 0 8px 0;
}

.docs-nav-group.expanded .docs-nav-items {
    display: block;
}

.docs-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 20px 7px 28px;
    font-size: 13px;
    color: var(--docs-text-secondary);
    text-decoration: none;
    transition: all 0.15s;
    border-left: 2px solid transparent;
    cursor: pointer;
}

.docs-nav-item:hover {
    background: var(--docs-surface);
    color: var(--docs-text-primary);
}

.docs-nav-item.active {
    color: var(--docs-accent);
    border-left-color: var(--docs-accent);
    background: var(--docs-accent-muted);
}

.docs-nav-item i {
    width: 16px;
    text-align: center;
    font-size: 12px;
    opacity: 0.7;
}

.docs-nav-item.active i {
    opacity: 1;
}

/* ---- Main Content ---- */
.docs-content {
    padding: 40px 56px 100px;
    max-width: 900px;
    min-width: 0;
}

/* Section styling */
.docs-section {
    scroll-margin-top: 24px;
    margin-bottom: 72px;
}

.docs-section-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--docs-border);
}

.docs-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 26px;
    font-weight: 700;
    color: var(--docs-text-primary);
    margin-bottom: 10px;
}

.docs-section-title i {
    color: var(--docs-accent);
    font-size: 22px;
}

.docs-section-desc {
    font-size: 15px;
    color: var(--docs-text-secondary);
    line-height: 1.65;
    max-width: 700px;
}

/* ---- Widget Feature Page ---- */
.docs-feature-page {
    margin-bottom: 64px;
    scroll-margin-top: 24px;
}

.docs-feature-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.docs-feature-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: var(--docs-accent-muted);
    border: 1px solid var(--docs-accent-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--docs-accent);
    font-size: 22px;
}

.docs-feature-title-group {
    flex: 1;
}

.docs-feature-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--docs-text-primary);
    margin-bottom: 6px;
}

.docs-feature-name .docs-feature-arrow {
    display: inline-block;
    margin-left: 8px;
    color: var(--docs-accent);
    font-size: 16px;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s;
}

.docs-feature-page:hover .docs-feature-arrow {
    opacity: 1;
    transform: translateX(0);
}

.docs-feature-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.docs-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.docs-badge-category {
    background: rgba(6, 182, 212, 0.12);
    color: var(--docs-info);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.docs-badge-realtime {
    background: rgba(16, 185, 129, 0.12);
    color: var(--docs-success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.docs-badge-realtime i {
    font-size: 8px;
}

.docs-badge-data {
    background: rgba(245, 158, 11, 0.12);
    color: var(--docs-warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.docs-feature-desc {
    font-size: 15px;
    color: var(--docs-text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
}

/* Screenshot / Preview area */
.docs-screenshot-frame {
    position: relative;
    background: var(--docs-surface);
    border: 1px solid var(--docs-border-light);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 28px;
}

/* Size modifiers for screenshot frames */
.docs-screenshot-frame.size-sm {
    max-width: 420px;
}

.docs-screenshot-frame.size-md {
    max-width: 600px;
}

.docs-screenshot-frame.size-lg {
    max-width: 800px;
}

.docs-screenshot-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #0d0d0d;
    border-bottom: 1px solid var(--docs-border);
}

.docs-screenshot-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--docs-border-light);
}

.docs-screenshot-dot.red { background: #ff5f57; }
.docs-screenshot-dot.yellow { background: #febc2e; }
.docs-screenshot-dot.green { background: #28c840; }

.docs-screenshot-toolbar-title {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: var(--docs-text-tertiary);
    font-family: var(--docs-font-mono);
}

.docs-screenshot-body {
    position: relative;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.docs-screenshot-body img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0 0 8px 8px;
}

/* Placeholder when no screenshot */
.docs-screenshot-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 40px;
    color: var(--docs-text-tertiary);
    width: 100%;
}

.docs-screenshot-placeholder i {
    font-size: 36px;
    opacity: 0.3;
}

.docs-screenshot-placeholder span {
    font-size: 13px;
    opacity: 0.5;
}

/* Annotated screenshot callouts */
.docs-callout-label {
    position: absolute;
    padding: 4px 10px;
    background: var(--docs-accent);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
}

.docs-callout-label::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 24px;
    background: var(--docs-accent);
    left: 50%;
}

.docs-callout-label.top::after { bottom: -24px; }
.docs-callout-label.bottom::after { top: -24px; }

/* ---- Feature Details Grid ---- */
.docs-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.docs-detail-card {
    background: var(--docs-surface);
    border: 1px solid var(--docs-border);
    border-radius: 10px;
    padding: 20px;
    transition: border-color 0.2s;
}

.docs-detail-card:hover {
    border-color: var(--docs-border-light);
}

.docs-detail-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--docs-text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.docs-detail-card h4 i {
    color: var(--docs-accent);
    font-size: 13px;
}

.docs-detail-card p, .docs-detail-card ul {
    font-size: 13px;
    color: var(--docs-text-secondary);
    line-height: 1.65;
    margin: 0;
}

.docs-detail-card ul {
    padding-left: 16px;
}

.docs-detail-card ul li {
    margin-bottom: 4px;
}

/* Full-width detail card */
.docs-detail-card.full {
    grid-column: 1 / -1;
}

/* ---- How to Use Steps ---- */
.docs-steps {
    margin-bottom: 28px;
}

.docs-steps-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--docs-text-primary);
}

.docs-step {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.docs-step-number {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: var(--docs-accent-muted);
    border: 1px solid var(--docs-accent-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--docs-accent);
    margin-top: 2px;
}

.docs-step-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--docs-text-primary);
    margin-bottom: 4px;
}

.docs-step-content p {
    font-size: 13px;
    color: var(--docs-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.docs-step-content kbd {
    display: inline-block;
    padding: 1px 6px;
    background: var(--docs-bg);
    border: 1px solid var(--docs-border-light);
    border-radius: 3px;
    font-family: var(--docs-font-mono);
    font-size: 12px;
    color: var(--docs-accent);
}

/* ---- Category Overview Grid ---- */
.docs-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.docs-category-card {
    background: var(--docs-surface);
    border: 1px solid var(--docs-border);
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.docs-category-card:hover {
    border-color: var(--docs-accent-border);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.docs-category-card-icon {
    width: 44px;
    height: 44px;
    background: var(--docs-accent-muted);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--docs-accent);
    font-size: 18px;
    margin-bottom: 14px;
}

.docs-category-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--docs-text-primary);
    margin-bottom: 6px;
}

.docs-category-card p {
    font-size: 13px;
    color: var(--docs-text-secondary);
    line-height: 1.5;
    margin: 0;
}

.docs-category-card .card-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--docs-accent);
    font-weight: 500;
}

/* ---- Keyboard Shortcuts Table ---- */
.docs-shortcuts-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 28px;
}

.docs-shortcuts-table th {
    text-align: left;
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 600;
    color: var(--docs-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--docs-border-light);
}

.docs-shortcuts-table td {
    padding: 10px 16px;
    font-size: 13px;
    color: var(--docs-text-secondary);
    border-bottom: 1px solid var(--docs-border);
}

.docs-shortcuts-table tr:hover td {
    background: var(--docs-surface);
}

.docs-shortcuts-table kbd {
    display: inline-block;
    padding: 2px 8px;
    background: var(--docs-surface);
    border: 1px solid var(--docs-border-light);
    border-radius: 4px;
    font-family: var(--docs-font-mono);
    font-size: 12px;
    color: var(--docs-accent);
    margin: 0 2px;
}

/* ---- Info Box ---- */
.docs-info-box {
    display: flex;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(6, 182, 212, 0.06);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 10px;
    margin-bottom: 24px;
}

.docs-info-box i {
    color: var(--docs-info);
    font-size: 16px;
    margin-top: 2px;
}

.docs-info-box p {
    font-size: 13px;
    color: var(--docs-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.docs-info-box.tip {
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.15);
}

.docs-info-box.tip i {
    color: var(--docs-success);
}

.docs-info-box.warning {
    background: rgba(245, 158, 11, 0.06);
    border-color: rgba(245, 158, 11, 0.15);
}

.docs-info-box.warning i {
    color: var(--docs-warning);
}

/* ---- Divider ---- */
.docs-divider {
    border: none;
    border-top: 1px solid var(--docs-border);
    margin: 48px 0;
}

/* ---- Breadcrumb ---- */
.docs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--docs-text-tertiary);
    margin-bottom: 24px;
}

.docs-breadcrumb a {
    color: var(--docs-text-secondary);
    text-decoration: none;
    transition: color 0.15s;
}

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

.docs-breadcrumb .separator {
    font-size: 10px;
}

/* ---- Roadmap Timeline ---- */
.docs-roadmap {
    position: relative;
    padding-left: 32px;
}

.docs-roadmap::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--docs-border-light);
}

.docs-roadmap-item {
    position: relative;
    padding: 0 0 32px 24px;
}

.docs-roadmap-item:last-child {
    padding-bottom: 0;
}

.docs-roadmap-marker {
    position: absolute;
    left: -28px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--docs-surface);
    border: 2px solid var(--docs-border-light);
}

.docs-roadmap-item.completed .docs-roadmap-marker {
    background: var(--docs-success);
    border-color: var(--docs-success);
}

.docs-roadmap-item.in-progress .docs-roadmap-marker {
    background: var(--docs-accent);
    border-color: var(--docs-accent);
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.4);
}

.docs-roadmap-date {
    font-size: 11px;
    font-weight: 600;
    color: var(--docs-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.docs-roadmap-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--docs-text-primary);
    margin-bottom: 6px;
}

.docs-roadmap-item p {
    font-size: 13px;
    color: var(--docs-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ---- Feature List (checkmarks) ---- */
.docs-check-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.docs-check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--docs-text-secondary);
    line-height: 1.5;
}

.docs-check-item i {
    color: var(--docs-success);
    font-size: 12px;
    margin-top: 4px;
    min-width: 14px;
}

/* ---- Back to Top ---- */
.docs-back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 40px;
    height: 40px;
    background: var(--docs-accent);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.docs-back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.docs-back-to-top:hover {
    background: var(--docs-accent-hover);
    transform: translateY(-2px);
}

/* ---- Data Source Cards ---- */
.docs-data-source {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--docs-surface);
    border: 1px solid var(--docs-border);
    border-radius: 8px;
    margin-bottom: 8px;
}

.docs-data-source-icon {
    width: 32px;
    height: 32px;
    background: var(--docs-accent-muted);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--docs-accent);
    font-size: 14px;
}

.docs-data-source-info h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--docs-text-primary);
    margin: 0 0 2px;
}

.docs-data-source-info p {
    font-size: 12px;
    color: var(--docs-text-tertiary);
    margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .docs-layout {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
    }

    .docs-sidebar.mobile-open {
        display: block;
    }

    .docs-content {
        padding: 24px;
    }

    .docs-detail-grid {
        grid-template-columns: 1fr;
    }

    .docs-hero-header {
        padding: 100px 24px 32px;
    }

    .docs-mobile-menu-btn {
        display: flex !important;
    }
}

@media (max-width: 640px) {
    .docs-category-grid {
        grid-template-columns: 1fr;
    }

    .docs-feature-header {
        flex-direction: column;
    }

    .docs-content {
        padding: 16px;
    }
}

/* Mobile sidebar toggle */
.docs-mobile-menu-btn {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    background: var(--docs-accent);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    z-index: 999;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
}

/* Sidebar overlay for mobile */
.docs-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
}

.docs-sidebar-overlay.active {
    display: block;
}

/* ---- Widget Grid (Overview) ---- */
.docs-widget-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.docs-widget-mini-card {
    background: var(--docs-surface);
    border: 1px solid var(--docs-border);
    border-radius: 8px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    cursor: pointer;
    display: block;
}

.docs-widget-mini-card:hover {
    border-color: var(--docs-accent-border);
    transform: translateY(-1px);
}

.docs-widget-mini-card i {
    color: var(--docs-accent);
    font-size: 18px;
    margin-bottom: 10px;
    display: block;
}

.docs-widget-mini-card h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--docs-text-primary);
    margin: 0 0 4px;
}

.docs-widget-mini-card p {
    font-size: 12px;
    color: var(--docs-text-tertiary);
    margin: 0;
    line-height: 1.4;
}

/* Search results highlighting */
.docs-search-highlight {
    background: rgba(255, 107, 53, 0.2);
    border-radius: 2px;
    padding: 0 2px;
}

/* Hidden by search */
.docs-nav-item.search-hidden,
.docs-nav-group.search-hidden,
.docs-feature-page.search-hidden {
    display: none !important;
}
