.guides-layout {
    position: relative;
    z-index: 0;
}

.guides-layout .type-header {
    z-index: 9999;
}

.guides-layout main {
    position: relative;
    z-index: 1; /* ensure below header but above background */
    margin: 0; /* override global main margin to avoid overlap with fixed header */
}
/* Response code examples (left column) */
.openapi-response-left { border: 1px solid #E5E7EB; border-radius: 8px; margin-top: 16px; background: #FFFFFF; }
.openapi-response-left-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid #F3F4F6; }
.openapi-response-left-header span { font-family: Mazzard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; font-size: 14px; font-weight: 600; color: #111827; }
.openapi-response-left-list { display: flex; flex-direction: column; }
.openapi-response-left-item { cursor: pointer; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid #F9FAFB; }
.openapi-response-left-item:hover { background: #F9FAFB; }
.openapi-response-left-row { display: flex; align-items: center; width: 100%; }
.openapi-response-left-code { font-weight: 600; font-size: 12px; color: #111827; background: #EEF2FF; border-radius: 9999px; padding: 4px 10px; }
.openapi-response-left-ctype { font-size: 12px; color: #6B7280; }
.openapi-response-left-spacer { flex: 1; }

/* Anchor highlight when jumped from response item */
.schema-tree-highlight { box-shadow: 0 0 0 3px rgba(67,89,243,0.25) inset; transition: box-shadow 0.2s ease-in-out; }

/* Response Schemas (left column) – match api-preview dark response card */
.openapi-response-schemas { border: 1px solid #334155; border-radius: 8px; margin-top: 16px; background: #0f172a; }
.openapi-response-schemas-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid #334155; }
.openapi-response-schemas-title { margin: 0; font-family: Mazzard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; font-size: 14px; font-weight: 600; color: #e5e7eb; }
.openapi-response-schemas-body { padding: 8px 12px; color: #e5e7eb; }
.openapi-response-schema-item { padding: 2px 0; }
.openapi-response-schema-header { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.openapi-response-schema-header:hover { background: #111827; }
.openapi-response-schema-arrow { transition: transform 0.18s ease-in-out; transform: rotate(90deg); color: #9ca3af; font-weight: 700; }
.openapi-response-schema-header[aria-expanded="true"] .openapi-response-schema-arrow { transform: rotate(270deg); }
.openapi-response-schema-code { font-weight: 700; font-size: 12px; color: #e5e7eb; background: #1f2937; border-radius: 9999px; padding: 3px 10px; min-width: 42px; text-align: center; }
.openapi-response-schema-ctype { font-size: 12px; color: #9ca3af; }
.openapi-response-schema-content { padding: 4px 10px 10px 28px; display: none; border-left: 1px dashed #334155; }
.openapi-response-schema-content.expanded { display: block; }

/* Status badge colors are now defined globally (see line ~1079) */

/* 204 No Content - not clickable, indicator instead of arrow */
.openapi-response-schema-indicator {
    color: #9ca3af;
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
    opacity: 0.5;
    margin-left: -3px;
}

.no-content-response .openapi-response-schema-header {
    cursor: default;
}

.no-content-response .openapi-response-schema-header:hover {
    background: transparent;
}

/* Remove separate dark overrides: base matches api-preview dark card */
/* ModernDocs Theme - Component Styles */

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-4);
    border: 1px solid transparent;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

.btn-primary {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--btn-primary-bg);
    border: 1px solid var(--btn-primary-border);
    border-radius: 8px;
    color: var(--btn-primary-color);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.25;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    height: 36px !important;
    min-width: 60px;
    cursor: pointer;
    box-sizing: border-box;
    text-decoration: none !important;
    border-bottom: 1px solid var(--btn-primary-border) !important;
    outline: none !important;
}

.btn-primary:hover {
    background: var(--btn-primary-hover-bg);
    border-color: var(--btn-primary-hover-border);
    color: var(--btn-primary-hover-color);
    transform: translateY(-1px);
    text-decoration: none !important;
    border-bottom: 1px solid var(--btn-primary-hover-border) !important;
    box-shadow: none !important;
}

.btn-secondary {
    color: var(--gray-700);
    background: var(--app-card-bg);
    border-color: var(--gray-300);
}

.btn-secondary:hover {
    background-color: var(--gray-50);
    color: var(--app-card-title-color);
    text-decoration: none;
}

.btn-ghost {
    color: var(--app-card-subtitle-color);
    background-color: transparent;
    border-color: transparent;
}

.btn-ghost:hover {
    color: var(--gray-700);
    background-color: var(--gray-100);
    text-decoration: none;
}

.btn-sm {
    padding: var(--space-1) var(--space-3);
    font-size: 0.75rem;
}

.btn-lg {
    padding: var(--space-3) var(--space-6);
    font-size: 1rem;
}


/* CTA button specific styles */
.cta-section .btn {
    position: relative;
    z-index: 10;
    display: inline-flex;
    width: auto;
    min-width: auto;
    max-width: none;
}

.cta-section .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    backdrop-filter: blur(8px);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-section .btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.2);
}


/* RTL button adjustments */
[dir="rtl"] .btn {
    flex-direction: row-reverse;
}

[dir="rtl"] .btn svg {
    margin-left: 0;
    margin-right: 0.5rem;
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
    background: var(--app-card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--app-card-border);
    overflow: hidden;
}

.card-hover {
    transition: var(--transition);
}

.card-hover:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-0.25rem);
}

.card-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--gray-200);
}

.card-body {
    padding: var(--space-6);
}

.card-footer {
    padding: var(--space-6);
    border-top: 1px solid var(--gray-200);
    background-color: var(--gray-50);
}

/* ==========================================================================
   APP CARDS - Mintlify inspired
   ========================================================================== */

.app-card {
    position: relative;
    background: var(--app-card-bg);
    border-radius: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid var(--app-card-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 4px; /* Više uvučeno sa leve strane */
    right: 4px; /* Više uvučeno sa desne strane */
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--accent-500));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 1rem 1rem 0 0; /* Zaobljeni uglovi samo na vrhu */
}

.app-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-0.5rem);
    border-color: var(--primary-200);
}

.app-card:hover::before {
    opacity: 1;
}

.app-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--primary-100), var(--accent-100));
    border-radius: 0.75rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.app-card-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-200), var(--accent-200));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-card:hover .app-card-icon::before {
    opacity: 1;
}

.app-card-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--app-card-title-color);
    letter-spacing: -0.025em;
}

.app-card-description {
    color: var(--app-card-description-color);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-top: var(--space-2);
}

.app-card-arrow {
    display: flex;
    align-items: center;
    color: var(--primary-600);
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: var(--space-4);
    transition: all 0.3s ease;
}

.app-card-arrow svg {
    margin-left: var(--space-2);
    width: 1rem;
    height: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-card:hover .app-card-arrow {
    color: var(--primary-700);
}

.app-card:hover .app-card-arrow svg {
    transform: translateX(0.5rem);
}

/* Modern App Cards - Mintlify inspired */
.app-card-modern {
    background: var(--app-card-bg);
    border: 1px solid var(--app-card-border);
    border-radius: 1.25rem;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 340px;
}

/* Gradient accent line at top of card */
.app-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-500), var(--accent-500));
    border-radius: 0 0 3px 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-card-modern:hover::before {
    opacity: 1;
}

.app-card-modern:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15), 0 8px 16px -8px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-300);
}

.app-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.app-card-icon-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(145deg, #f8fafc, #e2e8f0);
    border-radius: 1rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.app-card-icon-modern img {
    width: 2.5rem;
    height: 2.5rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.app-card-icon-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, var(--primary-100), var(--accent-100));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-card-modern:hover .app-card-icon-modern::before {
    opacity: 1;
}

.app-card-modern:hover .app-card-icon-modern img {
    transform: scale(1.15);
}

.app-card-title-section {
    flex: 1;
}

.app-card-title-modern {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--app-card-title-color);
    margin-bottom: 0.375rem;
    letter-spacing: -0.025em;
    line-height: 1.3;
}


.app-card-subtitle {
    font-size: 0.875rem;
    color: var(--app-card-subtitle-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


.app-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.app-card-description-modern {
    color: var(--app-card-description-color);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}


.app-card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: auto;
    padding-top: 1.25rem;
    width: 100%;
    box-sizing: border-box;
    align-items: stretch;
    justify-content: flex-start;
}

.app-card-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--gray-50);
    color: var(--gray-700);
    text-decoration: none;
    border-radius: 0.625rem;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--app-card-border);
    justify-content: center;
    box-sizing: border-box;
    white-space: nowrap;
    flex: 0 0 auto;
    width: auto;
}

