@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Fira+Code:wght@400;500&display=swap');
[cloak]{display:none;}
code[class*=language-],
pre[class*=language-] {
    color: #ccc;
    background: 0 0;
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 1em;
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    word-wrap: normal;
    line-height: 1.5;
    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    hyphens: none
}

pre[class*=language-] {
    padding: 1em;
    margin: .5em 0;
    overflow: auto
}

:not(pre)>code[class*=language-],
pre[class*=language-] {
    background: #2d2d2d
}

:not(pre)>code[class*=language-] {
    padding: .1em;
    border-radius: .3em;
    white-space: normal
}

.token.block-comment,
.token.cdata,
.token.comment,
.token.doctype,
.token.prolog {
    color: #999
}

.token.punctuation {
    color: #ccc
}

.token.attr-name,
.token.deleted,
.token.namespace,
.token.tag {
    color: #e2777a
}

.token.function-name {
    color: #6196cc
}

.token.boolean,
.token.function,
.token.number {
    color: #f08d49
}

.token.class-name,
.token.constant,
.token.property,
.token.symbol {
    color: #f8c555
}

.token.atrule,
.token.builtin,
.token.important,
.token.keyword,
.token.selector {
    color: #cc99cd
}

.token.attr-value,
.token.char,
.token.regex,
.token.string,
.token.variable {
    color: #7ec699
}

.token.entity,
.token.operator,
.token.url {
    color: #67cdcc
}

.token.bold,
.token.important {
    font-weight: 700
}

.token.italic {
    font-style: italic
}

.token.entity {
    cursor: help
}

.token.inserted {
    color: green
}

.code-block select {
    color: black;
    background: white;
}

code.language-bash {
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9fafb;
}

.bpa-mul-awd-belt-wrapper {
    display: none !important;
}

#app {
    display: block;
}
#header{
    position: sticky;
    top: 0;
    background-color: #edfcf6;
    z-index: 9;
}
#header a img{ margin: 0 30px; }
.sidebar {
    width: 280px;
    height: calc( 100% - 97px );
    position: fixed;
    top: 97px;
    overflow-y: auto;
    border-right: 1px solid #e5e7eb;
    background: white;
    z-index: 2;
    float: left;
}
body:has(#wpadminbar) #header{ top: 32px; }
body:has(#wpadminbar) .sidebar{ top: 129px; }
body:has(#wpadminbar) .sidebar{ height: calc( 100% - 130px ); }
.sidebar-dummy {
    position: relative;
    /* width: 280px; */
    left: 0;
    top: 0;
    height: 100vh;
    background: transparent;
    z-index: 1;
    float: left;
}

.main-content {
    padding: 40px;
    display: flex;
    gap: 40px;

}

.content-area {
    flex: 1;
    max-width: 800px;
}

.code-area {
    width: 450px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.method-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.method-get {
    background-color: #ecfdf5;
    color: #10b981;
}

.method-post {
    background-color: #fff7ed;
    color: #f97316;
}

.method-put {
    background-color: #eff6ff;
    color: #3b82f6;
}

.method-delete {
    background-color: #fef2f2;
    color: #ef4444;
}

.code-block {
    background-color: #111827;
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
}

.code-header {
    background-color: #1f2937;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #d1d5db;
    font-size: 14px;
}

.code-tabs {
    display: flex;
    gap: 16px;
    padding: 0 16px;
    border-bottom: 1px solid #374151;
}

.code-tab {
    padding: 12px 0;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    color: #9ca3af;
    font-size: 14px;
}

.code-tab.active {
    color: #10b981;
    border-bottom-color: #10b981;
}

pre {
    margin: 0 !important;
    padding: 16px !important;
    background: transparent !important;
}

code {
    font-family: 'Fira Code', monospace !important;
    font-size: 13px !important;
}

.main-content .content-area {
    max-width: 1100px;
    margin-left: 280px
}

.main-content.info-data .code-area {
    display: none;
}

.authorizationBtn{
    background:none !important;
    border-radius: 0.75rem 0.75rem 0 0 !important;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1)) !important;
}

.is_required_cls{
    color: red;
}

.api-endpoint-prefix{
    background:#eafbf0;
    color:rgba(18,212,136,1);
}

select#language_list{ padding: 2px 10px; }

/* Search Bar Styles */
.search-container {
    flex: 1;
    max-width: 600px;
    margin: 0 400px;
    cursor: pointer;
}

.search-bar-inner {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 8px 16px;
    gap: 12px;
    transition: border-color 0.2s;
}

.search-bar-inner:hover {
    border-color: #b3dbcb;
}

.search-icon {
    width: 18px;
    height: 18px;
    color: #9ca3af;
}

.search-placeholder {
    flex: 1;
    color: #9ca3af;
    font-size: 14px;
}

.search-shortcut {
    font-size: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 2px 6px;
    color: #9ca3af;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
}

.modal-overlay.hidden {
    display: none;
}

.modal-container {
    background: white;
    width: 650px;
    max-height: 80vh;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    gap: 12px;
}

.search-icon-modal {
    width: 20px;
    height: 20px;
    color: #13d488;
}

#search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #1f2937;
    background: transparent;
}

.modal-close-hint {
    font-size: 12px;
    background: #f3f4f6;
    border-radius: 4px;
    padding: 2px 8px;
    color: #6b7280;
}

.modal-results {
    overflow-y: auto;
    padding: 8px 0;
}

.search-result-item {
    display: flex;
    flex-direction: column;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.1s;
}

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

.result-breadcrumb {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.result-title-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-icon {
    width: 16px;
    height: 16px;
    color: #9ca3af;
}

.result-title {
    font-weight: 600;
    font-size: 15px;
    color: #374151;
}

.result-snippet {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
}

.highlight {
    color: #3b82f6;
    text-decoration: underline;
    font-weight: 700;
}

.recent-search-header {
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.no-results {
    padding: 40px 20px;
    text-align: center;
    color: #9ca3af;
}

body.modal-open {
    overflow: hidden;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.toast {
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toast-fade-in 0.3s ease-out;
}

.toast.hide {
    animation: toast-fade-out 0.3s ease-in forwards;
}

.toast-icon {
    width: 20px;
    height: 20px;
    color: #10b981;
}

.toast-message {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

@keyframes toast-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toast-fade-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(20px);
    }
}