/* ============================================
   VARIABLES
   ============================================ */
:root {
    /* GitBook Colors */
    --primary-color: #0969da;
    --sidebar-bg: #ffffff;
    --sidebar-hover: #f6f8fa;
    --sidebar-active: #e8f4ff;
    --text-primary: #24292f;
    --text-secondary: #57606a;
    --text-tertiary: #6e7781;
    --border-color: #d0d7de;
    --navbar-height: 60px;

    /* Code Colors */
    --code-bg: #2d2d3d;
    --code-key: #ffffff;
    --code-value: #98c379;
    --code-string: #e06c75;
    --code-number: #d19a66;
    --code-boolean: #56b6c2;
    --code-null: #c678dd;

    /* Status Colors */
    --success-color: #52C41A;
    --error-color: #F5222D;
}

/* ============================================
   BASE STYLES
   ============================================ */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica', 'Arial', sans-serif;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    height: var(--navbar-height);
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
}

.logo img {
    width: 200px;
    height: 40px;
}

/* ============================================
   GITBOOK LAYOUT
   ============================================ */
.gitbook-container {
    display: flex;
    height: calc(100vh - var(--navbar-height));
    overflow: hidden;
    position: relative;
    background: #ffffff;
}

/* ============================================
   SIDEBAR
   ============================================ */
.gitbook-sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--navbar-height));
}

.gitbook-sidebar::-webkit-scrollbar {
    width: 8px;
}

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

.gitbook-sidebar::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.gitbook-sidebar::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.gitbook-sidebar .upload-zone {
    border: 2px dashed var(--border-color);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    border-radius: 8px;
    margin: 5px;
}

.gitbook-sidebar .upload-zone:hover {
    border-color: var(--primary-color);
    background: rgba(9, 105, 218, 0.05);
}

.gitbook-sidebar .upload-zone h5 {
    margin: 10px 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.gitbook-sidebar .upload-zone .text-muted {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   NAVIGATION
   ============================================ */
.gitbook-navigation {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 24px 16px;
    flex: 1;
    overflow-y: auto;
}

/* Navigation Items */
.gitbook-navigation .nav-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.15s ease;
    border-radius: 6px;
    position: relative;
    font-size: 14px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gitbook-navigation .nav-item:hover {
    background-color: var(--sidebar-hover);
    color: var(--text-primary);
    text-decoration: none;
}

.gitbook-navigation .nav-item.active {
    color: var(--primary-color);
    font-weight: 500;
    background-color: var(--sidebar-active);
}

/* Heading Levels */
.gitbook-navigation .nav-item-h1 {
    font-size: 15px;
    font-weight: 600;
    padding: 5px 8px;
    margin-top: 16px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.gitbook-navigation .nav-item-h1:first-child {
    margin-top: 0;
}

.gitbook-navigation .nav-item-h2 {
    font-size: 14px;
    padding: 5px 8px 5px 20px;
    color: var(--text-secondary);
    margin: 2px 0;
}

.gitbook-navigation .nav-item-h3 {
    font-size: 13px;
    padding: 5px 8px 5px 30px;
    color: var(--text-tertiary);
    margin: 1px 0;
}

/* Method Badge */
.gitbook-navigation .method-badge {
    margin-right: 5px;
    font-size: 8px;
}

/* Endpoint Name */
.gitbook-navigation .endpoint-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

/* Active Endpoint Indicator */
.gitbook-navigation .nav-item[data-endpoint-id].active::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background-color: var(--primary-color);
    border-radius: 0 2px 2px 0;
}

/* ============================================
   FOLDERS
   ============================================ */
.gitbook-navigation .nav-folder-wrapper {
    margin-bottom: 4px;
}

.gitbook-navigation .nav-item.nav-folder-toggle:hover {
    background-color: var(--sidebar-hover);
}

/* Folder Arrow */
.gitbook-navigation .folder-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
    color: var(--text-secondary);
    flex-shrink: 0;
    font-family: Arial, sans-serif;
    font-size: 20px;
    line-height: 1;
    margin-left: auto;
}

.gitbook-navigation .folder-arrow::before {
    content: "›";
    color: #666;
    display: block;
}

.gitbook-navigation .folder-arrow.expanded {
    transform: rotate(90deg);
}

/* Folder Content */
.gitbook-navigation .nav-folder-content {
    overflow: hidden;
    max-height: 100%;
    opacity: 1;
    position: relative;
    padding-left: 12px;
    margin-left: 2px;
}

.gitbook-navigation .nav-folder-content::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: var(--border-color);
}