.app-card-link:hover {
    background: var(--primary-50);
    color: var(--primary-700);
    border-color: var(--primary-300);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.app-card-link svg {
    width: 0.875rem;
    height: 0.875rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.app-card-link:hover svg {
    transform: scale(1.1);
}

/* Icon colors for app card links */
.app-card-link svg {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Documentation link - blue */
.app-card-link[href*="/guides/"] svg,
.app-card-link[href*="/documentation"] svg {
    color: var(--icon-blue);
}

.app-card-link[href*="/guides/"]:hover svg,
.app-card-link[href*="/documentation"]:hover svg {
    color: var(--icon-blue-hover);
}

/* API Reference link - green */
.app-card-link[href*="/api/"] svg {
    color: var(--icon-green);
}

.app-card-link[href*="/api/"]:hover svg {
    color: var(--icon-green-hover);
}

/* Changelog link - purple */
.app-card-link[href*="/changelog"] svg {
    color: var(--icon-purple);
}

.app-card-link[href*="/changelog"]:hover svg {
    color: var(--icon-purple-hover);
}

/* Responsive button adjustments */
@media (min-width: 1024px) {
    .app-card-links {
        gap: 0.5rem;
        justify-content: flex-start; /* Linkovi se poravnavaju levo */
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .app-card-links {
        gap: 0.375rem;
    }
    
    .app-card-link {
        font-size: 0.7rem;
        padding: 0.375rem 0.5rem;
    }
}

@media (max-width: 767px) {
    .app-card-links {
        gap: 0.375rem;
    }
    
    .app-card-link {
        font-size: 0.7rem;
        padding: 0.375rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .app-card-links {
        gap: 0.375rem;
        justify-content: center; /* Na mobilnom centriramo linkove */
    }
    
    .app-card-link {
        font-size: 0.7rem;
        padding: 0.375rem 0.5rem;
        flex: 0 1 auto; /* Omogućava skupljanje na vrlo malim ekranima */
        max-width: calc(50% - 0.1875rem); /* Maksimalno 2 po redu na mobilnom */
    }
}

@media (max-width: 360px) {
    .app-card-link {
        flex: 1 1 100%; /* Na vrlo malim ekranima 1 po redu */
        max-width: 100%;
        justify-content: center;
    }
}

/* App cards background for list layouts - transparent to show gradient */
.header-list .app-card-modern {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px) !important;
}

/* RTL adjustments for app cards */
[dir="rtl"] .app-card-modern {
    text-align: right;
}

[dir="rtl"] .app-card-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .app-card-icon-modern {
    margin-left: 1rem;
    margin-right: 0;
}

[dir="rtl"] .app-card-links {
    justify-content: flex-start;
}

[dir="rtl"] .app-card-link {
    flex-direction: row-reverse;
}

[dir="rtl"] .app-card-link svg {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* ==========================================================================
   LANGUAGE DROPDOWN
   ========================================================================== */

.language-dropdown {
    position: relative;
    display: inline-block;
    z-index: 99999;
}

.language-dropdown-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--theme-toggle-bg);
    border: 1px solid var(--theme-toggle-border);
    border-radius: 8px;
    color: var(--theme-toggle-color);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.25;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    height: 36px !important;
    min-width: 60px;
    max-width: 80px;
    cursor: pointer;
    box-sizing: border-box;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    outline: none !important;
}

.language-dropdown-button:hover {
    background: var(--theme-toggle-hover-bg);
    border-color: var(--theme-toggle-hover-border);
    color: var(--theme-toggle-hover-color);
    transform: translateY(-1px);
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: none !important;
}

.language-dropdown-button:focus {
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.language-dropdown-button:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.5) !important;
    outline-offset: 2px !important;
}

/* Dodatni override za sve elemente u dropdown dugmetu */
.language-dropdown-button span,
.language-dropdown-button .flag,
.language-dropdown-button .language-text,
.language-dropdown-button svg {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.language-dropdown-button:hover span,
.language-dropdown-button:hover .flag,
.language-dropdown-button:hover .language-text,
.language-dropdown-button:hover svg {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.language-dropdown-button:active {
    transform: translateY(0);
}

.dropdown-arrow {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.language-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.language-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background: var(--language-dropdown-menu-bg);
    border: 1px solid var(--language-dropdown-menu-border);
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.95);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100000;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.language-dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.language-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--language-dropdown-item-color);
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid var(--language-dropdown-item-border);
}

.language-dropdown-item:last-child {
    border-bottom: none;
}

.language-dropdown-item:hover {
    background: var(--language-dropdown-item-hover-bg);
    color: var(--language-dropdown-item-hover-color);
    text-decoration: none !important;
    border-bottom: 1px solid var(--language-dropdown-item-border);
}

.language-dropdown-item:active {
    background: var(--language-dropdown-item-hover-bg);
}

/* Dodatni override za sve elemente u dropdown itemima */
.language-dropdown-item,
.language-dropdown-item *,
.language-dropdown-item span,
.language-dropdown-item .flag,
.language-dropdown-item .language-text {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.language-dropdown-item:hover,
.language-dropdown-item:hover *,
.language-dropdown-item:hover span,
.language-dropdown-item:hover .flag,
.language-dropdown-item:hover .language-text {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.language-dropdown-item:active,
.language-dropdown-item:active *,
.language-dropdown-item:active span,
.language-dropdown-item:active .flag,
.language-dropdown-item:active .language-text {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}


.flag {
    font-size: 16px;
    line-height: 1;
    display: inline-block;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.language-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
}

/* ==========================================================================
   THEME SWITCHER
   ========================================================================== */

.theme-switcher {
    position: relative;
    display: inline-block;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--theme-toggle-bg);
    border: 1px solid var(--theme-toggle-border);
    border-radius: 8px;
    color: var(--theme-toggle-color);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.25;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    height: 36px !important;
    min-width: 36px;
    cursor: pointer;
    box-sizing: border-box;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    outline: none !important;
}

.theme-toggle:hover {
    background: var(--theme-toggle-hover-bg);
    border-color: var(--theme-toggle-hover-border);
    color: var(--theme-toggle-hover-color);
    transform: translateY(-1px);
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: none !important;
}

.theme-toggle:focus {
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.theme-toggle:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.5) !important;
    outline-offset: 2px !important;
}

.theme-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}


/* ==========================================================================
   ALERTS
   ========================================================================== */

.alert {
    padding: var(--space-4);
    border-radius: var(--radius-md);
    border: 1px solid;
}

.alert-info {
    background-color: var(--primary-100);
    border-color: var(--primary-200);
    color: var(--primary-800);
}

.alert-success {
    background-color: #dcfce7;
    border-color: #bbf7d0;
    color: #166534;
}

.alert-warning {
    background-color: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

.alert-error {
    background-color: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

/* ==========================================================================
   CODE BLOCKS
   ========================================================================== */

.code-block {
    background-color: var(--gray-900);
    color: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    overflow-x: auto;
}

.code-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    background-color: var(--gray-800);
    color: var(--gray-300);
    font-size: 0.875rem;
    border-bottom: 1px solid var(--gray-700);
}

.code-block-content {
    padding: var(--space-4);
}

/* ==========================================================================
   TABLES
   ========================================================================== */

.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background-color: var(--gray-50);
}

.table th {
    padding: var(--space-3) var(--space-6);
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--app-card-subtitle-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table td {
    padding: var(--space-4) var(--space-6);
    white-space: nowrap;
    font-size: 0.875rem;
    color: var(--app-card-title-color);
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background-color: var(--gray-50);
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.form-input {
    display: block;
    width: 100%;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    font-size: 0.875rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: var(--gray-400);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--space-1);
}

.form-error {
    font-size: 0.875rem;
    color: #dc2626;
    margin-top: var(--space-1);
}

/* ==========================================================================
   BADGES
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-2);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-primary {
    background-color: var(--primary-100);
    color: var(--primary-800);
}

.badge-success {
    background-color: #dcfce7;
    color: #166534;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

/* ==========================================================================
   HTTP METHOD BADGES - Single Source of Truth  
   Used in: main page header, sidebar navigation, API cards, etc.
   ========================================================================== */

/* Generic base class */
.method-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    min-width: 50px;
    text-align: center;
}

/* HTTP method badge (for positioned badges in sidebar) */
.http-method-badge {
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    letter-spacing: 0.025em;
}

/* Color classes - apply to any element */
.method-get { background: #16a34a !important; color: white !important; }     /* Green */
.method-post { background: #2563eb !important; color: white !important; }    /* Blue */
.method-put { background: #7c3aed !important; color: white !important; }     /* Purple */
.method-patch { background: #9333ea !important; color: white !important; }   /* Purple/Violet */
.method-delete { background: #dc2626 !important; color: white !important; }  /* Red */
.method-head { background: #0ea5e9 !important; color: white !important; }    /* Cyan */
.method-options { background: #64748b !important; color: white !important; } /* Gray */

/* ==========================================================================
   HTTP STATUS CODE BADGES - Single Source of Truth
   Used in: response schemas, API sidebar, status badges, etc.
   ========================================================================== */

/* Generic status badge base (optional) */
.status-badge {
    display: inline-block;
    font-weight: 700;
    font-size: 12px;
    border-radius: 9999px;
    padding: 3px 10px;
    min-width: 42px;
    text-align: center;
}

/* Status code colors - Apply these classes to any element */
.status-2xx { background: #ECFDF5 !important; color: #065F46 !important; } /* Green */
.status-3xx { background: #EFF6FF !important; color: #1E40AF !important; } /* Blue */
.status-4xx { background: #FEF2F2 !important; color: #991B1B !important; } /* Red */
.status-5xx { background: #FFFBEB !important; color: #92400E !important; } /* Yellow */

.badge-error {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-gray {
    background-color: var(--gray-100);
    color: var(--gray-800);
}

/* ==========================================================================
   LOADING STATES
   ========================================================================== */

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.loading-spinner {
    animation: spin 1s linear infinite;
    border-radius: 50%;
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-bottom-color: var(--primary-600);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

/* ==========================================================================
   TOOLTIPS
   ========================================================================== */

.tooltip {
    position: absolute;
    z-index: 50;
    padding: var(--space-2) var(--space-1);
    font-size: 0.75rem;
    color: var(--white);
    background-color: var(--gray-900);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   MODALS
   ========================================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: var(--app-card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 28rem;
    width: 100%;
    margin: var(--space-4);
}

/* ==========================================================================
   MOBILE MENU
   ========================================================================== */

.mobile-menu-btn {
    padding: var(--space-2);
    border-radius: var(--radius-md);
    color: var(--gray-400);
    background-color: transparent;
    border: none;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    color: var(--app-card-subtitle-color);
    background-color: var(--gray-100);
}

/* Mobile menu button */
.lg\:hidden {
    display: block;
}

@media (min-width: 1024px) {
    .lg\:hidden {
        display: none;
    }
}

/* ==========================================================================
   SIDEBAR - Mintlify inspired
   ========================================================================== */

.sidebar {
    display: none;
    flex-direction: column;
    width: 18rem;
    position: fixed;
    top: 0;
    bottom: 0;
    padding-top: 4rem;
    padding-bottom: 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
    border-right: none; /* Removed vertical border */
    backdrop-filter: blur(10px);
    box-shadow: none; /* Removed shadow */
}

.sidebar-mobile {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
}

/* Content area */
.content-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Mintlify-inspired Sidebar Styles */
/* Sticky type header tabs (Mintlify-like) */
.type-header {
    position: fixed;
    top: 0;
    left: -5000px;
    right: -5000px;
    width: auto;
    padding-left: 5000px;
    padding-right: 5000px;
    z-index: 9999; /* ensure above main and toc */
    background: var(--body-bg); /* match page background */
    border-bottom: 1px solid var(--gray-200);
    padding-inline-start: 0;
    padding-inline-end: 0;
}

.type-tabs { display: flex; align-items: center; width: 100%; position: relative; z-index: 1; }
.type-tabs-left { display: flex; gap: 1rem; align-items: center; }
.type-tabs-right { margin-inline-start: auto; display: flex; align-items: center; gap: 1rem; }

/* RTL support */
:dir(rtl) .type-header { left: 0; right: 0; }
:dir(rtl) .type-tabs-right { margin-inline-start: 0; margin-inline-end: auto; }

.type-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.25rem 0.5rem; /* do vrha i minimalan unutrašnji padding */
    text-decoration: none;
    color: var(--app-card-title-color);
    position: relative;
    outline: none; /* Remove blue focus box */
    white-space: nowrap; /* Prevent text wrapping */
}
.type-tab:hover { text-decoration: none; }

.type-tab .type-tab-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.type-tab .type-tab-icon svg {
    width: 16px;
    height: 16px;
}

/* Colorful tab icons - User Guides (Blue) */
.type-tab-user .type-tab-icon {
    color: #3b82f6;
}

/* Developer Guides (Purple) */
.type-tab-developer .type-tab-icon {
    color: #8b5cf6;
}

/* API Reference (Green) */
.type-tab-api .type-tab-icon {
    color: #10b981;
}

/* Changelog (Orange/Amber) */
.type-tab-changelog .type-tab-icon {
    color: #f59e0b;
}

/* Dark mode colorful icons */
[data-theme="dark"] .type-tab-user .type-tab-icon {
    color: #60a5fa;
}

[data-theme="dark"] .type-tab-developer .type-tab-icon {
    color: #a78bfa;
}

[data-theme="dark"] .type-tab-api .type-tab-icon {
    color: #34d399;
}

[data-theme="dark"] .type-tab-changelog .type-tab-icon {
    color: #fbbf24;
}

.type-tab:hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(-0.5rem - 1px); /* Align with header border (account for padding + border) */
    height: 2px;
    background: var(--gray-300);
}

/* Ne menjaj boju teksta na hover */
.type-tab:hover { color: var(--app-card-title-color); }

.type-tab.active {
    color: var(--app-card-title-color);
}

.type-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(-0.5rem - 1px); /* Align with header border (account for padding + border) */
    height: 2px;
    background: var(--primary-600);
}

[data-theme="dark"] .type-header { border-bottom-color: var(--gray-700); }
[data-theme="dark"] .type-tab:hover::after { background: var(--gray-600); }
[data-theme="dark"] .type-tab.active::after { background: var(--primary-400); }

.sidebar-mintlify,
.sidebar-user,
.sidebar-developer {
    position: fixed;
    top: 0;
    left: 0;
    width: 18.625rem; /* 298px - documentation sidebar width */
    height: 100vh;
    background: transparent;
    border-right: none; /* Removed vertical border */
    z-index: 40;
    transition: transform 0.3s ease;
}

.sidebar-mintlify-content,
.sidebar-user-content,
.sidebar-developer-content {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Logo */
.sidebar-logo {
    padding: 0 1.5rem 1rem;
    margin-bottom: 1rem;
}

.sidebar-logo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-logo-link:hover .sidebar-logo-img {
    transform: scale(1.1);
}

.sidebar-logo-link:hover .sidebar-logo-text {
    color: var(--primary-600);
}

.sidebar-logo-img {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.sidebar-logo-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--app-card-title-color);
    transition: color 0.3s ease;
}

.sidebar-logo a {
    text-decoration: none;
}

.sidebar-logo img {
    flex-shrink: 0;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: contain;
}

/* Theme switcher in sidebar */
.sidebar-logo .theme-switcher {
    position: relative;
    z-index: 10;
}

.sidebar-logo .theme-toggle {
    position: relative;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
}

.sidebar-logo .theme-toggle:hover {
    pointer-events: auto;
}

.sidebar-logo .theme-toggle:active {
    pointer-events: auto;
}

.sidebar-logo .theme-toggle:focus {
    pointer-events: auto;
}

/* Search */
.sidebar-search {
    padding: 0 1.5rem 1rem;
    margin-bottom: 1rem;
}

.search-container {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: var(--gray-400);
    pointer-events: none;
}

.search-input-mintlify,
.search-input-user,
.search-input-developer {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: var(--white);
    transition: all 0.2s ease;
}

.search-input-mintlify:focus,
.search-input-user:focus,
.search-input-developer:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.search-input-mintlify::placeholder,
.search-input-user::placeholder,
.search-input-developer::placeholder {
    color: var(--gray-400);
}

/* Type Selector - Mintlify Style */
.sidebar-type-selector {
    padding: 0 1.5rem 1rem;
    margin-bottom: 1rem;
}

.type-selector-dropdown {
    position: relative;
    width: 100%;
}

.type-selector-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    color: var(--app-card-title-color);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    min-height: 2.5rem;
}

.type-selector-button-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.type-selector-button:hover {
    border-color: var(--gray-400);
    background: var(--gray-50);
}

.type-selector-button:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.type-selector-text {
    flex: 1;
    text-align: left;
}

.type-selector-arrow {
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.type-selector-dropdown.open .type-selector-arrow {
    transform: rotate(180deg);
}

.type-selector-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    margin-top: 0.25rem;
}

.type-selector-dropdown.open .type-selector-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.type-selector-item {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid var(--gray-100);
    min-height: 2.5rem;
    display: flex;
    align-items: center;
}

.type-selector-item:last-child {
    border-bottom: none;
}

.type-selector-item:hover {
    background: var(--gray-50);
}

.type-selector-item:hover .documentation-icon {
    background: var(--primary-200);
    color: var(--primary-700);
}

.type-selector-item:hover .api-icon {
    background: var(--accent-200);
    color: var(--accent-700);
}

.type-selector-item:hover .changelog-icon {
    background: var(--icon-green-hover);
    color: var(--white);
}

.type-selector-item.selected {
    background: var(--primary-50);
    color: var(--primary-700);
}

.type-selector-item span {
    font-size: 0.875rem;
    color: inherit;
}

/* Type selector item content */
.type-selector-item-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.type-selector-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.375rem;
    flex-shrink: 0;
}

.type-selector-text-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    flex: 1;
}

.type-selector-title {
    font-size: 0.8125rem;
    font-weight: 500;
    color: inherit;
    line-height: 1.25;
}

.type-selector-description {
    font-size: 0.6875rem;
    color: var(--app-card-subtitle-color);
    line-height: 1.25;
}

/* Icon colors */
.documentation-icon {
    background: var(--primary-100);
    color: var(--primary-600);
}

.api-icon {
    background: var(--accent-100);
    color: var(--accent-600);
}

.changelog-icon {
    background: var(--icon-green);
    color: var(--white);
}

/* Icon colors - now using variables */
.documentation-icon {
    background: var(--primary-100);
    color: var(--primary-600);
}

.api-icon {
    background: var(--accent-100);
    color: var(--accent-600);
}

.changelog-icon {
    background: var(--icon-green);
    color: var(--white);
}

.type-selector-description {
    color: var(--app-card-subtitle-color);
}

.type-selector-item:hover .documentation-icon {
    background: var(--primary-200);
    color: var(--primary-700);
}

.type-selector-item:hover .api-icon {
    background: var(--accent-200);
    color: var(--accent-700);
}

.type-selector-item:hover .changelog-icon {
    background: var(--icon-green-hover);
    color: var(--white);
}

/* Navigation - now using variables */
.nav-section-header {
    color: var(--sidebar-nav-section-title-color);
}

.nav-section-header:hover {
    background: var(--sidebar-nav-section-header-hover-bg);
    color: var(--sidebar-nav-item-hover-color);
}

.nav-section-title {
    color: var(--sidebar-nav-section-title-color);
}

.nav-section-icon {
    color: var(--gray-400);
}

.nav-arrow {
    color: var(--gray-400);
}

.nav-link {
    color: var(--sidebar-nav-item-color);
}

.nav-link:hover {
    color: var(--sidebar-nav-item-hover-color);
    background: var(--sidebar-nav-item-hover-bg);
    border-left-color: var(--gray-200);
}

.nav-link.active {
    color: var(--sidebar-nav-item-active-color);
    background: var(--sidebar-nav-item-active-bg);
    border-left-color: var(--sidebar-nav-item-active-color);
}

.nav-link.main-page {
    border-bottom-color: var(--gray-200);
    background: var(--gray-50);
    color: var(--app-card-title-color);
}

/* Navigation - Mintlify Style */
.sidebar-mintlify .sidebar-navigation,
.sidebar-user .sidebar-navigation,
.sidebar-developer .sidebar-navigation {
    flex: 1;
    padding: 0;
    overflow-y: auto;
    flex-shrink: 1;
}

.nav-section {
    margin-bottom: 0;
}

.nav-section:not(:last-child) {
    margin-bottom: 0.5rem;
}

.nav-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.375rem 0.5rem 0.375rem 1rem; /* reduce right padding for more arrow space */
    cursor: pointer;
    border-radius: 0;
    transition: all 0.15s ease;
    user-select: none;
    margin: 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--app-card-subtitle-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    height: 24px;
}

.nav-section-title-container {
    display: flex;
    align-items: center;
    height: 100%;
    line-height: 1;
}

.nav-section-icon {
    width: 1rem;
    height: 1rem;
    color: var(--gray-400);
    flex-shrink: 0;
}

.nav-section-header:hover {
    background: var(--gray-50);
    color: var(--gray-700);
}

.nav-section-title {
    font-size: 0.75rem;
    font-weight: 500;
    color: inherit;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-arrow {
    width: 1rem;
    height: 1rem;
    color: var(--gray-400);
    transition: transform 0.15s ease;
}

.nav-section-content {
    display: none;
    padding: 0;
    margin: 0;
    margin-left: 2.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.75rem;
}

.nav-section-content.expanded {
    display: block;
}

/* Mintlify-style nav list */
.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0;
    padding: 0;
    margin-bottom: 0.25rem;
}

.nav-link {
    display: block;
    padding: 0.25rem 2.5rem 0.25rem;
    margin: 0;
    font-size: 0.875rem;
    color: var(--app-card-description-color);
    text-decoration: none;
    border-radius: 0;
    transition: all 0.15s ease;
    position: relative;
    line-height: 1.4;
    border-left: 2px solid transparent;
    height: auto;
    min-height: 24px;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: var(--app-card-title-color);
    background: var(--gray-50);
    text-decoration: none;
    border-left-color: var(--gray-200);
}

.nav-link.active {
    color: var(--primary-600);
    background: var(--primary-50);
    font-weight: 500;
    border-left-color: transparent; /* liniju crtamo pseudo-elementom da možemo da je poravnamo */
}

/* Aktivna vertikalna linija poravnata sa početkom ikonice roditeljske sekcije */
.nav-link.active::before {
    content: "";
    position: absolute;
    left: var(--active-line-left, 1rem);
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-600);
    border-radius: 1px;
}

.nav-link.main-page {
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
    height: auto;
    min-height: 32px;
    font-size: 0.875rem;
    color: var(--app-card-title-color);
    text-transform: none;
    letter-spacing: normal;
    display: flex;
    align-items: center;
    border-radius: 0.375rem;
}

/* Mobile sidebar */
.mobile-sidebar-mintlify,
.mobile-sidebar-user,
.mobile-sidebar-developer {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
}

.mobile-sidebar-mintlify.hidden,
.mobile-sidebar-user.hidden,
.mobile-sidebar-developer.hidden {
    display: none;
}

.mobile-sidebar-mintlify-content,
.mobile-sidebar-user-content,
.mobile-sidebar-developer-content {
    width: 18rem;
    background: var(--white);
    display: flex;
    flex-direction: column;
}

.mobile-sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
}

.mobile-close-btn {
    padding: 0.5rem;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 0.375rem;
    color: var(--app-card-subtitle-color);
    transition: all 0.2s ease;
}

.mobile-close-btn:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.mobile-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

/* Sidebar mintlify - now using variables */
.sidebar-mintlify,
.sidebar-user,
.sidebar-developer {
    background: var(--sidebar-mintlify-bg);
    backdrop-filter: none;
    border-right: none; /* Removed vertical border */
}

.sidebar-logo span {
    color: var(--sidebar-logo-text-color);
}

.sidebar-logo a:hover span {
    color: var(--sidebar-logo-text-hover-color);
}

.sidebar-logo-text {
    color: var(--sidebar-logo-text-color);
}

.sidebar-logo-link:hover .sidebar-logo-text {
    color: var(--sidebar-logo-text-hover-color);
}

.search-input-mintlify,
.search-input-user,
.search-input-developer {
    background: var(--sidebar-search-input-bg);
    border-color: var(--sidebar-search-input-border);
    color: var(--sidebar-search-input-color);
}

.type-selector {
    background: var(--sidebar-type-selector-bg);
    border-color: var(--sidebar-type-selector-border);
    color: var(--sidebar-type-selector-color);
}

.nav-section-title {
    color: var(--sidebar-nav-section-title-color);
}

.nav-section-header:hover {
    background: var(--sidebar-nav-section-header-hover-bg);
}

.nav-item-mintlify {
    color: var(--sidebar-nav-item-color);
}

.nav-item-mintlify:hover {
    color: var(--sidebar-nav-item-hover-color);
    background: var(--sidebar-nav-item-hover-bg);
}

.nav-item-mintlify.active {
    color: var(--sidebar-nav-item-active-color);
    background: var(--sidebar-nav-item-active-bg);
}

/* Mobile sidebar - now using variables */
.mobile-sidebar-mintlify-content,
.mobile-sidebar-user-content,
.mobile-sidebar-developer-content {
    background: var(--sidebar-mobile-bg);
}

.mobile-sidebar-header {
    border-bottom-color: var(--sidebar-mobile-header-border);
}

.mobile-close-btn {
    color: var(--sidebar-mobile-close-color);
}

.mobile-close-btn:hover {
    background: var(--sidebar-mobile-close-hover-bg);
    color: var(--sidebar-mobile-close-hover-color);
}

/* Type selector - now using variables */
.type-selector-button {
    background: var(--sidebar-type-selector-bg);
    border-color: var(--sidebar-type-selector-border);
    color: var(--sidebar-type-selector-color);
}

.type-selector-button:hover {
    background: var(--sidebar-nav-item-hover-bg);
    border-color: var(--gray-400);
}

.type-selector-button:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.type-selector-menu {
    background: var(--sidebar-type-selector-bg);
    border-color: var(--sidebar-type-selector-border);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.type-selector-item {
    border-bottom-color: var(--gray-100);
    color: var(--sidebar-nav-item-color);
}

.type-selector-item:hover {
    background: var(--sidebar-nav-item-hover-bg);
}

.type-selector-item.selected {
    background: var(--primary-50);
    color: var(--primary-700);
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar-mintlify {
        transform: translateX(-100%);
    }
    
    .sidebar-mintlify.open {
        transform: translateX(0);
    }
    
    /* Hide TOC on mobile */
    .w-64 {
        display: none;
    }
    
    /* Adjust main content margin */
    .ml-72 {
        margin-left: 0;
    }
}

@media (min-width: 1025px) {
    .w-64 {
        display: block;
    }
}

/* Fixed sidebar offset for main content - NOW HANDLED IN RESPONSIVE.CSS with padding approach */
/* .ml-72 {
    margin-left: 18.625rem;
} */


/* Sticky Sidebar Layout */
.sidebar-mintlify-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: relative;
}

.sidebar-header {
    flex-shrink: 0;
    padding-top: 1rem;
}

.sidebar-scrollable {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 0.5rem; /* was 0 1rem; give ~8px extra on right */
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--sidebar-scrollbar-thumb) var(--sidebar-scrollbar-track);
}

.sidebar-scrollable::-webkit-scrollbar {
    width: 6px;
}

.sidebar-scrollable::-webkit-scrollbar-track {
    background: var(--sidebar-scrollbar-track);
    border-radius: 3px;
}

.sidebar-scrollable::-webkit-scrollbar-thumb {
    background: var(--sidebar-scrollbar-thumb);
    border-radius: 3px;
}

.sidebar-scrollable::-webkit-scrollbar-thumb:hover {
    background: var(--sidebar-scrollbar-thumb-hover);
}

/* ========================================================================== 
   GLOBAL PAGE SCROLLBAR (thin + auto-hide on idle)
   ========================================================================== */
html, body {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(100,116,139,0.25) transparent; /* light theme idle */
}

html.is-scrolling, body.is-scrolling {
    scrollbar-color: rgba(100,116,139,0.7) transparent; /* light theme while scrolling */
}

/* WebKit */
html::-webkit-scrollbar, body::-webkit-scrollbar {
    width: 6px; /* thicker */
    height: 6px;
}

html::-webkit-scrollbar-track, body::-webkit-scrollbar-track {
    background: transparent;
}

html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb {
    background-color: rgba(100,116,139,0.25); /* light theme idle */
    border-radius: 6px;
}

html.is-scrolling::-webkit-scrollbar-thumb, body.is-scrolling::-webkit-scrollbar-thumb {
    background-color: rgba(100,116,139,0.7); /* light theme while scrolling */
}

/* Dark theme scrollbar colors */
[data-theme="dark"] html, [data-theme="dark"] body {
    scrollbar-color: rgba(203,213,225,0.35) transparent; /* slate-200 idle */
}

[data-theme="dark"] html.is-scrolling, [data-theme="dark"] body.is-scrolling {
    scrollbar-color: rgba(203,213,225,0.8) transparent; /* slate-200 vivid */
}

[data-theme="dark"] html::-webkit-scrollbar-thumb, [data-theme="dark"] body::-webkit-scrollbar-thumb {
    background-color: rgba(203,213,225,0.35);
}

[data-theme="dark"] html.is-scrolling::-webkit-scrollbar-thumb, [data-theme="dark"] body.is-scrolling::-webkit-scrollbar-thumb {
    background-color: rgba(203,213,225,0.8);
}


/* Responsive Design for Sticky Sidebar */
@media (max-width: 768px) {
    .sidebar-mintlify {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar-mintlify.open {
        transform: translateX(0);
    }
    
    .mobile-sidebar-mintlify {
        display: block;
    }
    
    .mobile-sidebar-mintlify.hidden {
        display: none;
    }
    
    .sidebar-mintlify-content {
        height: 100vh;
    }
    
    .sidebar-header {
        padding: 0.75rem;
    }
    
    .sidebar-scrollable {
        padding: 0 0.75rem;
    }
    
}

/* Sidebar border for list layouts */
.sidebar.sidebar-list {
    border-right: 1px solid var(--gray-200) !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Responsive utilities */
@media (min-width: 1024px) {
    .sidebar {
        display: flex;
    }
    
    .content-main {
        padding-left: 16rem;
    }
}

@media (max-width: 640px) {
    .app-card {
        padding: var(--space-6);
    }
    
    .feature-icon {
        width: 3rem;
        height: 3rem;
    }
}

/* ==========================================================================
   HERO SECTIONS - Mintlify inspired
   ========================================================================== */

.hero-gradient {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--accent-50) 50%, #f8fafc 100%);
    position: relative;
    overflow: visible; /* Allow dropdown to be visible */
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, var(--primary-100) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, var(--accent-100) 0%, transparent 50%);
    opacity: 0.3;
    pointer-events: none; /* Ne utiče na interakcije */
    z-index: -1; /* Iza svih elemenata */
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--app-card-title-color);
    margin-bottom: var(--space-6);
    line-height: 1.1;
    letter-spacing: -0.025em;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.375rem;
    color: var(--app-card-description-color);
    margin-bottom: var(--space-8);
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Logo styles */
.logo-img {
    opacity: 1 !important;
    filter: none !important;
    background: none !important;
    position: relative;
    z-index: 10; /* Ispred hero overlay */
}

/* Header elements - ispred hero overlay */
header {
    position: relative;
    z-index: 10;
}

header * {
    position: relative;
    z-index: 10;
}

/* ==========================================================================
   FEATURE SECTIONS - Mintlify inspired
   ========================================================================== */

.feature-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-icon:hover::before {
    opacity: 1;
}

.feature-icon-blue {
    background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
    box-shadow: 0 4px 14px 0 rgba(14, 165, 233, 0.2);
}

.feature-icon-green {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    box-shadow: 0 4px 14px 0 rgba(34, 197, 94, 0.2);
}

.feature-icon-purple {
    background: linear-gradient(135deg, var(--accent-100), var(--accent-200));
    box-shadow: 0 4px 14px 0 rgba(217, 70, 239, 0.2);
}

/* Feature icons - now using variables */
.feature-icon-blue {
    background: var(--feature-icon-blue-bg);
    box-shadow: var(--feature-icon-blue-shadow);
}

.feature-icon-green {
    background: var(--feature-icon-green-bg);
    box-shadow: var(--feature-icon-green-shadow);
}

.feature-icon-purple {
    background: var(--feature-icon-purple-bg);
    box-shadow: var(--feature-icon-purple-shadow);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.features-grid > div {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    text-align: left;
    padding: var(--space-4);
    background: var(--white);
    border-radius: 1rem;
    border: 1px solid var(--app-card-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.features-grid > div:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-200);
}

/* Features Grid - now using variables */
.features-grid > div {
    background: var(--feature-grid-item-bg);
    border: 1px solid var(--feature-grid-item-border);
}

.features-grid > div:hover {
    box-shadow: var(--feature-grid-item-hover-shadow);
    border-color: var(--primary-200);
}

.features-grid .feature-icon {
    width: 3rem;
    height: 3rem;
    margin: 0;
    flex-shrink: 0;
}

.features-grid h3 {
    margin: 0 0 var(--space-2) 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--feature-grid-title-color);
}

.features-grid p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--feature-grid-text-color);
}

/* RTL adjustments for features */
[dir="rtl"] .features-grid > div {
    text-align: right;
}

[dir="rtl"] .feature-icon {
    margin-left: 1rem;
    margin-right: 0;
}

/* ==========================================================================
   CTA SECTIONS - Mintlify inspired
   ========================================================================== */

.cta-section {
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 50%, var(--accent-600) 100%);
    position: relative;
    overflow: hidden;
    margin-top: var(--space-16);
    margin-bottom: 0;
}

/* CTA section - now using variables */
.cta-section {
    background: var(--cta-bg);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--cta-title-color);
    margin-bottom: var(--space-6);
    letter-spacing: -0.025em;
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-subtitle {
    font-size: 1.375rem;
    color: var(--cta-subtitle-color);
    margin-bottom: var(--space-10);
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* RTL adjustments for CTA */
[dir="rtl"] .cta-section {
    text-align: center;
}

/* ==========================================================================
   FOOTER - Modern design
   ========================================================================== */

.footer-modern {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--accent-50) 50%, var(--gray-50) 100%);
    border-top: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

/* Footer - now using variables */
.footer-modern {
    background: var(--footer-bg);
    border-top: 1px solid var(--footer-border);
    min-height: 40px;
    display: flex;
    align-items: center;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.footer-modern .container {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-copyright {
    flex-shrink: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    flex-shrink: 0;
}

.footer-link {
    color: var(--footer-link-color);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.footer-link:hover {
    color: var(--footer-link-hover-color);
    text-decoration: none !important;
    transform: translateY(-1px);
}

.footer-link:focus {
    outline: none;
    color: var(--footer-link-focus-color);
    text-decoration: none !important;
}

/* Reset margin for footer paragraphs */
.footer-modern p {
    margin: 0 !important;
}

/* ==========================================================================
   SEARCH STYLES - Mintlify inspired
   ========================================================================== */

.search-input {
    display: block;
    width: 100%;
    padding-left: 2.75rem;
    padding-right: var(--space-4);
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
    border: 2px solid var(--gray-200);
    border-radius: 1rem;
    font-size: 0.875rem;
    background: var(--app-card-bg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1), 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.search-input::placeholder {
    color: var(--gray-400);
    font-weight: 500;
}

.search-input-lg {
    font-size: 1.125rem;
    padding: var(--space-5);
    padding-left: 3.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 2px solid var(--gray-200);
}

.search-input-lg:focus {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.search-results {
    position: absolute;
    z-index: 50;
    width: 100%;
    margin-top: var(--space-1);
    background: var(--app-card-bg);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 24rem;
    overflow-y: auto;
}

.search-result-item {
    padding: var(--space-3) var(--space-4);
    transition: var(--transition);
    cursor: pointer;
    border-bottom: 1px solid var(--gray-200);
}

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

.search-result-item:hover {
    background-color: var(--gray-50);
}

/* RTL Search input adjustments */
[dir="rtl"] .search-input {
    text-align: right;
}

[dir="rtl"] .search-input::placeholder {
    text-align: right;
}

/* ==========================================================================
   TOC STYLES
   ========================================================================== */

#toc {
    position: sticky;
    top: 6rem;
    background: var(--toc-bg);
    padding: 1rem;
}

#toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#toc li {
    margin: 0.5rem 0;
}

#toc a {
    color: var(--toc-link-color);
    text-decoration: none;
    display: block;
    padding: 0.25rem 0;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 400;
    transition: color 0.2s ease;
}

#toc a:hover { color: var(--toc-link-hover-color); }

#toc a.active {
    color: var(--toc-link-active-color);
    font-weight: 400;
}

/* Override default TOC styles inside On This Page container */
.toc-on-this-page #toc a { border-left-color: transparent; }
.toc-on-this-page #toc a.active { border-left-color: transparent; font-weight: 400; }

/* Main content - now using variables */
main {
    background: var(--main-bg);
    padding: 2rem;
    margin: 1rem;
}

/* Responsive design for TOC */
@media (max-width: 1024px) {
    .w-64 {
        display: none;
    }
    
    .ml-72 {
        margin-left: 0;
    }
    
    main {
        margin: 0.5rem;
        padding: 1rem;
    }
}

/* TOC Popover (GitBook-like) */
.toc-popover {
    position: fixed; /* stays in place on scroll */
    top: 88px; /* below header */
    right: 24px; /* LTR: align to right edge */
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0;
    z-index: 1000;
}

.toc-popover-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--theme-toggle-bg);
    border: 1px solid var(--theme-toggle-border);
    border-radius: 8px;
    color: var(--theme-toggle-color);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.25;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    height: 36px !important;
    min-width: 36px;
    cursor: pointer;
    box-sizing: border-box;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    outline: none !important;
}

.toc-popover-button:hover {
    background: var(--theme-toggle-hover-bg);
    border-color: var(--theme-toggle-hover-border);
    color: var(--theme-toggle-hover-color);
    transform: translateY(-1px);
}

.toc-popover-button:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.5) !important;
    outline-offset: 2px !important;
}

