@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;
}

#app button:not(.btn-send):not(.try-btn):not(#save-baseurl-btn),
#app .try-it-panel button:not(.btn-send),
#app .modal-overlay button:not(#save-baseurl-btn) {
    background: transparent !important;
    background-color: transparent !important;
    /* border: none !important; */
    box-shadow: none !important;
    color: inherit !important;
    transition: all 0.2s;
}

#app button:hover,
#app button:focus {
    /* background-color: transparent !important; */
    /* color: inherit !important; */
    box-shadow: none !important;
}

.try-btn,
.btn-send,
#save-baseurl-btn {
    background-color: #10b981 !important;
    /* emerald-500 */
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
    transition: all 0.2s !important;
}

.try-btn:hover,
.btn-send:hover,
#save-baseurl-btn:hover {
    background-color: #059669 !important;
    color: #ffffff !important;
}

/* Try Body Tabs Styling */
#try-body-tabs button {
    border-bottom: 2px solid transparent !important;
    padding: 8px 16px !important;
}

#try-body-tabs button.active-tab {
    color: #059669 !important;
    border-bottom-color: #10b981 !important;
    background: transparent !important;
}

#try-body-tabs button:not(.active-tab) {
    color: #9ca3af !important;
    background: transparent !important;
}

#try-body-tabs button:hover {
    background-color: #f3f4f6 !important;
    color: #4b5563 !important;
}

#cancel-baseurl:hover {
    color: #6b7280 !important;
    background: transparent !important;
    border: none !important;
}

#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;
    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: 120px;
    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 !important;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1)) !important;
    transition: all 0.2s ease !important;
}

.authorizationBtn.active {
    border-radius: 0.75rem 0.75rem 0 0 !important;
}

.authorizationBtn svg {
    transition: transform 0.2s ease;
    transform: rotate(0deg);
}

.authorizationBtn:not(.active) svg {
    transform: rotate(-90deg);
}

.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 auto;
    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);
    }
}

/** css changes start **/
/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    margin: 15px 20px;
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
    color: #333;
}

/* Overlay */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 40;
    display: none;
}

.close-btn{ display: none;}

/* Mobile behavior */
@media (max-width: 1024px) {

    .mobile-menu-btn { display: block; }
    .close-btn{ display: block; text-align: -webkit-right; position: relative; top: -8px; }
    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 260px;
        height: 100vh;
        background: #fff;
        z-index: 50;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }

    .sidebar.open {
        left: 0;
    }

    .sidebar-dummy {
        display: none;
    }

    .sidebar-overlay.show {
        display: block;
    }

    .main-content {
        width: 100%;
    }
}
.bpa-mobile-logo{ display: none;}
.search-container.bpa-mobile-search{ display: none;}
/** css changes end **/
@media screen and (max-width: 1440px) {
    .code-area { width: 350px; }
}
@media screen and (max-width: 1200px) {
    .code-area { width: 270px; }
}
@media screen and (max-width: 1151px) {
    .main-content{ flex-direction: column; }
    #code-sidebar.code-area{ margin-left: 280px; width: auto; max-width: 100%; }
}
@media screen and (max-width: 1024px) {
    .bpa-mobile-logo{ display: block;}
    .search-container.bpa-mobile-search{ display: block;}
    .main-content .content-area{ margin-left: 0; }
    .main-content { padding: 24px 20px; }
    #header{ width: 100%; height: 120px; }
    .sidebar{ padding-bottom: 0; }
    #code-sidebar.code-area{ margin-left: 0; }
    .search-container.bpa-mobile-search{ display: none; }
    .bpa-mobile-logo{ margin-bottom: 24px; }
}
@media screen and (max-width: 980px) {
    .search-container{ max-width: 480px; }
}
@media screen and (max-width: 782px) {
    body:has(#wpadminbar) #header { top: 46px; }
}
@media screen and (max-width: 767px) {
    .search-container{ max-width: 380px; }
}
@media screen and (max-width: 719px) {
    .search-container{ display: none; }
    #header .header-logo{ justify-content: center; }
    .main-content{ display: block; }
    #code-sidebar.code-area{ margin-top: 30px; }
    .search-container.bpa-mobile-search{ display: block; margin-bottom: 24px; }
    .search-container.bpa-mobile-search .search-bar-inner{ border-radius: 10px; padding: 8px; }
    #search-modal .modal-container{ width: 80%; }
}
@media screen and (max-width: 600px) {
    body:has(#wpadminbar) #header { top: 0; }
    .bpa-mobile-logo img, #header a img { width: 165px; }
    #search-modal .modal-container{ width: 90%; }
    #search-modal .modal-header{ padding: 10px 20px; }
    #search-modal .modal-header #search-input{ padding-left: 0; }
    #search-modal .modal-header .search-icon-modal{ display: none; }
}

/* Sidebar Accordion Styles */
.section-header {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}

.section-header:hover {
    color: #374151;
}

.section-header svg {
    transition: transform 0.3s ease;
}

.section-header.collapsed svg {
    transform: rotate(-90deg);
}

.section-content {
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin 0.3s ease;
    max-height: 2000px;
    opacity: 1;
}

.section-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0 !important;
    pointer-events: none;
}

.mobile-menu-btn-wrapper{
    float:left;
    width: 100%;
    background: #fff;
    box-shadow:0 5px 10px 0 #e5e7eb;
}

/* Try It Panel Styles */
.try-it-panel {
    position: fixed;
    top: 76px;
    right: -450px;
    width: 500px;
    height: calc(100vh - 76px);
    background: white;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    z-index: 40;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid #f3f4f6;
}

body:has(#wpadminbar) .try-it-panel {
    top: 108px;
    height: calc(100vh - 108px);
}

.try-it-panel.open {
    right: 0;
}

.try-it-header {
    background: #fff;
}

.try-it-content {
    overflow-y: auto;
    flex: 1;
}

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

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

.try-it-content::-webkit-scrollbar-thumb {
    background: #808285;
    border-radius: 10px;
}

.try-response-area::-webkit-scrollbar {
    width: 8px;
    height: 5px;
}

.try-response-area::-webkit-scrollbar-thumb {
    background: #808285;
    border-radius: 10px;
}

.try-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.try-btn:hover {
    background: #059669;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
}

.url-box {
    display: flex;
    align-items: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 24px;
    gap: 12px;
}

.url-box .method {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: white;
}

.url-box .method.get {
    background-color: #e3f6ed;
    color: #10b981;
}

.url-box .method.post {
    background-color: #fdede4;
    color: #f97316;
}

.url-box .method.put {
    background-color: #e6f2fe;
    color: #3b82f6;
}

.url-box .method.delete {
    background-color: #fde9e7;
    color: #ef4444;
}

.url-box .method.patch {
    background-color: #fef3c7;
    color: #f59e0b;
}


.url-box .url {
    flex: 1;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    color: #4b5563;
    word-break: break-all;
    white-space: normal;
}

.active-tab {
    position: relative;
}

/* Custom JSON highlighting for Try response */
.try-response-area pre {
    padding: 0 !important;
    overflow: auto;
    scrollbar-width: none;         
    -ms-overflow-style: none;       
}

.try-response-area pre::-webkit-scrollbar {
    display: none;
}

.try-response-area code {
    background: transparent !important;
    color: #e2e8f0;
}

.try-response-area .status-line {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #1e293b;
}

.try-url-bar input#try-url-input {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 16px 10px !important;
    height: 30px !important;
}