.gitbook-navigation .nav-folder-content.collapsed {
    max-height: 0;
    opacity: 0;
    padding-left: 0;
    margin-top: 0;
}

.nav-folder-content .nav-item {
    padding-left: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-folder-content .nav-item:hover {
    background: rgba(74, 144, 226, 0.1);
}

.nav-folder-content .nav-item.active {
    background: rgba(74, 144, 226, 0.2);
    color: var(--primary-color);
}

/* ============================================
   COPYRIGHT
   ============================================ */
.gitbook-copyright {
    padding: 15px 10px;
    margin-top: auto;
    color: #6b7280;
    font-size: 14px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

/* ============================================
   CONTENT AREA
   ============================================ */
.gitbook-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: #ffffff;
}

.gitbook-content::-webkit-scrollbar {
    width: 8px;
}

.gitbook-content::-webkit-scrollbar-track {
    background: transparent;
}

.gitbook-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.gitbook-content::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.gitbook-content-inner {
    padding: 48px 64px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Scroll Margin */
.gitbook-content h1,
.gitbook-content h2,
.gitbook-content h3,
.gitbook-content h4,
.gitbook-content h5 {
    scroll-margin-top: calc(var(--navbar-height) + 24px);
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #6b7280;
}

.breadcrumb-item {
    color: #0969da;
    font-weight: 500;
}

.breadcrumb-separator {
    color: var(--text-tertiary);
    font-size: 18px;
    user-select: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.gitbook-content h1 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 32px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    line-height: 1.25;
    color: var(--text-primary);
}

.gitbook-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 48px 0 20px 0;
    line-height: 1.3;
    color: var(--text-primary);
}

.gitbook-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 36px 0 16px 0;
    line-height: 1.4;
    color: var(--text-primary);
}

.gitbook-content p {
    margin: 0 0 16px 0;
    line-height: 1.7;
    color: var(--text-primary);
    font-size: 16px;
}

.gitbook-content strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   HEADER ANCHORS
   ============================================ */
.header-anchor {
    opacity: 0;
    margin-left: 8px;
    font-size: 0.8em;
    font-weight: 400;
    color: var(--text-tertiary) !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
    vertical-align: middle;
}

h1:hover .header-anchor,
h2:hover .header-anchor,
h3:hover .header-anchor,
h4:hover .header-anchor,
h5:hover .header-anchor,
.header-anchor:focus {
    opacity: 1;
}

.header-anchor:hover {
    color: var(--primary-color) !important;
    opacity: 1;
}

/* ============================================
   LINKS
   ============================================ */
.gitbook-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.gitbook-content a:hover {
    opacity: 0.8;
}

/* ============================================
   CODE
   ============================================ */
.gitbook-content code {
    background: #f6f8fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    color: #24292f;
    border: 1px solid #d0d7de;
    display: inline;
    line-height: 1.6;
    word-break: break-word;
    white-space: pre-wrap;
}

.gitbook-content pre code {
    background: transparent;
    padding: 0;
    border: none;
    font-size: 14px;
    display: block;
    white-space: pre;
    word-break: normal;
}

.gitbook-content p code {
    white-space: pre-wrap;
    word-break: break-word;
    vertical-align: baseline;
}

.gitbook-content blockquote code {
    border: 1px solid #d0d7de;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
}

.gitbook-content div[style*="background"] code {
    border: 1px solid #d0d7de;
    border-radius: 4px;
    display: inline-block;
    max-width: 100%;
    word-break: break-all;
    white-space: pre-wrap;
}

/* ============================================
   JSON CODE BLOCKS
   ============================================ */
.json-code-block {
    position: relative;
    background: var(--code-bg);
    border-radius: 8px;
    padding: 16px;
    margin: 10px 0;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    overflow-x: auto;
}

.json-code-block pre {
    color: var(--code-key);
}

.json-code-block .copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.json-code-block .copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.json-code-block .copy-btn.copied {
    background: var(--success-color);
    border-color: var(--success-color);
}

/* JSON Syntax Highlighting */
.json-key {
    color: var(--code-key);
}

.json-string {
    color: var(--code-value);
}

.json-number {
    color: var(--code-number);
}

.json-boolean {
    color: var(--code-boolean);
}