.toc-popover-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    max-height: 60vh;
    overflow: auto;
    background: var(--language-dropdown-menu-bg);
    border: 1px solid var(--language-dropdown-menu-border);
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
    backdrop-filter: blur(8px);
}

.toc-popover-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Reset TOC styles inside popover */
.toc-popover-menu #toc {
    position: static;
    background: transparent;
    padding: 8px;
}

.toc-popover-menu #toc a {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 8px;
    border-left: none;
    border-radius: 6px;
    font-size: 14px;
    color: var(--language-dropdown-item-color);
    line-height: 1.3;
}
.toc-link .toc-method-badge {
    display: inline-flex;
    align-items: center;
    height: 18px;
    margin-bottom: 0;
    margin-top: 2px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #fff;
    flex-shrink: 0;
}

.toc-link .toc-title {
    display: inline;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* HTTP method badge colors are now defined globally (see line ~1054) */
.toc-list, .toc-sublist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-sublist {
    padding-left: 12px;
}

.toc-item.level-2 .toc-link { font-weight: 400; }
.toc-item.level-3 .toc-link { font-weight: 400; }
.toc-item.level-4 .toc-link { font-weight: 400; }

.toc-icon {
    width: 16px;
    height: 16px;
}

.toc-popover-menu #toc a:hover {
    background: var(--language-dropdown-item-hover-bg);
    color: var(--language-dropdown-item-hover-color);
}

.toc-popover-menu #toc a.active {
    background: var(--primary-50);
    color: var(--primary-700);
    font-weight: 600;
}