@media screen and (max-width: 1024px) {
    .try-it-panel {
        width: 100%;
        right: -100%;
        top: 0;
        height: 100vh;
        z-index: 1001;
    }
}

@media screen and (max-width: 640px) {
    .try-url-bar {
        flex-direction: column;
        align-items: stretch !important;
        gap: 12px !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
    }

    .try-url-bar #try-method {
        width: fit-content;
    }

    .try-url-bar input#try-url-input {
        background: #f9fafb !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 8px !important;
        padding: 10 10px !important;
        height: 30px !important;
    }

    .try-url-bar .btn-send {
        width: 100%;
        justify-content: center;
        height: 30px;
    }
}

#try-response-area{
    height: 400px;
    min-height: 200px;
    max-height: 500px;
    overflow-y: auto;
}

@media screen and (max-width: 768px) {
    .url-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
        gap: 10px;
    }

    .url-box .url {
        width: 100%;
        line-height: 1.5;
    }

    .url-box .try-btn {
        width: 100%;
        margin-top: 5px;
        justify-content: center;
    }
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    gap: 20px;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #f3f4f6;
}

.pagination-item {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 24px;
    background: white;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    min-height: 100px;
}

.pagination-item:hover {
    border-color: #10b981 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08) !important;
    transform: translateY(-2px);
}

.pagination-item.prev {
    justify-content: flex-start;
}

.pagination-item.next {
    justify-content: flex-end;
    text-align: right;
}

.pagination-content {
    display: flex;
    flex-direction: column;
}

.pagination-item.prev .pagination-content {
    align-items: flex-end;
    margin-left: auto;
}

.pagination-item.next .pagination-content {
    align-items: flex-start;
    margin-right: auto;
}

.pagination-label {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 4px;
    font-weight: 500;
}

.pagination-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.pagination-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #334155;
    transition: transform 0.3s ease;
}

.pagination-item.prev .pagination-icon {
    margin-right: 15px;
}

.pagination-item.next .pagination-icon {
    margin-left: 15px;
}

.pagination-item.prev:hover .pagination-icon {
    transform: translateX(-5px);
}

.pagination-item.next:hover .pagination-icon {
    transform: translateX(5px);
}

.pagination-placeholder {
    flex: 1;
}

.try-section input{ border-width: 1px 0 0 0; }

@media (max-width: 640px) {
    .pagination-container {
        flex-direction: row;
    }
    .pagination-title {
         font-size: 10px;
    }

}