.json-null {
    color: var(--code-null);
}

.json-punctuation {
    color: #abb2bf;
}

.json-comment {
    color: #7f848e;
    font-style: italic;
}

/* ============================================
   TABLES
   ============================================ */
.gitbook-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 16px 0;
    font-size: 14px;
}

.gitbook-content table th,
.gitbook-content table td {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.gitbook-content table th {
    background: #f6f8fa;
    font-weight: 600;
    color: var(--text-primary);
}

.gitbook-content table td {
    color: var(--text-primary);
}

/* Codes in other columns (e.g. `string` in a Type column) break only if they would overflow the cell. */
.gitbook-content table td code {
    word-break: normal;
    overflow-wrap: break-word;
}

/* Identifier / parameter codes in the first column must not wrap mid-word (e.g. CO_CC). */
.gitbook-content table td:first-child code {
    white-space: nowrap;
    word-break: normal;
}

/* ============================================
   LISTS
   ============================================ */
.gitbook-content ul,
.gitbook-content ol {
    margin: 0 0 16px 0;
    padding-left: 28px;
}

.gitbook-content li {
    margin-bottom: 8px;
    line-height: 1.7;
    color: var(--text-primary);
}

.gitbook-content ul li::marker {
    color: var(--text-secondary);
}

/* ============================================
   BLOCKQUOTE
   ============================================ */
.gitbook-content blockquote {
    border-left: 3px solid #0969da;
    background: #f6f8fa;
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 4px;
}

/* ============================================
   DIVS WITH BACKGROUNDS
   ============================================ */
.gitbook-content div[style*="background"] {
    padding: 16px 20px;
    border-radius: 6px;
    margin: 16px 0;
}

/* ============================================
   ENDPOINT STYLES
   ============================================ */
.endpoint-header {
    margin-bottom: 20px;
}

.endpoint-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--text-primary);
}

.endpoint-url {
    font-family: 'Monaco', 'Courier New', monospace;
    background: #f6f8fa;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 16px 0;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.endpoint-description {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin: 15px 0;
}

.endpoint-description strong {
    color: var(--primary-color);
}

/* ============================================
   METHOD BADGES
   ============================================ */
.method-badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 11px;
    border-radius: 4px;
    font-weight: 700;
    flex-shrink: 0;
    text-transform: uppercase;
}

.method-badge.get {
    background: #61affe;
    color: white;
}

.method-badge.post {
    background: #49cc90;
    color: white;
}

.method-badge.put {
    background: #fca130;
    color: white;
}

.method-badge.delete {
    background: #f93e3e;
    color: white;
}

.method-badge.patch {
    background: #50e3c2;
    color: white;
}

/* ============================================
   TABS
   ============================================ */
.tabs {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
    display: flex;
    gap: 8px;
}

.tab {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.tab:hover {
    color: var(--primary-color);
}

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h4 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: var(--text-primary);
}

.tab-content h5 {
    font-size: 16px;
    font-weight: 600;
    margin: 24px 0 12px 0;
    color: var(--text-primary);
}

/* ============================================
   RESPONSE TABS
   ============================================ */
.response-status-tabs {
    display: flex;
    gap: 5px;
    border-bottom: 1px solid var(--border-color);
    margin: 20px 0;
    flex-wrap: wrap;
}

.response-status-tab {
    padding: 8px 16px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    background: #f8f9fa;
    transition: all 0.3s;
    font-weight: 500;
}

.response-status-tab:hover {
    background: #e9ecef;
}

.response-status-tab.active {
    background: white;
    border-bottom: 2px solid white;
    margin-bottom: -1px;
}

.response-status-tab.success {
    color: var(--success-color);
}

.response-status-tab.error {
    color: var(--error-color);
}

.response-status-content {
    position: relative;
}

.response-code-section {
    display: none;
}

.response-code-section.active {
    display: block;
}

.response-count {
    color: #6c757d;
    font-size: 0.85em;
    font-weight: normal;
    margin-left: 4px;
}

/* ============================================
   RESPONSE EXAMPLES
   ============================================ */