.toc-popover.open .dropdown-arrow {
    transform: rotate(180deg);
}

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

/* RTL support */
[dir="rtl"] .toc-popover {
    justify-content: flex-start; /* align left for RTL */
    right: auto;
    left: 24px;
}

[dir="rtl"] .toc-popover-menu {
    right: auto;
    left: 0;
}

/* On This Page (Mintlify-like) */
.toc-on-this-page {
    font-family: inherit;
}
.toc-otp-header {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.toc-otp-icon { display: inline-flex; align-items: center; color: var(--gray-500); }
.toc-otp-body {
    position: relative;
    padding-left: 16px; /* space for rail */
}
.toc-on-this-page .toc-list { list-style: none; margin: 0; padding: 0; }
.toc-on-this-page .toc-sublist { list-style: none; margin: 0; padding-left: 12px; }

/* Vertical rail + moving indicator */
.toc-rail {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 2px;
    width: 2px;
    background: var(--gray-200);
}
.toc-rail-indicator {
    position: absolute;
    left: -3px; /* center the 8px dot over 2px rail */
    width: 8px;
    height: 8px;
    background: var(--primary-600);
    border-radius: 9999px;
    transition: transform 0.15s ease;
}

/* TOC links: unified sizing, indentation by level, no size change on active */
.toc-on-this-page #toc { font-size: 14px; line-height: 1.35; }
.toc-on-this-page #toc a.toc-link {
    display: block;
    padding: 4px 0;
    color: var(--app-card-description-color);
    font-size: inherit;
    line-height: inherit;
    text-decoration: none;
    border-left: none;
    border-radius: 0;
    font-weight: 400;
}
.toc-on-this-page .toc-item.level-1 > .toc-link { margin-inline-start: 0 !important; padding-left: 0 !important; }
.toc-on-this-page .toc-item.level-2 > .toc-link { margin-inline-start: 8px !important; padding-left: 0 !important; }
.toc-on-this-page .toc-item.level-3 > .toc-link { margin-inline-start: 16px !important; padding-left: 0 !important; }
.toc-on-this-page .toc-item.level-4 > .toc-link { margin-inline-start: 24px !important; padding-left: 0 !important; }
.toc-on-this-page .toc-item.level-5 > .toc-link { margin-inline-start: 32px !important; padding-left: 0 !important; }
.toc-on-this-page .toc-item.level-6 > .toc-link { margin-inline-start: 40px !important; padding-left: 0 !important; }

.toc-on-this-page #toc a.toc-link:hover { color: var(--app-card-title-color); }
.toc-on-this-page #toc a.toc-link.active { color: var(--primary-700); font-weight: 400; }

/* RTL support for On This Page */
:dir(rtl) .toc-otp-body { padding-left: 0; padding-right: 16px; }
:dir(rtl) .toc-rail { left: auto; right: 2px; }
:dir(rtl) .toc-rail-indicator { left: auto; right: -3px; }
:dir(rtl) .toc-on-this-page .toc-item.level-1 > .toc-link { margin-inline-end: 0 !important; padding-right: 0 !important; }
:dir(rtl) .toc-on-this-page .toc-item.level-2 > .toc-link { margin-inline-end: 8px !important; padding-right: 0 !important; }
:dir(rtl) .toc-on-this-page .toc-item.level-3 > .toc-link { margin-inline-end: 16px !important; padding-right: 0 !important; }
:dir(rtl) .toc-on-this-page .toc-item.level-4 > .toc-link { margin-inline-end: 24px !important; padding-right: 0 !important; }
:dir(rtl) .toc-on-this-page .toc-item.level-5 > .toc-link { margin-inline-end: 32px !important; padding-right: 0 !important; }
:dir(rtl) .toc-on-this-page .toc-item.level-6 > .toc-link { margin-inline-end: 40px !important; padding-right: 0 !important; }

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .btn, .card, .alert, .badge {
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }
    
    .sidebar, .sidebar-mintlify, .modal-overlay {
        display: none;
    }
    
    .content-main {
        padding-left: 0;
    }
}

/* ==========================================================================
   COLLAPSE COMPONENT
   ========================================================================== */

.collapse-panel {
    background: var(--app-card-bg);
    border: 1px solid var(--app-card-border);
    border-radius: var(--radius-lg);
    margin: var(--space-4) 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.collapse-panel:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-200);
}

.collapse-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    cursor: pointer;
    transition: background-color 0.2s ease;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.collapse-header:hover {
    background: var(--gray-100);
}

.collapse-title {
    flex: 1;
}

.collapse-title-link {
    font-family: 'Mazzard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--app-card-title-color);
    text-decoration: none;
    text-transform: capitalize;
    transition: color 0.2s ease;
}

.collapse-title-link:hover {
    color: var(--primary-600);
    text-decoration: none;
}

.collapse-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.collapse-header[aria-expanded="true"] .collapse-arrow {
    transform: rotate(180deg);
}

.collapse-content {
    display: none;
    padding: 0;
    background: var(--white);
}

.collapse-content.expanded {
    display: block;
}

.collapse-divider {
    width: 100%;
    height: 1px;
    background: var(--gray-200);
    border: none;
    margin: var(--space-3) 0;
    opacity: 0.2;
}

.collapse-body {
    padding: var(--space-4);
    word-break: break-word;
    line-height: 1.6;
    color: var(--app-card-description-color);
}

/* Dark theme support for collapse */
[data-theme="dark"] .collapse-panel {
    background: var(--gray-800);
    border-color: var(--gray-700);
}

[data-theme="dark"] .collapse-header {
    background: var(--gray-700);
    border-bottom-color: var(--gray-600);
}

[data-theme="dark"] .collapse-header:hover {
    background: var(--gray-600);
}

[data-theme="dark"] .collapse-title-link {
    color: var(--gray-100);
}

[data-theme="dark"] .collapse-title-link:hover {
    color: var(--primary-400);
}

[data-theme="dark"] .collapse-content {
    background: var(--gray-800);
}

[data-theme="dark"] .collapse-divider {
    background: var(--gray-600);
}

[data-theme="dark"] .collapse-body {
    color: var(--gray-200);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .collapse-header {
        padding: var(--space-3);
    }

    .collapse-body {
        padding: var(--space-3);
    }

    .collapse-title-link {
        font-size: 14px;
    }
}

/* ==========================================================================
   OPENAPI RESPONSES COMPONENT
   ========================================================================== */

.openapi-section {
    margin: var(--space-6) 0;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    overflow: hidden;
}

.openapi-section-header {
    padding: var(--space-4);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.openapi-section-title {
    margin: 0;
    font-family: 'Mazzard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    text-transform: capitalize;
}

.openapi-responses-list {
    padding: 0;
}

.openapi-response-item {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--gray-200);
}

.openapi-response-item:last-child {
    border-bottom: none;
}

.openapi-response-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.openapi-response-arrow {
    font-size: 16px;
    font-weight: bold;
    color: var(--gray-600);
    margin-right: var(--space-2);
}

.openapi-response-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 24px;
    padding: 0 var(--space-2);
    border-radius: var(--radius-sm);
    font-family: 'Mazzard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.openapi-response-description {
    font-family: 'Mazzard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    flex: 1;
}

.openapi-response-content-type {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: var(--radius-xs);
    white-space: nowrap;
}

.openapi-response-content {
    display: none;
    margin-top: var(--space-2);
    padding: var(--space-4);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}

.openapi-response-content.expanded {
    display: block;
}

.openapi-response-example {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: var(--space-3);
    overflow-x: auto;
}

.openapi-response-example pre {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: var(--gray-800);
}

.openapi-response-example code {
    background: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

.openapi-response-content-header {
    margin-bottom: var(--space-2);
}


.openapi-response-example {
    display: none;
    margin-top: var(--space-2);
}

.openapi-response-example.expanded {
    display: block;
}

.openapi-response-content pre {
    margin: 0;
    padding: var(--space-3);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
    color: var(--gray-800);
    overflow-x: auto;
}

.openapi-response-content code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 13px;
    background: var(--gray-100);
    padding: 1px 4px;
    border-radius: var(--radius-xs);
    color: var(--gray-800);
}

/* Dark theme support for openapi responses */
[data-theme="dark"] .openapi-section {
    background: var(--gray-800);
    border-color: var(--gray-700);
}

[data-theme="dark"] .openapi-section-header {
    background: var(--gray-700);
    border-bottom-color: var(--gray-600);
}

[data-theme="dark"] .openapi-section-title {
    color: var(--gray-100);
}

[data-theme="dark"] .openapi-response-item {
    border-bottom-color: var(--gray-700);
}

[data-theme="dark"] .openapi-response-description {
    color: var(--gray-300);
}

[data-theme="dark"] .openapi-response-content-type {
    background: var(--gray-700);
    color: var(--gray-300);
}

[data-theme="dark"] .openapi-response-arrow {
    color: var(--gray-400);
}


[data-theme="dark"] .openapi-response-content pre {
    background: var(--gray-800);
    border-color: var(--gray-600);
    color: var(--gray-100);
}

[data-theme="dark"] .openapi-response-content code {
    background: var(--gray-700);
    color: var(--gray-100);
}

/* Responsive adjustments for openapi responses */
@media (max-width: 768px) {
    .openapi-response-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }

    .openapi-response-code {
        margin-right: 0;
        margin-bottom: var(--space-1);
    }

    .openapi-section-title {
        font-size: 16px;
    }
}

/* ==========================================================================
   GITBOOK API PATH COMPONENT
   ========================================================================== */

.gitbook-api-path {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    padding: 0;
    background: transparent;
}

.gitbook-method-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #141414;
    min-width: 50px;
    text-align: center;
    flex-shrink: 0;
}

.gitbook-path-text-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.gitbook-path-text {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-800);
    line-height: 1.4;
    cursor: pointer;
    transition: color 0.2s ease;
}

.gitbook-path-text:hover {
    color: #2563eb;
}

.api-url-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: var(--gray-400);
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.gitbook-path-text-wrapper:hover .api-url-copy-btn {
    opacity: 1;
}

.api-url-copy-btn:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

.api-url-copy-btn:active {
    transform: scale(0.95);
}

[data-theme="dark"] .gitbook-path-text {
    color: var(--gray-200);
}

[data-theme="dark"] .gitbook-path-text:hover {
    color: #60a5fa;
}

[data-theme="dark"] .api-url-copy-btn {
    color: var(--gray-500);
}

[data-theme="dark"] .api-url-copy-btn:hover {
    background: var(--gray-700);
    color: var(--gray-300);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gitbook-api-path {
        gap: 8px;
    }
    
    .gitbook-path-text {
        font-size: 13px;
    }
    
    .gitbook-method-badge {
        font-size: 11px;
        padding: 3px 6px;
        min-width: 45px;
    }
}

/* ==========================================================================
   GITBOOK-STYLE API REQUEST COMPONENT
   ========================================================================== */

.api-request-container {
    margin: var(--space-6) 0;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.api-request-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

.api-request-schema {
    border-right: 1px solid var(--gray-200);
    background: var(--gray-50);
    padding: var(--space-6);
    overflow-y: auto;
}

.api-request-schema-header {
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--gray-200);
}

.api-request-schema-title {
    margin: 0;
    font-family: 'Mazzard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    text-transform: capitalize;
}

.api-request-schema-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-700);
}

.api-request-preview {
    padding: var(--space-6);
    background: var(--white);
}

.api-request-preview-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--gray-200);
}

.api-request-method-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 24px;
    padding: 0 var(--space-2);
    border-radius: var(--radius-sm);
    font-family: 'Mazzard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.api-request-url {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-800);
    line-height: 1.4;
    flex: 1;
}

.api-request-preview-content {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.api-request-code-block {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.api-request-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}

.api-request-code-title {
    font-family: 'Mazzard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.api-request-copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--gray-500);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.api-request-copy-btn:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

.api-request-code-content {
    padding: var(--space-4);
}

.api-request-code-content pre {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: var(--gray-800);
    overflow-x: auto;
}

.api-request-code-content code {
    background: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* Parameter Schema Styles */
.parameter-schema-item {
    margin-bottom: var(--space-4);
    padding: var(--space-4);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.parameter-schema-item:hover {
    border-color: var(--primary-200);
    box-shadow: var(--shadow-sm);
}

.parameter-schema-header {
    margin-bottom: var(--space-2);
}

.parameter-schema-name {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.parameter-name {
    font-family: 'Mazzard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--gray-900);
}

.parameter-type {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 12px;
    font-weight: 500;
    color: #F30170;
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: var(--radius-xs);
}

.parameter-required {
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-600);
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: var(--radius-xs);
}

.parameter-schema-content {
    margin-top: var(--space-2);
}

.parameter-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
}

.parameter-example {
    font-size: 13px;
    color: var(--gray-600);
}

.parameter-example code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 12px;
    background: var(--gray-100);
    padding: 2px 4px;
    border-radius: var(--radius-xs);
    color: var(--gray-800);
}

/* Request Body Styles */
.request-body-container {
    margin: var(--space-4) 0;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    overflow: hidden;
}

.request-body-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.request-body-title {
    margin: 0;
    font-family: 'Mazzard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
}

.request-body-content-type {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-600);
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: var(--radius-xs);
}

.request-body-content {
    padding: var(--space-4);
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-700);
}

/* Response Examples Styles */
.response-examples-container {
    margin: var(--space-6) 0;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    overflow: hidden;
}

.response-examples-header {
    padding: var(--space-4);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.response-examples-title {
    margin: 0;
    font-family: 'Mazzard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    text-transform: capitalize;
}

.response-examples-content {
    padding: 0;
}

.response-tab-item {
    border-bottom: 1px solid var(--gray-200);
}

.response-tab-item:last-child {
    border-bottom: none;
}

.response-tab-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.response-tab-header:hover {
    background: var(--gray-50);
}

.response-tab-arrow {
    font-size: 16px;
    font-weight: bold;
    color: var(--gray-600);
    transition: transform 0.2s ease;
}

.response-tab-header:hover .response-tab-arrow {
    transform: rotate(90deg);
}

.response-tab-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 24px;
    padding: 0 var(--space-2);
    border-radius: var(--radius-sm);
    font-family: 'Mazzard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.response-tab-description {
    font-family: 'Mazzard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    flex: 1;
}

.response-tab-content-type {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: var(--radius-xs);
    white-space: nowrap;
}

.response-tab-content {
    display: none;
    padding: var(--space-4);
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.response-tab-content.expanded {
    display: block;
}

.response-tab-example {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: var(--space-3);
    max-height: 600px; /* Limit height like OneSignal docs */
    overflow-x: auto; /* Horizontal scroll for wide content */
    overflow-y: auto; /* Vertical scroll for long content */
}

.response-tab-example pre {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: var(--gray-800);
    white-space: pre; /* Prevent text wrapping - code should scroll horizontally */
    word-wrap: normal; /* Don't break words */
}

.response-tab-example code {
    background: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .api-request-layout {
        grid-template-columns: 1fr;
    }
    
    .api-request-schema {
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }
}

@media (max-width: 768px) {
    .api-request-schema,
    .api-request-preview {
        padding: var(--space-4);
    }
    
    .api-request-schema-title,
    .response-examples-title {
        font-size: 16px;
    }
    
    .parameter-schema-item {
        padding: var(--space-3);
    }
    
    .parameter-name {
        font-size: 14px;
    }
    
    .response-tab-header {
        flex-wrap: wrap;
        gap: var(--space-2);
    }
    
    .response-tab-description {
        font-size: 13px;
    }
}

/* Dark theme support */
[data-theme="dark"] .api-request-container {
    background: var(--gray-800);
    border-color: var(--gray-700);
}

[data-theme="dark"] .api-request-schema {
    background: var(--gray-700);
    border-right-color: var(--gray-600);
}

[data-theme="dark"] .api-request-schema-title,
[data-theme="dark"] .response-examples-title {
    color: var(--gray-100);
}

[data-theme="dark"] .api-request-schema-content,
[data-theme="dark"] .request-body-content {
    color: var(--gray-200);
}

[data-theme="dark"] .parameter-schema-item {
    background: var(--gray-700);
    border-color: var(--gray-600);
}

[data-theme="dark"] .parameter-name {
    color: var(--gray-100);
}

[data-theme="dark"] .parameter-description {
    color: var(--gray-300);
}

[data-theme="dark"] .request-body-container {
    background: var(--gray-800);
    border-color: var(--gray-700);
}

[data-theme="dark"] .request-body-header {
    background: var(--gray-700);
    border-bottom-color: var(--gray-600);
}

[data-theme="dark"] .request-body-title {
    color: var(--gray-100);
}

[data-theme="dark"] .request-body-content-type {
    color: var(--gray-300);
    background: var(--gray-600);
}

[data-theme="dark"] .response-examples-container {
    background: var(--gray-800);
    border-color: var(--gray-700);
}

[data-theme="dark"] .response-examples-header {
    background: var(--gray-700);
    border-bottom-color: var(--gray-600);
}

[data-theme="dark"] .response-tab-header:hover {
    background: var(--gray-600);
}

[data-theme="dark"] .response-tab-content {
    background: var(--gray-700);
    border-top-color: var(--gray-600);
}

[data-theme="dark"] .response-tab-example {
    background: var(--gray-800);
    border-color: var(--gray-600);
}

[data-theme="dark"] .response-tab-example pre {
    color: var(--gray-100);
}

/* Query Parameters Styles */
.query-parameters-container {
    margin: var(--space-4) 0;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    overflow: hidden;
}

.query-parameters-header {
    padding: var(--space-3) var(--space-4);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.query-parameters-title {
    margin: 0;
    font-family: 'Mazzard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
}

.query-parameters-content {
    padding: var(--space-4);
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-700);
}

/* Dark theme support for query parameters */
[data-theme="dark"] .query-parameters-container {
    background: var(--gray-800);
    border-color: var(--gray-700);
}

[data-theme="dark"] .query-parameters-header {
    background: var(--gray-700);
    border-bottom-color: var(--gray-600);
}

[data-theme="dark"] .query-parameters-title {
    color: var(--gray-100);
}

[data-theme="dark"] .query-parameters-content {
    color: var(--gray-200);
}

/* ==========================================================================
   SCHEMA TREE
   ========================================================================== */
.schema-tree-container {
    border: none; /* remove outer border */
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    overflow: visible; /* Allow content to flow naturally - parameters should not scroll independently */
}

/* Two-column layout with sticky preview - GitBook style */
.openapi-columns {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 0;
    align-items: flex-start;
    margin: 0 0 32px 0;
}

/* Remove gap between columns */
.openapi-column-schema {
    padding-right: 0;
}

.openapi-column-preview {
    padding-left: 0;
}

/* API Playground sidebar (global right-side examples) */
.api-playground-sidebar {
    width: 450px; /* Consistent 450px width */
    padding: 0;
    background: transparent;
    margin-left: 0;
    max-height: calc(100vh - 56px); /* Full viewport minus header */
    overflow: hidden; /* Prevent playground from exceeding viewport */
}

/* Make playground full-width below content on smaller screens */
@media (max-width: 1400px) {
    .api-playground-sidebar { width: 450px; }
}
@media (max-width: 1024px) {
    .api-playground-sidebar { display: none; }
}

/* Ensure playground content fills available space */
#api-playground {
    display: flex;
    flex-direction: column;
    overflow: visible; /* Allow natural page flow - don't restrict container height */
}

#api-playground .openapi-preview-card {
    display: flex;
    flex-direction: column;
    overflow: visible; /* Allow natural flow - only inner code boxes should scroll */
}

/* Global playground specific styles - Clean minimal */
#api-playground .openapi-preview-card {
    border: 1px solid #e5e7eb;
    background: white;
    box-shadow: none;
    border-radius: 8px;
    margin-bottom: 16px;
}

#api-playground .openapi-preview-header {
    background: #f8f9fa !important;
    border: none !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 8px 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    min-height: 40px !important;
}

#api-playground .openapi-preview-body {
    background: white !important;
    border: none;
    border-radius: 0 0 8px 8px;
    padding: 0;
    margin: 0;
    min-height: auto;
    /* max-height set dynamically by JavaScript - don't override here! */
    overflow-x: auto !important; /* Horizontal scroll */
    overflow-y: auto !important; /* Vertical scroll */
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e0 #f7fafc !important;
}

#api-playground .openapi-preview-body::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#api-playground .openapi-preview-body::-webkit-scrollbar-track {
    background: #f7fafc;
}

#api-playground .openapi-preview-body::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

#api-playground .openapi-preview-body::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Force scrollbars to always be visible */
#api-playground .openapi-preview-body {
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e0 #f7fafc !important;
}

#api-playground .openapi-preview-body::-webkit-scrollbar {
    display: block !important;
    width: 8px !important;
    height: 8px !important;
}

#api-playground .openapi-response-card {
    border: 1px solid #e5e7eb;
    background: white;
    box-shadow: none;
    border-radius: 8px;
    margin-top: 0;
    margin-bottom: 2rem; /* 32px space at bottom so card is fully visible */
}

#api-playground .openapi-response-header {
    background: #f8f9fa !important;
    border: none !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 8px 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    min-height: 40px !important;
}

#api-playground .openapi-response-body {
    background: white !important;
    border: none;
    border-radius: 0 0 8px 8px;
    padding: 0;
    margin: 0;
    min-height: auto;
    /* max-height set dynamically by JavaScript - don't override here! */
    overflow-x: auto !important; /* Horizontal scroll */
    overflow-y: auto !important; /* Vertical scroll */
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e0 #f7fafc !important;
}

#api-playground .openapi-response-body::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#api-playground .openapi-response-body::-webkit-scrollbar-track {
    background: #f7fafc;
}

#api-playground .openapi-response-body::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

#api-playground .openapi-response-body::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Force scrollbars to always be visible */
#api-playground .openapi-response-body {
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e0 #f7fafc !important;
}

#api-playground .openapi-response-body::-webkit-scrollbar {
    display: block !important;
    width: 8px !important;
    height: 8px !important;
}

#api-playground .code-examples-dropdown {
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 14px;
    padding: 6px 8px 6px 12px;
    min-width: 80px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 32px;
}

#api-playground .code-examples-dropdown:hover {
    color: #374151;
}

#api-playground .code-examples-dropdown:focus {
    outline: none;
    color: #374151;
}

#api-playground .openapi-copy-button {
    background: transparent;
    border: none;
    color: #6b7280;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border-radius: 6px;
}

#api-playground .openapi-copy-button:hover {
    background: #e9ecef;
    color: #374151;
}

#api-playground .openapi-preview-body pre {
    background: white !important;
    border: none !important;
    border-radius: 0 0 8px 8px;
    margin: 0 !important;
    padding: 4px 16px !important; /* Minimal vertical padding (4px top/bottom), normal horizontal (16px left/right) */
    overflow: visible !important; /* Don't create nested scroll - let parent handle scrolling */
    white-space: pre !important; /* Don't wrap code */
    word-wrap: normal !important; /* Don't break words */
}

#api-playground .openapi-preview-body pre code {
    padding: 0 !important; /* Remove code element padding */
}

#api-playground .openapi-response-body pre {
    background: white !important;
    border: none !important;
    border-radius: 0 0 8px 8px;
    margin: 0 !important;
    padding: 16px 16px !important; /* Minimal vertical padding (4px top/bottom), normal horizontal (16px left/right) */
    overflow: visible !important; /* Don't create nested scroll - let parent handle scrolling */
    white-space: pre !important; /* Don't wrap code */
    word-wrap: normal !important; /* Don't break words */
}

#api-playground .openapi-response-body pre code {
    padding: 0 !important; /* Remove code element padding */
}

/* OneSignal-style syntax highlighting for playground */
#api-playground pre {
    background: white !important;
    border: none !important;
    margin: 0;
    padding: 16px 16px !important; /* Minimal vertical padding */
    border-radius: 0;
}

#api-playground pre code {
    background: white !important;
    color: #333 !important;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
}

/* Ensure Prism.js works with our playground */
#api-playground pre[class*="language-"] {
    background: white !important;
    border: none !important;
    margin: 0;
    padding: 12px 16px;
    border-radius: 0;
    box-shadow: none !important;
}

#api-playground pre[class*="language-"] code {
    background: white !important;
    color: #333 !important;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
}

/* Override prism-simple.css for playground */
#api-playground pre[class*="language-"]::before {
    display: none !important;
}

#api-playground pre[class*="language-"] {
    padding-top: 12px !important;
}

/* Prism.js syntax highlighting overrides for playground - OneSignal style */
#api-playground .token.comment,
#api-playground .token.prolog,
#api-playground .token.doctype,
#api-playground .token.cdata {
    color: #6a737d;
}

#api-playground .token.punctuation {
    color: #24292e;
}

#api-playground .token.property,
#api-playground .token.tag,
#api-playground .token.boolean,
#api-playground .token.number,
#api-playground .token.constant,
#api-playground .token.symbol,
#api-playground .token.deleted {
    color: #005cc5;
}

#api-playground .token.selector,
#api-playground .token.attr-name,
#api-playground .token.string,
#api-playground .token.char,
#api-playground .token.builtin,
#api-playground .token.inserted {
    color: #032f62;
}

#api-playground .token.operator,
#api-playground .token.entity,
#api-playground .token.url,
#api-playground .language-css .token.string,
#api-playground .style .token.string {
    color: #d73a49;
}

#api-playground .token.atrule,
#api-playground .token.attr-value,
#api-playground .token.keyword {
    color: #d73a49;
}

#api-playground .token.function,
#api-playground .token.class-name {
    color: #6f42c1;
}

#api-playground .token.regex,
#api-playground .token.important,
#api-playground .token.variable {
    color: #e36209;
}

/* HTTP method highlighting */
#api-playground .token.method {
    color: #d73a49;
    font-weight: 600;
}

/* JSON key highlighting */
#api-playground .token.json-key {
    color: #005cc5;
}

/* URL highlighting */
#api-playground .token.url {
    color: #0366d6;
    text-decoration: underline;
}

/* Remove gaps between main content and playground */
.flex-1.flex main {
    margin-right: 0;
    padding-right: 0;
}

.flex-1.flex .api-playground-sidebar {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
}

/* Ensure no gaps in the grid layout */
.openapi-columns {
    gap: 0 !important;
}

.openapi-column-schema {
    margin-right: 0;
    padding-right: 0;
}

.openapi-column-preview {
    margin-left: 0;
    padding-left: 0;
}

.openapi-column-schema {
    min-width: 0;
}

/* Hide ONLY Prism toolbar buttons inside API preview (keep custom openapi-copy-button) */
.openapi-preview-body div.code-toolbar > .toolbar,
.openapi-preview-body div.code-toolbar > .toolbar > .toolbar-item,
.openapi-preview-body div.code-toolbar > .toolbar > .toolbar-item > button,
.openapi-preview-body div.code-toolbar > .toolbar > .toolbar-item > .copy-to-clipboard-button,
.openapi-response-body div.code-toolbar > .toolbar,
.openapi-response-body div.code-toolbar > .toolbar > .toolbar-item,
.openapi-response-body div.code-toolbar > .toolbar > .toolbar-item > button,
.openapi-response-body div.code-toolbar > .toolbar > .toolbar-item > .copy-to-clipboard-button {
    display: none !important;
}

.openapi-copy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: var(--gray-100);
    border: none;
    border-radius: 6px;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
}

.openapi-copy-button:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

.openapi-copy-button:active {
    background: var(--gray-300);
    transform: scale(0.95);
}

.openapi-response-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Response header styling */
.openapi-response-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-top: none;
    border-radius: 8px 8px 0 0;
}

.openapi-response-title {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 14px;
}

.openapi-response-body {
    background: white !important;
    border: none;
    border-radius: 0 0 8px 8px;
    max-height: 600px; /* Limit vertical height like OneSignal docs */
    overflow-x: auto; /* Horizontal scroll */
    overflow-y: auto; /* Vertical scroll */
    min-height: 120px;
}

/* Language switcher styling */
.code-examples-dropdown {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.code-examples-dropdown:hover {
    background: var(--gray-200);
}

.code-examples-dropdown:focus {
    outline: none;
    background: var(--gray-200);
}

/* Custom Dropdown Styling (OneSignal-style) */
.custom-dropdown-container {
    position: relative;
    display: inline-block;
}

.custom-dropdown-button {
    display: flex;
    align-items: center;
    gap: 0.25rem; /* 4px - same as OneSignal gap-1 */
    padding-left: 0.625rem; /* 10px - same as OneSignal pl-2.5 */
    padding-right: 0.375rem; /* 6px - same as OneSignal pr-1.5 */
    padding-top: 5px; /* same as OneSignal py-[5px] */
    padding-bottom: 5px;
    border-radius: 10px; /* same as OneSignal rounded-[10px] */
    border: 1px solid transparent; /* same as OneSignal border-transparent */
    color: #6b7280; /* gray-500 - same as OneSignal text-gray-500 */
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: transparent;
}

/* Request dropdown: FORCE auto-fit width */
.openapi-preview-header .openapi-examples-select,
.openapi-examples-select {
    flex: 0 0 auto !important;
}

.openapi-preview-header .openapi-examples-select .custom-dropdown-container,
.openapi-examples-select .custom-dropdown-container {
    width: fit-content !important;
}

.openapi-preview-header .openapi-examples-select .custom-dropdown-container .custom-dropdown-button,
.openapi-examples-select .custom-dropdown-container .custom-dropdown-button,
.openapi-examples-select .custom-dropdown-button {
    width: auto !important;
    min-width: 0 !important;
    gap: 4px !important;
    flex-shrink: 1 !important;
}

/* Align request dropdown menu to the right */
.openapi-examples-select .custom-dropdown-menu {
    right: 0;
    left: auto;
    min-width: 0 !important; /* Remove min-width completely */
    width: auto !important; /* Auto width to fit content */
}

/* Align response dropdown menu to the right */
.openapi-response-select .custom-dropdown-menu {
    right: 0;
    left: auto;
}

.custom-dropdown-button:hover {
    background-color: rgba(229, 231, 235, 0.5); /* gray-200/50 - same as OneSignal hover:bg-gray-200/50 */
    color: #0ea5e9; /* primary */
}

.custom-dropdown-button svg {
    flex-shrink: 0;
    width: 0.875rem; /* 14px - same as OneSignal w-3.5 */
    height: 0.875rem; /* 14px - same as OneSignal h-3.5 */
}

.custom-dropdown-button .custom-dropdown-chevron {
    flex-shrink: 0;
    width: 0.875rem; /* 14px - same as OneSignal w-3.5 */
    height: 0.875rem; /* 14px - same as OneSignal h-3.5 */
}

.custom-dropdown-label {
    margin: 0;
    font-weight: 500; /* font-medium - same as OneSignal */
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 0 auto; /* Don't grow or shrink, auto basis */
}


.custom-dropdown-chevron {
    width: 0.875rem; /* 14px - same as OneSignal w-3.5 */
    height: 0.875rem; /* 14px - same as OneSignal h-3.5 */
    flex-shrink: 0;
}

.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    max-height: 320px;
    overflow-y: auto;
    padding: 4px; /* Reduced from 6px to 4px for more compact menu */
}

.custom-dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* 8px */
    padding: 6px 12px; /* Reduced from 10px to 6px for thinner items */
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.1s ease;
    font-size: 14px;
    color: #374151;
    font-weight: 400;
}

.custom-dropdown-item:hover {
    background-color: #f9fafb;
}

.custom-dropdown-item.selected {
    background-color: #f0f9ff;
    color: #0284c7;
    font-weight: 500;
}

.custom-dropdown-item svg {
    flex-shrink: 0;
    width: 0.875rem; /* 14px */
    height: 0.875rem; /* 14px */
}

.custom-dropdown-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* Dark theme */
[data-theme="dark"] .custom-dropdown-button,
body.dark-theme .custom-dropdown-button {
    color: #9ca3af; /* gray-400 - same as OneSignal text-gray-400 */
    background: transparent;
}