.response-example {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.response-example-header {
    background: #f5f5f5;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.response-example-header .status {
    font-weight: bold;
}

.response-example-header .status.success {
    color: var(--success-color);
}

.response-example-header .status.error {
    color: var(--error-color);
}

/* Collapsible Response Examples */
.response-example-header {
    cursor: pointer;
    user-select: none;
}

.response-example-header .collapse-chevron {
    display: inline-block;
    transition: transform 0.2s ease;
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: 8px;
}

.response-example.collapsed .collapse-chevron {
    transform: rotate(-90deg);
}

.response-example.collapsed .json-code-block,
.response-example.collapsed .response-description,
.response-example.collapsed .callback-description {
    display: none;
}

.response-example.collapsed .response-example-header {
    border-bottom: none;
}

/* ============================================
   RESPONSE / CALLBACK DESCRIPTION
   ============================================ */
.response-description,
.callback-description {
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

.response-description p:last-child,
.callback-description p:last-child {
    margin-bottom: 0;
}

/* ============================================
   LOADER
   ============================================ */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loader-text {
    margin-top: 20px;
    color: var(--primary-color);
    font-weight: 500;
}

/* ============================================
   UTILITIES
   ============================================ */
.hidden {
    display: none !important;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    min-width: 250px;
    z-index: 1050;
}

/* ============================================
   RIGHT-SIDE TABLE OF CONTENTS
   ============================================ */
.gitbook-toc {
    width: 220px;
    flex-shrink: 0;
    overflow-y: auto;
    border-left: 1px solid var(--border-color);
    height: calc(100vh - var(--navbar-height));
    padding: 24px 12px;
}

.gitbook-toc::-webkit-scrollbar {
    width: 4px;
}

.gitbook-toc::-webkit-scrollbar-track {
    background: transparent;
}

.gitbook-toc::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.gitbook-toc:empty {
    display: none;
}

.toc-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
    padding-left: 10px;
}

.toc-item {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    border-left: 2px solid transparent;
    padding: 4px 10px;
    line-height: 1.4;
    transition: color 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
}

.toc-item:hover {
    color: var(--text-primary);
    text-decoration: none;
}

.toc-item.active {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.toc-item-h2 {
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 4px;
}

.toc-item-h3 {
    padding-left: 10px;
}

.toc-item-h4 {
    padding-left: 20px;
}

.toc-item-h5 {
    padding-left: 28px;
    font-size: 12px;
}

@media (max-width: 1100px) {
    .gitbook-toc {
        display: none;
    }
}

/* Navbar overflow fix for 125% zoom / narrow viewports (992–1200px effective width).
   Reduces logo and hides the Ctrl+K hint so all 6 nav links + search button fit. */
@media (max-width: 1200px) {
    .logo img {
        width: 150px;
    }

    .search-trigger-btn kbd {
        display: none;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .gitbook-sidebar {
        position: fixed;
        z-index: 999;
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.08);
        width: 280px;
    }

    .gitbook-content-inner {
        padding: 32px 24px;
    }

    .gitbook-content h1 {
        font-size: 28px;
    }

    .gitbook-content h2 {
        font-size: 24px;
    }

    .gitbook-content h3 {
        font-size: 20px;
    }
}

/* ============================================
   SEARCH MODAL (Ctrl+K)
   ============================================ */
.search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    z-index: 10000;
}

.search-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 16px 70px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.search-modal-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    gap: 10px;
}

.search-modal-icon {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.search-modal-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--text-primary);
    background: transparent;
}

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

.search-modal-esc {
    background: #e9ecef;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    font-family: inherit;
    flex-shrink: 0;
}

.search-modal-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 4px 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    gap: 10px;
    cursor: pointer;
    transition: background 0.1s;
}

.search-result-item:hover,
.search-result-item.selected {
    background: #f0f6ff;
}

.search-result-item .method-badge {
    flex-shrink: 0;
    min-width: 52px;
    text-align: center;
}

.search-result-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
}

.search-result-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-folder {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-name mark,
.search-result-folder mark {
    background: #fff3b0;
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
}

.search-no-results {
    padding: 24px 16px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.search-modal-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
    border-top: 1px solid var(--border-color);
    background: #f8f9fa;
    font-size: 12px;
    color: var(--text-secondary);
}

.search-modal-footer kbd {
    background: #e9ecef;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    padding: 1px 4px;
    font-size: 11px;
    font-family: inherit;
}

/* Search trigger button in navbar */
.search-trigger-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #fff;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-right: 12px;
}

.search-trigger-btn:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(9, 105, 218, 0.1);
}

.search-trigger-btn kbd {
    background: #e9ecef;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 11px;
    font-family: inherit;
    color: var(--text-tertiary);
}