[data-theme="dark"] .custom-dropdown-button:hover,
body.dark-theme .custom-dropdown-button:hover {
    background-color: rgba(55, 65, 81, 0.7); /* gray-700/70 - same as OneSignal hover:bg-gray-700/70 */
    color: #60a5fa; /* primary-light - same as OneSignal hover:text-primary-light */
}

[data-theme="dark"] .custom-dropdown-menu,
body.dark-theme .custom-dropdown-menu {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .custom-dropdown-item,
body.dark-theme .custom-dropdown-item {
    color: #d1d5db;
}

[data-theme="dark"] .custom-dropdown-item:hover,
body.dark-theme .custom-dropdown-item:hover {
    background-color: #374151;
}

[data-theme="dark"] .custom-dropdown-item.selected,
body.dark-theme .custom-dropdown-item.selected {
    background-color: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
}

.openapi-column-preview {
    position: sticky;
    top: 56px;
    align-self: start;
    max-height: calc(100vh - 56px);
    overflow: visible; /* inner card handles scrolling */
}

.openapi-column-preview.is-unstuck {
    position: static;
}

.openapi-preview-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.openapi-preview-card .code-select {
    border: none;
    background: transparent;
    border-radius: 0;
}

.openapi-preview-card .code-select-header {
    background: #2a2a2a;
    border-bottom: 1px solid #3a3a3a;
    padding: 12px 16px;
}

.openapi-preview-card .code-select-label {
    color: #a1a1aa;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.openapi-preview-card .code-select-dropdown {
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    color: #f4f4f5;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px 16px;
    padding-right: 32px;
}

.openapi-preview-card .code-select-body {
    background: #1a1a1a;
}

.openapi-preview-card .code-select-panel {
    padding: 0;
}

.openapi-preview-card pre {
    background: #1a1a1a !important;
    color: #f4f4f5 !important;
    border-radius: 0;
    padding: 16px;
    margin: 0;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    max-height: 600px; /* Limit vertical height */
    overflow-x: auto; /* Horizontal scroll for long lines */
    overflow-y: auto; /* Vertical scroll for long content */
    white-space: pre; /* Don't wrap - scroll horizontally instead */
    word-wrap: normal; /* Don't break words */
}

.openapi-preview-card .code-select-panel:not(.active) {
    display: none !important;
}

.openapi-preview-card .code-select-panel.active {
    display: block !important;
}

.openapi-preview-card code {
    background: transparent !important;
    color: inherit !important;
    padding: 0 !important;
    font-family: inherit !important;
}

/* Syntax highlighting colors (GitBook-like) */
.openapi-preview-card .language-http .token.request-line {
    color: #22c55e;
}

.openapi-preview-card .language-http .token.header-name {
    color: #3b82f6;
}

.openapi-preview-card .language-bash .token.function {
    color: #22c55e;
}

.openapi-preview-card .language-javascript .token.keyword {
    color: #a78bfa;
}

.openapi-preview-card .language-javascript .token.string {
    color: #fbbf24;
}

/* GitBook-style preview header */
.openapi-preview-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important; /* Changed from flex-end to space-between */
    gap: 12px;
    padding: 12px 16px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-bottom: none; /* unify with body below */
    border-radius: 8px 8px 0 0;
}

.openapi-preview-controls {
    display: flex;
    align-items: center;
    gap: 4px; /* Minimal gap between dropdown and copy button */
    justify-content: flex-end; /* Keep controls aligned to the right within this container */
    flex-shrink: 0; /* Don't let this container shrink */
    margin-left: auto; /* Push this container to the right edge */
}

.openapi-method-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 24px;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.openapi-url-text {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-800);
    line-height: 1.4;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Code examples container */
/* OpenAPI Preview Header Layout */
.openapi-preview-header-alt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #374151;
}

.openapi-method-url {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.openapi-examples-select {
    min-width: 0 !important; /* Allow it to shrink to fit content */
}

.openapi-examples-select:empty {
    display: none; /* Hide when no example type dropdown is present */
}

/* Left-side language selector */
.openapi-lang-select {
    display: flex;
    align-items: center;
    flex: 0 0 auto; /* Don't grow or shrink, stay at natural size */
    flex-shrink: 0; /* Explicitly prevent shrinking */
}

.openapi-lang-select:empty {
    display: none !important; /* Hide when no dropdown is present */
}

.openapi-lang-select .custom-dropdown-container {
    width: fit-content;
}

.code-examples-dropdown {
    padding: 0.375rem 0.75rem;
    border: 1px solid #4b5563;
    border-radius: 6px;
    color: #f9fafb;
    font-size: 0.875rem;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #374151 url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23f9fafb' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") no-repeat right 0.5rem center / 1.25em 1.25em;
    padding-right: 2.25rem;
}

.code-examples-dropdown:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
}

/* OpenAPI Preview Body */
.openapi-preview-body {
    padding: 0;
    background: white !important;
    border: none;
    border-radius: 0 0 8px 8px; /* rounded bottom corners */
    max-height: 600px; /* Limit vertical height like OneSignal docs */
    overflow-x: auto; /* Horizontal scroll */
    overflow-y: auto; /* Vertical scroll */
    min-height: 160px;
    margin-bottom: 16px;
}

.openapi-preview-body pre {
    margin: 0;
    padding: 4px 16px; /* Minimal vertical padding (4px top/bottom), normal horizontal (16px left/right) */
    background: transparent;
    color: #f9fafb;
    border-radius: 0;
    overflow: visible; /* Don't create nested scroll - let parent handle scrolling */
    white-space: pre; /* Don't wrap - scroll horizontally instead */
    word-wrap: normal; /* Don't break words */
}

.openapi-preview-body pre code {
    padding: 0 !important; /* Remove code element padding to prevent extra blank space */
}

.openapi-preview-body code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    color: inherit;
    background: transparent;
}

/* Responses card */
.openapi-response-card {
    margin-top: 1rem;
    margin-bottom: 2rem; /* 32px space at bottom so card is fully visible */
    background: #0f172a; /* slate-900 */
    border: 1px solid #334155; /* slate-700 */
    border-radius: 8px;
    overflow: visible; /* Allow dropdown menu to extend beyond card */
    min-height: 120px; /* ensure header + bit of body visible */
    display: flex;
    flex-direction: column;
}

.openapi-response-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #334155;
}

.openapi-response-title {
    color: #e5e7eb;
    font-weight: 600;
    font-size: 0.875rem;
}

.openapi-response-select .code-examples-dropdown {
    border-color: #475569; /* slate-600 */
    background: #1f2937 url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23e5e7eb' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") no-repeat right 0.5rem center / 1.25em 1.25em;
    padding-right: 2.25rem;
}

.openapi-response-body {
    background: #0f172a;
    max-height: 600px; /* Limit vertical height like OneSignal docs */
    overflow-x: auto; /* Horizontal scroll */
    overflow-y: auto; /* Vertical scroll */
}

.openapi-response-body pre {
    margin: 0;
    padding: 4px 16px; /* Minimal vertical padding (4px top/bottom), normal horizontal (16px left/right) */
    color: #e5e7eb;
    background: transparent;
    overflow: visible; /* Don't create nested scroll - let parent handle scrolling */
    white-space: pre; /* Don't wrap code */
    word-wrap: normal; /* Don't break words */
}

.openapi-response-body pre code {
    padding: 0 !important; /* Remove code element padding to prevent extra blank space */
}

.code-example-panel pre {
    background: #1a1a1a !important;
    color: #f4f4f5 !important;
    border-radius: 0;
    padding: 16px;
    margin: 0;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.code-example-panel code {
    background: transparent !important;
    color: inherit !important;
    padding: 0 !important;
    font-family: inherit !important;
}

/* Dark theme adjustments */
[data-theme="dark"] .openapi-preview-card {
    background: transparent;
    box-shadow: none;
}
[data-theme="dark"] .openapi-preview-header {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}
[data-theme="dark"] .openapi-url-text { color: #f4f4f5; }
[data-theme="dark"] .openapi-preview-body {
    background: white !important;
    border: none;
    border-radius: 0 0 8px 8px;
}

[data-theme="dark"] .openapi-response-header {
    background: #2a2a2a;
    border-color: #3a3a3a;
}

[data-theme="dark"] .openapi-response-title {
    color: #e5e5e5;
}

[data-theme="dark"] .openapi-response-body {
    background: white !important;
    border: none;
}

[data-theme="dark"] .code-examples-dropdown {
    background: #2a2a2a;
    color: #e5e5e5;
}

[data-theme="dark"] .code-examples-dropdown:hover {
    background: #3a3a3a;
}

[data-theme="dark"] .openapi-copy-button {
    background: #2a2a2a;
    color: #e5e5e5;
}

[data-theme="dark"] .openapi-copy-button:hover {
    background: #3a3a3a;
}

/* Dark theme for global playground - Clean minimal */
[data-theme="dark"] #api-playground .openapi-preview-card {
    background: white;
    border: 1px solid #e5e7eb;
    box-shadow: none;
    border-radius: 8px;
    margin-bottom: 16px;
}

[data-theme="dark"] #api-playground .openapi-preview-header {
    background: #2d3748;
    padding: 8px 16px;
    min-height: 40px;
}

[data-theme="dark"] #api-playground .openapi-preview-body {
    background: #1a202c;
    scrollbar-color: #4a5568 #2d3748;
}

[data-theme="dark"] #api-playground .openapi-preview-body::-webkit-scrollbar-track {
    background: #2d3748;
}

[data-theme="dark"] #api-playground .openapi-preview-body::-webkit-scrollbar-thumb {
    background: #4a5568;
}

[data-theme="dark"] #api-playground .openapi-preview-body::-webkit-scrollbar-thumb:hover {
    background: #718096;
}

[data-theme="dark"] #api-playground .openapi-response-card {
    background: white;
    border: 1px solid #e5e7eb;
    box-shadow: none;
    border-radius: 8px;
    margin-top: 0;
    margin-bottom: 2rem; /* 32px space at bottom so card is fully visible */
}

[data-theme="dark"] #api-playground .openapi-response-header {
    background: #2d3748;
    padding: 8px 16px;
    min-height: 40px;
}

[data-theme="dark"] #api-playground .openapi-response-body {
    background: #1a202c;
    scrollbar-color: #4a5568 #2d3748;
}

[data-theme="dark"] #api-playground .openapi-response-body::-webkit-scrollbar-track {
    background: #2d3748;
}

[data-theme="dark"] #api-playground .openapi-response-body::-webkit-scrollbar-thumb {
    background: #4a5568;
}

[data-theme="dark"] #api-playground .openapi-response-body::-webkit-scrollbar-thumb:hover {
    background: #718096;
}

[data-theme="dark"] #api-playground .code-examples-dropdown {
    background: transparent;
    color: #a0aec0;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23a0aec0' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

[data-theme="dark"] #api-playground .code-examples-dropdown:hover {
    color: #e2e8f0;
}

[data-theme="dark"] #api-playground .code-examples-dropdown:focus {
    color: #e2e8f0;
}

[data-theme="dark"] #api-playground .openapi-copy-button {
    background: transparent;
    color: #a0aec0;
}

[data-theme="dark"] #api-playground .openapi-copy-button:hover {
    background: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] #api-playground .openapi-preview-body pre {
    background: white !important;
}

[data-theme="dark"] #api-playground .openapi-response-body pre {
    background: white !important;
}

/* Dark theme - same OneSignal style highlighting */
[data-theme="dark"] #api-playground pre code {
    background: white !important;
    color: #333 !important;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
}

[data-theme="dark"] #api-playground pre {
    background: white !important;
    border: none !important;
    margin: 0;
    padding: 16px;
    border-radius: 0 0 8px 8px;
}

/* Same syntax highlighting colors in dark theme */
[data-theme="dark"] #api-playground .token.comment,
[data-theme="dark"] #api-playground .token.prolog,
[data-theme="dark"] #api-playground .token.doctype,
[data-theme="dark"] #api-playground .token.cdata {
    color: #6a737d;
}

[data-theme="dark"] #api-playground .token.punctuation {
    color: #24292e;
}

[data-theme="dark"] #api-playground .token.property,
[data-theme="dark"] #api-playground .token.tag,
[data-theme="dark"] #api-playground .token.boolean,
[data-theme="dark"] #api-playground .token.number,
[data-theme="dark"] #api-playground .token.constant,
[data-theme="dark"] #api-playground .token.symbol,
[data-theme="dark"] #api-playground .token.deleted {
    color: #005cc5;
}

[data-theme="dark"] #api-playground .token.selector,
[data-theme="dark"] #api-playground .token.attr-name,
[data-theme="dark"] #api-playground .token.string,
[data-theme="dark"] #api-playground .token.char,
[data-theme="dark"] #api-playground .token.builtin,
[data-theme="dark"] #api-playground .token.inserted {
    color: #032f62;
}

[data-theme="dark"] #api-playground .token.operator,
[data-theme="dark"] #api-playground .token.entity,
[data-theme="dark"] #api-playground .token.url,
[data-theme="dark"] #api-playground .language-css .token.string,
[data-theme="dark"] #api-playground .style .token.string {
    color: #d73a49;
}

[data-theme="dark"] #api-playground .token.atrule,
[data-theme="dark"] #api-playground .token.attr-value,
[data-theme="dark"] #api-playground .token.keyword {
    color: #d73a49;
}

[data-theme="dark"] #api-playground .token.function,
[data-theme="dark"] #api-playground .token.class-name {
    color: #6f42c1;
}

[data-theme="dark"] #api-playground .token.regex,
[data-theme="dark"] #api-playground .token.important,
[data-theme="dark"] #api-playground .token.variable {
    color: #e36209;
}

[data-theme="dark"] #api-playground .token.method {
    color: #d73a49;
    font-weight: 600;
}

[data-theme="dark"] #api-playground .token.json-key {
    color: #005cc5;
}

[data-theme="dark"] #api-playground .token.url {
    color: #0366d6;
    text-decoration: underline;
}

/* Hide "Response" text */
#api-playground .openapi-response-title {
    display: none;
}

/* Force scrollbars to always be visible */
#api-playground .openapi-preview-body,
#api-playground .openapi-response-body {
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e0 #f7fafc !important;
}

#api-playground .openapi-preview-body::-webkit-scrollbar,
#api-playground .openapi-response-body::-webkit-scrollbar {
    display: block !important;
    width: 8px !important;
    height: 8px !important;
}

/* Force consistent header heights across all pages */
#api-playground .openapi-preview-header,
#api-playground .openapi-response-header {
    padding: 8px 16px !important;
    min-height: 40px !important;
    height: 40px !important;
}

/* AMP Icon for sidebar */
.amp-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("/images/amp-icon.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 0;
    vertical-align: middle;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(40%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

/* Dark theme AMP icon */
html[data-theme="dark"] .amp-icon,
body.dark-theme .amp-icon {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

/* Override any conflicting header styles */
.openapi-preview-header,
.openapi-response-header {
    padding: 8px 16px !important;
    min-height: 40px !important;
}

[data-theme="dark"] .openapi-preview-header-alt {
    background: #1a1a1a;
    border-bottom-color: #2a2a2a;
}
/* Dark theme for request card */
[data-theme="dark"] .openapi-preview-body {
    background: #0f172a; /* slate-900 */
    border-color: #334155; /* slate-700 */
}

[data-theme="dark"] .code-examples-header {
    background: #1a1a1a;
    border-bottom-color: #2a2a2a;
}

[data-theme="dark"] .code-examples-dropdown {
    background: #0a0a0a;
    border-color: #2a2a2a;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23e5e7eb' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

.openapi-column-preview .api-request-code-block,
.openapi-column-preview pre,
.openapi-column-preview code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

/* Remove gap when endpoint heading is directly followed by the preview grid */
h4 + .openapi-columns {
    margin-top: 0;
}

/* ==========================================================================
   HEADING ANCHOR LINKS (OneSignal-style)
   ========================================================================== */

/* Heading with anchor link - add scroll offset for fixed header */
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6,
main h2,
main h3,
main h4,
main h5,
main h6 {
    position: relative;
    scroll-margin-top: 80px; /* Account for fixed header */
    cursor: pointer; /* Indicate headings are clickable */
}

/* Anchor link - positioned inline after heading text */
.heading-anchor {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    text-decoration: none !important;
    color: #4357F3;
    margin-left: 0.5rem;
    padding: 0.25rem;
    border-radius: 4px;
    vertical-align: middle;
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 10;
    position: relative;
}

/* Show anchor on heading hover */
.prose h2:hover .heading-anchor,
.prose h3:hover .heading-anchor,
.prose h4:hover .heading-anchor,
.prose h5:hover .heading-anchor,
.prose h6:hover .heading-anchor,
main h2:hover .heading-anchor,
main h3:hover .heading-anchor,
main h4:hover .heading-anchor,
main h5:hover .heading-anchor,
main h6:hover .heading-anchor {
    opacity: 1;
}

/* Always show when anchor itself is hovered or focused */
.heading-anchor:hover,
.heading-anchor:focus {
    opacity: 1 !important;
    transform: scale(1.1);
}

/* Anchor icon SVG */
.heading-anchor-icon {
    width: 18px;
    height: 18px;
    display: block;
}

/* Focus styles for accessibility */
.heading-anchor:focus {
    outline: 2px solid #4357F3;
    outline-offset: 2px;
}

.heading-anchor:focus-visible {
    outline: 2px solid #4357F3;
    outline-offset: 2px;
}

/* Dark mode support */
[data-theme="dark"] .heading-anchor {
    color: #60A5FA;
}

[data-theme="dark"] .heading-anchor:focus {
    outline-color: #60A5FA;
}

/* Simple click animation */
@keyframes anchor-click {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(0.85);
        opacity: 0.6;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Apply click animation */
.heading-anchor.anchor-clicked,
.heading-anchor.anchor-copied {
    animation: anchor-click 0.2s ease-out;
}

/* Success state - just change color to green */
.heading-anchor.anchor-copied {
    color: #10B981 !important; /* Green for success */
}

/* Dark mode success color */
[data-theme="dark"] .heading-anchor.anchor-copied {
    color: #34D399 !important; /* Lighter green for dark mode */
}

/* Highlight animation when jumping to heading */
@keyframes heading-highlight {
    0% {
        background-color: rgba(67, 89, 243, 0.1);
    }
    100% {
        background-color: transparent;
    }
}

.prose h2:target,
.prose h3:target,
.prose h4:target,
.prose h5:target,
.prose h6:target,
main h2:target,
main h3:target,
main h4:target,
main h5:target,
main h6:target {
    animation: heading-highlight 2s ease-out;
}

/* No content message for 204 and empty responses */
.openapi-no-content-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

.openapi-no-content-message svg {
    flex-shrink: 0;
    opacity: 0.7;
}

[data-theme="dark"] .openapi-no-content-message {
    color: #6b7280;
}

/* ==========================================================================
   CONTENT FOOTER (OneSignal-style)
   Global styling - applies to all sections (User Guides, Developer Guides, API, Changelog)
   ========================================================================== */

/* Footer container at end of content */
.content-footer {
    margin-top: 4rem;
    padding-top: 2rem;
}

/* Separator line */
.content-footer-separator {
    border: none;
    border-top: 1px solid var(--gray-200, #e5e7eb);
    margin-bottom: 2rem;
}

[data-theme="dark"] .content-footer-separator {
    border-top-color: var(--gray-700, #374151);
}

/* Links container */
.content-footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Individual link */
.content-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    color: var(--gray-600, #4b5563);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.content-footer-link:hover {
    color: var(--primary, #4357F3);
    background-color: var(--gray-100, #f3f4f6);
}

[data-theme="dark"] .content-footer-link {
    color: var(--gray-400, #9ca3af);
}

[data-theme="dark"] .content-footer-link:hover {
    color: var(--primary-light, #60A5FA);
    background-color: var(--gray-800, #1f2937);
}

/* Icon */
.content-footer-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Link text */
.content-footer-link-text {
    font-weight: 500;
}

@media (max-width: 1024px) {
    .openapi-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .openapi-column-preview {
        position: static;
        max-height: none;
        overflow: visible;
    }
}

/* Code tabs */
.code-tabs {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
}

/* Code select (dropdown) */
.code-select {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    overflow: hidden;
}

.code-select-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.code-select-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
}

.code-select-dropdown {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-800);
}

.code-select-body { padding: 0; }
.code-select-panel { display: none; }
.code-select-panel.active { display: block; }

[data-theme="dark"] .code-select { background: var(--gray-800); border-color: var(--gray-700); }
[data-theme="dark"] .code-select-header { background: var(--gray-700); border-bottom-color: var(--gray-600); }
[data-theme="dark"] .code-select-dropdown { background: var(--gray-800); color: var(--gray-100); border-color: var(--gray-600); }

.code-tabs-header {
    display: flex;
    gap: 4px;
    padding: 6px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.code-tab-button {
    padding: 6px 10px;
    font-size: 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--gray-700);
    cursor: pointer;
}

.code-tab-button.active {
    background: var(--white);
    border-color: var(--gray-200);
    color: var(--gray-900);
}

.code-tabs-body {
    padding: 0;
}

.code-tab-panel { display: none; }
.code-tab-panel.active { display: block; }

[data-theme="dark"] .code-tabs { background: var(--gray-800); border-color: var(--gray-700); }
[data-theme="dark"] .code-tabs-header { background: var(--gray-700); border-bottom-color: var(--gray-600); }
[data-theme="dark"] .code-tab-button { color: var(--gray-200); }
[data-theme="dark"] .code-tab-button.active { background: var(--gray-800); border-color: var(--gray-600); color: var(--gray-100); }

.schema-tree-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    background: var(--gray-50);
    border-bottom: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0; /* round top corners */
}

/* Schema composition (oneOf/anyOf/allOf) tabs */
.schema-composition {
    margin-top: 6px;
}
.schema-composition-title {
    font-size: 12px;
    color: var(--gray-600);
    margin: 6px 0 8px;
}
.schema-composition-title .schema-composition-selected {
    margin-left: 6px;
    color: var(--gray-700);
}

.schema-tabs-header {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 0;
}
.schema-tab-button {
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: var(--gray-50);
    color: var(--gray-700);
    cursor: pointer;
}
.schema-tab-button.active {
    background: var(--white);
    color: var(--gray-900);
    border-color: var(--gray-300);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.schema-tabs-panels {
    margin-top: 8px;
}
.schema-tab-panel { display: none; }
.schema-tab-panel.active { display: block; }

[data-theme="dark"] .schema-composition-title { color: var(--gray-400); }
[data-theme="dark"] .schema-composition-title .schema-composition-selected { color: var(--gray-300); }
[data-theme="dark"] .schema-tab-button {
    background: var(--gray-800);
    color: var(--gray-200);
    border-color: var(--gray-700);
}
[data-theme="dark"] .schema-tab-button.active {
    background: var(--gray-900);
    color: var(--gray-100);
    border-color: var(--gray-600);
}
[data-theme="dark"] .schema-tree-container { background: var(--gray-100); border-color: transparent; }
[data-theme="dark"] .schema-tree-header { background: var(--gray-100); border-bottom: none; }
[data-theme="dark"] .schema-tree-title { color: var(--gray-800); }
[data-theme="dark"] .schema-node { background: var(--gray-100); border-color: var(--gray-200); }
[data-theme="dark"] .schema-key { color: var(--primary-300); }
[data-theme="dark"] .schema-description, 
[data-theme="dark"] .schema-enum,
[data-theme="dark"] .schema-constraints { color: var(--gray-700); }
[data-theme="dark"] .schema-type { color: #38bdf8; background: rgba(56,189,248,0.12); }
[data-theme="dark"] .schema-required { color: #fca5a5; background: rgba(252,165,165,0.12); }

.schema-tree-title {
    margin: 0;
    font-family: 'Mazzard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
}

.schema-tree-badge {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-xs);
    color: var(--white);
}

.schema-tree-badge-body { background: #111827; }
.schema-tree-badge-params { background: #2563eb; }
.schema-tree-badge-parameters { background: #2563eb; }
.schema-tree-badge-query { background: #9333ea; }

.schema-tree {
    background: var(--gray-50);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Root node: remove border to avoid double framing */
.schema-tree > .schema-node {
    border: none;
    background: transparent;
}

.schema-node {
    border: 1px solid var(--gray-200); /* restore field border */
    border-radius: var(--radius-md);
    padding: var(--space-3);
    margin-bottom: var(--space-3);
    background: var(--white);
}

.schema-node-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.schema-toggle {
    width: 0;
    height: 0;
    border-left: 6px solid var(--gray-500);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    margin-right: 6px;
    cursor: pointer;
}

.schema-node.collapsed > .schema-children {
    display: none;
}

.schema-node.collapsed > .schema-node-header .schema-toggle {
    transform: rotate(0deg);
}

.schema-node:not(.collapsed) > .schema-node-header .schema-toggle {
    transform: rotate(90deg);
}

.schema-key {
    font-family: 'Mazzard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-700); /* higher contrast vs description */
}

.schema-type {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 12px;
    font-weight: 600;
    color: #0ea5e9;
    background: rgba(14,165,233,0.1);
    padding: 2px 6px;
    border-radius: var(--radius-xs);
}

.schema-required {
    font-size: 12px;
    color: #dc2626;
    background: rgba(220,38,38,0.08);
    padding: 2px 6px;
    border-radius: var(--radius-xs);
}

.schema-description {
    margin-top: var(--space-2);
    font-size: 13px;
    color: var(--gray-700);
}

.schema-enum {
    margin-top: var(--space-2);
    font-size: 13px;
    color: var(--gray-700);
}

.schema-enum code {
    background: var(--gray-100);
    padding: 1px 4px;
    border-radius: var(--radius-xs);
}

.schema-constraints {
    margin-top: var(--space-2);
    font-size: 13px;
    color: var(--gray-700);
}

.schema-constraints code {
    background: var(--gray-100);
    padding: 1px 4px;
    border-radius: var(--radius-xs);
    margin-right: 4px;
}

.schema-children {
    margin-top: var(--space-3);
    border-left: none; /* remove tall left line */
}

.schema-composition {
    margin-top: var(--space-3);
}

.schema-composition-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    margin-bottom: var(--space-2);
}

[data-theme="dark"] .schema-tree-container { background: var(--gray-100); border-color: transparent; }
[data-theme="dark"] .schema-tree-header { background: var(--gray-100); border-bottom-color: var(--gray-200); }
[data-theme="dark"] .schema-tree-header { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
[data-theme="dark"] .schema-tree-title { color: var(--gray-800); }
[data-theme="dark"] .schema-tree { background: var(--gray-100); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
[data-theme="dark"] .schema-node { background: var(--gray-100); border-color: var(--gray-200); }
[data-theme="dark"] .schema-key { color: var(--primary-300); }
[data-theme="dark"] .schema-description, 
[data-theme="dark"] .schema-enum,
[data-theme="dark"] .schema-constraints { color: var(--gray-700); }
[data-theme="dark"] .schema-type { color: #38bdf8; background: rgba(56,189,248,0.12); }
[data-theme="dark"] .schema-required { color: #fca5a5; background: rgba(252,165,165,0.12); }

/* Dark theme adjustments for API preview */
[data-theme="dark"] .api-request-preview { background: var(--gray-100); }
[data-theme="dark"] .api-request-preview-header { border-bottom-color: var(--gray-200); }
[data-theme="dark"] .api-request-url { color: var(--gray-900); }
[data-theme="dark"] .api-request-preview-content { background: var(--gray-100); }
[data-theme="dark"] .api-request-code-block { background: var(--gray-100); border-color: var(--gray-200); }
[data-theme="dark"] .api-request-code-header { background: var(--gray-200); border-bottom-color: var(--gray-300); }
[data-theme="dark"] .api-request-code-title { color: var(--gray-800); }
[data-theme="dark"] .api-request-code-content pre { color: var(--gray-900); }
[data-theme="dark"] .api-request-copy-btn { color: var(--gray-400); }
[data-theme="dark"] .api-request-copy-btn:hover { background: var(--gray-600); color: var(--gray-100); }

/* Notice component */
.notice {
    --notice-rgb: 99, 201, 158; /* default rgb as fallback */
    background: #fff;
    border: 1px solid rgba(var(--notice-rgb), 0.25);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: var(--space-4) 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.notice-header {
    background: rgba(var(--notice-rgb), 0.14);
    border-bottom: 1px solid rgba(var(--notice-rgb), 0.25);
    padding: 8px 12px;
}

.notice-header-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-icon {
    width: 16px;
    height: 16px;
    border-radius: 9999px;
    background: rgb(var(--notice-rgb));
    flex: 0 0 auto;
}

.notice-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: capitalize;
    color: #0f172a; /* slate-900 */
}

.notice-body {
    background: rgba(var(--notice-rgb), 0.06);
    padding: 12px 12px;
}

.notice-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06); /* subtle divider */
}

.notice-item:last-child { border-bottom: none; }

.notice-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 9999px;
    background: rgba(var(--notice-rgb), 0.18);
    color: #0f172a; /* slate-900 */
    font-weight: 600;
    font-size: 12px;
    line-height: 1;
    flex: 0 0 24px;
}

.notice-text {
    color: #0f172a;
}
.notice-text p { margin: 0; }
.notice-text p + p { margin-top: 8px; }

/* Notice types: sets --notice-rgb palette */
.notice-tip { --notice-rgb: 34, 197, 94; }      /* green */
.notice-info { --notice-rgb: 59, 130, 246; }    /* blue */
.notice-note { --notice-rgb: 99, 102, 241; }    /* indigo */
.notice-warning { --notice-rgb: 235, 59, 90; }  /* red from old design */

/* Dark theme adjustments for notices */
[data-theme="dark"] .notice {
    background: var(--gray-800);
    border-color: rgba(var(--notice-rgb), 0.35);
    box-shadow: none;
}
[data-theme="dark"] .notice-header {
    background: rgba(var(--notice-rgb), 0.22);
    border-bottom-color: rgba(var(--notice-rgb), 0.35);
}
[data-theme="dark"] .notice-title { color: var(--gray-100); }
[data-theme="dark"] .notice-body { background: rgba(var(--notice-rgb), 0.12); }
[data-theme="dark"] .notice-badge { color: var(--gray-100); }
[data-theme="dark"] .notice-text { color: var(--gray-100); }

/* Trigger type headings - subtle rounded background */
h4[id$="-trigger"] {
    display: inline-block;
    background: var(--gray-50);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

[data-theme="dark"] h4[id$="-trigger"] {
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray-100);
}

/* SDK method/function headings - subtle rounded background */
/* Targets h3 and h4 headings with IDs that don't contain hyphens (function names like init(), trackAddToCart(), etc.) */
h3[id]:not([id*="-"]):not([id=""]),
h4[id]:not([id*="-"]):not([id=""]):not([id$="trigger"]) {
    display: inline-block;
    background: var(--gray-50);
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

/* Maintain proper font sizes for different heading levels */
h3[id]:not([id*="-"]):not([id=""]) {
    font-size: 1.25em;
}

h4[id]:not([id*="-"]):not([id=""]):not([id$="trigger"]) {
    font-size: 1.1em;
}

[data-theme="dark"] h3[id]:not([id*="-"]):not([id=""]),
[data-theme="dark"] h4[id]:not([id*="-"]):not([id=""]):not([id$="trigger"]) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray-100);
}

/* Configuration Fields tables - modern styling */
.markdown-body table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.5rem 0;
    font-size: 14px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.markdown-body table thead {
    background: var(--gray-100);
}

.markdown-body table thead th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--gray-900);
    border-bottom: 2px solid var(--gray-200);
}

.markdown-body table tbody tr {
    border-bottom: 1px solid var(--gray-200);
    transition: background-color 0.15s ease;
}

.markdown-body table tbody tr:hover {
    background: var(--gray-50);
}

.markdown-body table tbody tr:last-child {
    border-bottom: none;
}

.markdown-body table tbody td {
    padding: 12px 16px;
    color: var(--gray-700);
    vertical-align: top;
}

.markdown-body table tbody td:first-child {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-weight: 600;
    color: var(--gray-900);
}

/* Dark theme for tables */
[data-theme="dark"] .markdown-body table {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .markdown-body table thead {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .markdown-body table thead th {
    color: var(--gray-100);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .markdown-body table tbody tr {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .markdown-body table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .markdown-body table tbody td {
    color: var(--gray-400);
}

[data-theme="dark"] .markdown-body table tbody td:first-child {
    color: var(--gray-100);
}

/* ==========================================================================
   MODERN HOMEPAGE REDESIGN - 2025
   Inspired by Stripe, Vercel, and Mintlify documentation sites
   ========================================================================== */

/* --------------------------------------------------------------------------
   Homepage Hero Section
   -------------------------------------------------------------------------- */
.homepage-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8rem 2rem 6rem;
}

/* Compact hero variant - reduced height */
.homepage-hero.homepage-hero-compact {
    min-height: auto;
    padding: 7rem 2rem 3rem;
}

.homepage-hero.homepage-hero-compact .homepage-hero-subtitle {
    margin-bottom: 0;
}

.homepage-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.homepage-hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.1), transparent),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(236, 72, 153, 0.08), transparent),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

[data-theme="dark"] .homepage-hero-gradient {
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.2), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.15), transparent),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(236, 72, 153, 0.1), transparent),
        linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.homepage-hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(148, 163, 184, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 100% 80% at 50% 20%, black 20%, transparent 70%);
}

[data-theme="dark"] .homepage-hero-grid {
    background-image: 
        linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
}

.homepage-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: homepage-glow-pulse 8s ease-in-out infinite;
}

.homepage-hero-glow-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    top: -100px;
    right: 10%;
    animation-delay: 0s;
}

.homepage-hero-glow-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #ec4899, #f97316);
    bottom: 10%;
    left: 5%;
    animation-delay: -4s;
}

@keyframes homepage-glow-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.homepage-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.homepage-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 9999px;
    color: #3b82f6;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: homepage-fade-in-up 0.6s ease-out;
}

.homepage-hero-badge svg {
    width: 1rem;
    height: 1rem;
}

[data-theme="dark"] .homepage-hero-badge {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.homepage-hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #0f172a;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    animation: homepage-fade-in-up 0.6s ease-out 0.1s both;
}

[data-theme="dark"] .homepage-hero-title {
    color: #f1f5f9;
}

.homepage-gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.homepage-hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: #64748b;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 2.5rem;
    animation: homepage-fade-in-up 0.6s ease-out 0.2s both;
}

[data-theme="dark"] .homepage-hero-subtitle {
    color: #94a3b8;
}

/* Hero Search Box */
.homepage-hero-search {
    max-width: 560px;
    margin: 0 auto 2rem;
    animation: homepage-fade-in-up 0.6s ease-out 0.3s both;
}

.homepage-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 0.25rem;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(59, 130, 246, 0);
    transition: all 0.3s ease;
}

.homepage-search-box:hover,
.homepage-search-box:focus-within {
    border-color: #3b82f6;
    box-shadow: 
        0 4px 6px -1px rgba(59, 130, 246, 0.1),
        0 10px 15px -3px rgba(59, 130, 246, 0.1),
        0 0 0 3px rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .homepage-search-box {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .homepage-search-box:hover,
[data-theme="dark"] .homepage-search-box:focus-within {
    border-color: #3b82f6;
}

.homepage-search-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #94a3b8;
    margin-left: 1rem;
    flex-shrink: 0;
}

.homepage-search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    color: #0f172a;
    outline: none;
    cursor: pointer;
}

.homepage-search-input::placeholder {
    color: #94a3b8;
}

[data-theme="dark"] .homepage-search-input {
    color: #f1f5f9;
}

[data-theme="dark"] .homepage-search-input::placeholder {
    color: #64748b;
}

.homepage-search-kbd {
    display: flex;
    gap: 0.25rem;
    margin-right: 1rem;
}

.homepage-search-kbd kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.375rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
}

[data-theme="dark"] .homepage-search-kbd kbd {
    background: #334155;
    border-color: #475569;
    color: #94a3b8;
}

/* Quick Start Links */
.homepage-quickstart {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    animation: homepage-fade-in-up 0.6s ease-out 0.4s both;
}

.homepage-quickstart-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #475569;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.homepage-quickstart-link svg {
    width: 1.125rem;
    height: 1.125rem;
    color: #3b82f6;
}

.homepage-quickstart-link:hover {
    background: #f8fafc;
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .homepage-quickstart-link {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .homepage-quickstart-link:hover {
    background: #334155;
    border-color: #3b82f6;
    color: #60a5fa;
}

/* --------------------------------------------------------------------------
   Homepage Products Section
   -------------------------------------------------------------------------- */
.homepage-products {
    padding: 3rem 2rem 5rem;
    background: #f8fafc;
}

/* --------------------------------------------------------------------------
   Product Boxes - Square card design
   -------------------------------------------------------------------------- */
.homepage-products-grid-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .homepage-products-grid-boxes {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }
}

@media (max-width: 600px) {
    .homepage-products-grid-boxes {
        grid-template-columns: 1fr;
        max-width: 320px;
    }
}

.homepage-product-box {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: homepage-card-appear 0.6s ease-out forwards;
}

.homepage-product-box:nth-child(1) { animation-delay: 0.1s; }
.homepage-product-box:nth-child(2) { animation-delay: 0.2s; }
.homepage-product-box:nth-child(3) { animation-delay: 0.3s; }

.homepage-product-box:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(59, 130, 246, 0.1);
    border-color: transparent;
}

[data-theme="dark"] .homepage-product-box {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .homepage-product-box:hover {
    box-shadow: 
        0 20px 40px -12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(59, 130, 246, 0.2);
}

.homepage-product-box-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.homepage-product-box:hover .homepage-product-box-glow {
    opacity: 1;
}

.homepage-product-box[data-product="core"] .homepage-product-box-glow {
    background: radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.12), transparent 70%);
}

.homepage-product-box[data-product="hood"] .homepage-product-box-glow {
    background: radial-gradient(ellipse at 50% 0%, rgba(16, 185, 129, 0.12), transparent 70%);
}

.homepage-product-box[data-product="adex"] .homepage-product-box-glow {
    background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.12), transparent 70%);
}

.homepage-product-box-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.homepage-product-box-icon img {
    width: 44px;
    height: 44px;
    transition: transform 0.3s ease;
}

.homepage-product-box:hover .homepage-product-box-icon img {
    transform: scale(1.1);
}

.homepage-product-box-icon-core {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.homepage-product-box-icon-hood {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.homepage-product-box-icon-adex {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
}

[data-theme="dark"] .homepage-product-box-icon-core {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0.15) 100%);
}

[data-theme="dark"] .homepage-product-box-icon-hood {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0.15) 100%);
}

[data-theme="dark"] .homepage-product-box-icon-adex {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(139, 92, 246, 0.15) 100%);
}

.homepage-product-box-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

[data-theme="dark"] .homepage-product-box-title {
    color: #f1f5f9;
}

.homepage-product-box-badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.75rem;
}

[data-theme="dark"] .homepage-product-box-badge {
    color: #94a3b8;
}

.homepage-product-box-desc {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

[data-theme="dark"] .homepage-product-box-desc {
    color: #94a3b8;
}

.homepage-product-box-links {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

.homepage-product-box-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.homepage-product-box-link svg {
    width: 1rem;
    height: 1rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.homepage-product-box-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* User Guide link - blue */
.homepage-product-box-link-user:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.homepage-product-box-link-user svg {
    color: #3b82f6;
}

.homepage-product-box-link-user:hover svg {
    color: #ffffff;
}

/* Developer link - purple */
.homepage-product-box-link-dev:hover {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: #ffffff;
}

.homepage-product-box-link-dev svg {
    color: #8b5cf6;
}

.homepage-product-box-link-dev:hover svg {
    color: #ffffff;
}

/* API link - green */
.homepage-product-box-link-api:hover {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.homepage-product-box-link-api svg {
    color: #10b981;
}

.homepage-product-box-link-api:hover svg {
    color: #ffffff;
}

[data-theme="dark"] .homepage-product-box-link {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .homepage-product-box-link:hover {
    color: #ffffff;
}

[data-theme="dark"] .homepage-products {
    background: #0f172a;
}

.homepage-container {
    max-width: 1200px;
    margin: 0 auto;
}

.homepage-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.homepage-section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #3b82f6;
    margin-bottom: 1rem;
}

[data-theme="dark"] .homepage-section-label {
    color: #60a5fa;
}

.homepage-section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

[data-theme="dark"] .homepage-section-title {
    color: #f1f5f9;
}

.homepage-section-desc {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

[data-theme="dark"] .homepage-section-desc {
    color: #94a3b8;
}

/* Products Grid */
.homepage-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .homepage-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Product Cards */
.homepage-product-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    animation: homepage-card-appear 0.6s ease-out forwards;
}

.homepage-product-card:nth-child(1) { animation-delay: 0.1s; }
.homepage-product-card:nth-child(2) { animation-delay: 0.2s; }
.homepage-product-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes homepage-card-appear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.homepage-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px -12px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(59, 130, 246, 0.1);
    border-color: transparent;
}

[data-theme="dark"] .homepage-product-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .homepage-product-card:hover {
    box-shadow: 
        0 20px 40px -12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(59, 130, 246, 0.2);
}

.homepage-product-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.homepage-product-card:hover .homepage-product-card-glow {
    opacity: 1;
}

.homepage-product-card[data-product="core"] .homepage-product-card-glow {
    background: radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.15), transparent 70%);
}

.homepage-product-card[data-product="hood"] .homepage-product-card-glow {
    background: radial-gradient(ellipse at 50% 0%, rgba(16, 185, 129, 0.15), transparent 70%);
}

.homepage-product-card[data-product="adex"] .homepage-product-card-glow {
    background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.15), transparent 70%);
}

.homepage-product-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.homepage-product-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.homepage-product-icon img {
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.homepage-product-card:hover .homepage-product-icon img {
    transform: scale(1.1);
}

.homepage-product-icon-core {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.homepage-product-icon-hood {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.homepage-product-icon-adex {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
}

[data-theme="dark"] .homepage-product-icon-core {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
}

[data-theme="dark"] .homepage-product-icon-hood {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
}

[data-theme="dark"] .homepage-product-icon-adex {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.homepage-product-badge {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.375rem 0.75rem;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 8px;
}

[data-theme="dark"] .homepage-product-badge {
    background: #334155;
    color: #94a3b8;
}

.homepage-product-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

[data-theme="dark"] .homepage-product-title {
    color: #f1f5f9;
}

.homepage-product-desc {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .homepage-product-desc {
    color: #94a3b8;
}

.homepage-product-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.homepage-product-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.homepage-product-link svg {
    width: 1rem;
    height: 1rem;
    color: #94a3b8;
    transition: all 0.2s ease;
}

.homepage-product-link:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.homepage-product-link:hover svg {
    color: #ffffff;
    transform: translateX(4px);
}

.homepage-product-link-api:hover {
    background: #10b981;
    border-color: #10b981;
}

[data-theme="dark"] .homepage-product-link {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .homepage-product-link:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   Homepage Resources Section
   -------------------------------------------------------------------------- */
.homepage-resources {
    padding: 6rem 2rem;
    background: #ffffff;
}

[data-theme="dark"] .homepage-resources {
    background: #1e293b;
}

.homepage-resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .homepage-resources-grid {
        grid-template-columns: 1fr;
    }
}

.homepage-resource-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    animation: homepage-card-appear 0.6s ease-out forwards;
}

.homepage-resource-card:nth-child(1) { animation-delay: 0.1s; }
.homepage-resource-card:nth-child(2) { animation-delay: 0.2s; }
.homepage-resource-card:nth-child(3) { animation-delay: 0.3s; }
.homepage-resource-card:nth-child(4) { animation-delay: 0.4s; }

.homepage-resource-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.homepage-resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.homepage-resource-card:hover::before {
    opacity: 1;
}

[data-theme="dark"] .homepage-resource-card {
    background: #0f172a;
    border-color: #334155;
}

[data-theme="dark"] .homepage-resource-card:hover {
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.3);
}

/* Resource card color variants */
.homepage-resource-card-guides {
    color: #3b82f6;
}

.homepage-resource-card-api {
    color: #10b981;
}

.homepage-resource-card-dev {
    color: #8b5cf6;
}

.homepage-resource-card-changelog {
    color: #f59e0b;
}

.homepage-resource-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.homepage-resource-card:hover .homepage-resource-icon {
    transform: scale(1.05);
}

.homepage-resource-card-guides .homepage-resource-icon {
    background: rgba(59, 130, 246, 0.1);
}

.homepage-resource-card-api .homepage-resource-icon {
    background: rgba(16, 185, 129, 0.1);
}

.homepage-resource-card-dev .homepage-resource-icon {
    background: rgba(139, 92, 246, 0.1);
}

.homepage-resource-card-changelog .homepage-resource-icon {
    background: rgba(245, 158, 11, 0.1);
}

[data-theme="dark"] .homepage-resource-card-guides .homepage-resource-icon {
    background: rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .homepage-resource-card-api .homepage-resource-icon {
    background: rgba(16, 185, 129, 0.15);
}

[data-theme="dark"] .homepage-resource-card-dev .homepage-resource-icon {
    background: rgba(139, 92, 246, 0.15);
}

[data-theme="dark"] .homepage-resource-card-changelog .homepage-resource-icon {
    background: rgba(245, 158, 11, 0.15);
}

.homepage-resource-icon svg {
    width: 28px;
    height: 28px;
}

.homepage-resource-content {
    flex: 1;
}

.homepage-resource-content h3,
.homepage-resource-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.375rem;
}

[data-theme="dark"] .homepage-resource-content h3,
[data-theme="dark"] .homepage-resource-title {
    color: #f1f5f9;
}

.homepage-resource-content p {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

[data-theme="dark"] .homepage-resource-content p {
    color: #94a3b8;
}

.homepage-resource-arrow {
    width: 24px;
    height: 24px;
    color: #94a3b8;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.homepage-resource-card:hover .homepage-resource-arrow {
    transform: translateX(6px);
}

/* --------------------------------------------------------------------------
   Homepage CTA Section
   -------------------------------------------------------------------------- */
.homepage-cta {
    position: relative;
    padding: 6rem 2rem;
    overflow: hidden;
}

.homepage-cta-bg {
    position: absolute;
    inset: 0;
}

.homepage-cta-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 30%, #8b5cf6 70%, #a855f7 100%);
}

.homepage-cta-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.homepage-cta-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.homepage-cta-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.homepage-cta-icon svg {
    width: 40px;
    height: 40px;
    color: #ffffff;
}

.homepage-cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.homepage-cta-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.homepage-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.homepage-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.homepage-cta-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.homepage-cta-btn-primary {
    background: #ffffff;
    color: #3b82f6;
}

.homepage-cta-btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.homepage-cta-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    backdrop-filter: blur(8px);
}

.homepage-cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Homepage Animations
   -------------------------------------------------------------------------- */
@keyframes homepage-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   Homepage Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .homepage-hero {
        padding: 6rem 1.5rem 4rem;
        min-height: auto;
    }
    
    .homepage-hero-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .homepage-quickstart {
        flex-direction: column;
        align-items: stretch;
    }
    
    .homepage-quickstart-link {
        justify-content: center;
    }
    
    .homepage-products,
    .homepage-resources,
    .homepage-cta {
        padding: 4rem 1.5rem;
    }
    
    .homepage-product-card {
        padding: 1.5rem;
    }
    
    .homepage-resource-card {
        padding: 1.25rem;
    }
    
    .homepage-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .homepage-cta-btn {
        justify-content: center;
    }
}

/* RTL Support for Homepage */
[dir="rtl"] .homepage-hero-content,
[dir="rtl"] .homepage-section-header {
    text-align: center;
}

[dir="rtl"] .homepage-product-link svg,
[dir="rtl"] .homepage-resource-arrow {
    transform: scaleX(-1);
}

[dir="rtl"] .homepage-product-link:hover svg {
    transform: scaleX(-1) translateX(4px);
}

[dir="rtl"] .homepage-resource-card:hover .homepage-resource-arrow {
    transform: scaleX(-1) translateX(6px);
}

[dir="rtl"] .homepage-resource-card::before {
    left: auto;
    right: 0;
}
