/* ==========================================================================
   NEO-BRUTALISM DESIGN SYSTEM - FALCON API UI (MATCHING TARGET SCREENSHOT PERFECTLY)
   ========================================================================== */

:root {
    /* Neo-Brutalism Colors */
    --neo-yellow: #ffe600;
    --neo-mint: #00ffaa;
    --neo-pink: #ff2a85;
    --neo-cyan: #00e5ff;
    --neo-purple: #b066fe;
    --neo-orange: #ff7d00;
    --neo-red: #ff3344;
    
    --primary-color: var(--neo-yellow);
    --primary-hover: #ffd000;
    --secondary-color: var(--neo-mint);
    --accent-color: var(--neo-pink);
    --success-color: var(--neo-mint);
    --error-color: var(--neo-red);
    --warning-color: var(--neo-orange);
    
    /* Background & Surfaces (Dark Slate Neo Brutalism) */
    --background-color: #080a14;
    --card-background: #121626;
    --surface-color: #1a2036;
    --text-color: #ffffff;
    --text-muted: #94a3b8;
    --border-color: #282f4d;
    --highlight-color: var(--neo-yellow);
    
    /* Neo Borders & Shadows */
    --neo-border: 2px solid #282f4d;
    --neo-border-dark: 2px solid #000000;
    --neo-shadow: 4px 4px 0px #000000;
    --neo-shadow-yellow: 6px 6px 0px var(--neo-yellow);
    --neo-shadow-pink: 6px 6px 0px var(--neo-pink);
    
    /* Rounded Dimensions matching target.jpg */
    --border-radius-sm: 8px;
    --border-radius: 20px;
    --border-radius-lg: 24px;
    
    --side-nav-width: 250px; 
    --side-nav-collapsed-width: 75px; 
    --header-height: 75px;
    
    --transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;
}

/* Dark Mode System (Exclusive Theme) */
:root, body, body.dark-mode {
    --background-color: #080a14;
    --card-background: #121626;
    --surface-color: #1a2036;
    --text-color: #ffffff;
    --text-muted: #94a3b8;
    --border-color: #282f4d;
    --neo-border: 2px solid #282f4d;
    --neo-shadow: 4px 4px 0px #000000;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    max-width: 100vw;
    overflow-x: clip;
}

html {
    scroll-behavior: smooth;
    font-size: 15px;
    scroll-padding-top: calc(var(--header-height) + 20px); 
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.5;
    position: relative;
}

/* Background Glow Overlay */
.bg-glow {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: 
        linear-gradient(to right, rgba(255, 230, 0, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 230, 0, 0.035) 1px, transparent 1px);
    background-size: 36px 36px;
}

/* Custom Scrollbars */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--background-color); }
::-webkit-scrollbar-thumb { background: var(--neo-yellow); border: 1.5px solid #000; }
::-webkit-scrollbar-thumb:hover { background: var(--neo-pink); }

body.no-scroll { overflow: hidden; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5em; 
    color: var(--text-color);
    text-transform: uppercase;
    word-break: break-word;
}

.mono, code, pre, .code-block {
    font-family: 'Share Tech Mono', 'JetBrains Mono', monospace;
}

p { margin-bottom: 1rem; }

a {
    color: var(--neo-yellow);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--neo-pink);
    text-decoration: none; 
}

/* Title Highlight */
.gradient-text {
    background-color: var(--neo-yellow);
    color: #000000 !important;
    padding: 3px 12px;
    border: 2.5px solid #000000;
    box-shadow: 4px 4px 0px #000000;
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 900;
    transform: rotate(-1deg);
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    max-width: 100%;
}

/* Buttons Neo Brutalism */
.btn {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    padding: 0.55rem 1.25rem; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 0.85rem;
}

.btn:focus, .btn:focus-visible { 
    outline: none;
    box-shadow: 0 0 0 3px var(--neo-pink);
}

.btn-primary {
    background-color: var(--neo-yellow);
    color: #000000 !important;
    border: 2px solid #000000 !important;
    box-shadow: var(--neo-shadow);
}

.btn-primary:hover {
    background-color: var(--neo-mint);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000000;
    color: #000000 !important; 
}

/* Badge Pill */
.badge-pill {
    display: inline-flex;
    align-items: center;
    background-color: var(--neo-yellow);
    color: #000000;
    padding: 0.25rem 0.7rem; 
    font-size: 0.78rem; 
    border-radius: var(--border-radius-sm);
    font-weight: 800;
    border: 2px solid #000000;
    box-shadow: 2px 2px 0px #000000;
    font-family: 'Share Tech Mono', monospace;
    white-space: nowrap;
}

/* Remove 3-line Burger Toggle Button */
.menu-toggle {
    display: none !important;
}

/* Layout Structure */
.main-wrapper {
    min-height: 100vh;
    margin-left: var(--side-nav-width);
    transition: margin-left var(--transition); 
    display: flex;
    flex-direction: column;
    width: calc(100% - var(--side-nav-width));
    padding-top: var(--header-height);
}

.main-wrapper.nav-collapsed {
    margin-left: var(--side-nav-collapsed-width);
    width: calc(100% - var(--side-nav-collapsed-width));
}

/* Side Navigation Bar */
.side-nav {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: var(--side-nav-width);
    background-color: var(--background-color);
    border-right: 2.5px solid var(--border-color);
    z-index: 1000;
    transition: width var(--transition); 
    display: flex;
    flex-direction: column;
    padding: var(--space-md) 0;
    overflow-x: hidden;
}

.side-nav.collapsed {
    width: var(--side-nav-collapsed-width);
}

.side-nav-logo {
    display: flex;
    align-items: center;
    padding: 0 var(--space-md) var(--space-md) var(--space-md);
    margin-bottom: var(--space-md); 
    gap: var(--space-sm);
    border-bottom: 2px solid var(--border-color);
}

.side-nav-logo img {
    border: 2px solid #000;
    box-shadow: 2px 2px 0px #000;
}

#sideNavName {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-color);
}

.side-nav.collapsed #sideNavName,
.side-nav.collapsed #versionHeader {
    display: none;
}

.side-nav-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 var(--space-sm);
    flex: 1;
}

.side-nav-link {
    display: flex;
    align-items: center;
    padding: 0.65rem 0.85rem;
    color: var(--text-muted);
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    gap: 10px;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.side-nav-link:hover {
    color: var(--neo-yellow);
    background-color: var(--surface-color);
    border-color: var(--border-color);
}

.side-nav-link.active {
    color: #000000 !important;
    background-color: var(--neo-yellow) !important;
    border: 2px solid #000000 !important;
    box-shadow: 3px 3px 0px var(--neo-pink) !important;
}

.side-nav-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.nav-collapse-btn {
    margin: var(--space-sm) var(--space-md) 0;
    background-color: var(--surface-color);
    border: 2px solid var(--border-color);
    box-shadow: 2.5px 2.5px 0px #000;
    color: var(--text-color);
    padding: 0.4rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.nav-collapse-btn:hover {
    background-color: var(--neo-pink);
    color: #000;
    border-color: #000;
}

/* Main Header (Search & Notification Bell) */
.main-header {
    height: var(--header-height);
    background-color: rgba(10, 14, 26, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 2.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-xl);
    position: fixed;
    top: 0;
    right: 0;
    left: var(--side-nav-width);
    z-index: 990;
    transition: left var(--transition);
}

.main-wrapper.nav-collapsed .main-header {
    left: var(--side-nav-collapsed-width);
}

.header-logo { display: none; }

.search-container {
    flex: 1;
    max-width: 450px;
}

.search-container .input-group {
    background-color: var(--card-background);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 3.5px 3.5px 0px #000000;
    transition: var(--transition);
    overflow: hidden;
}

.search-container .input-group:focus-within {
    border-color: var(--neo-yellow);
    box-shadow: 4px 4px 0px var(--neo-yellow);
}

.search-container .input-group-text {
    background-color: var(--neo-yellow);
    color: #000;
    border: none;
    border-right: 2px solid #000;
    font-weight: 800;
    padding: 0 0.85rem;
    font-size: 0.88rem;
}

.search-container .form-control {
    background-color: transparent;
    border: none;
    color: var(--text-color);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.88rem;
    padding: 0.5rem 0.75rem;
}

.search-container .form-control::placeholder {
    color: #cbd5e1 !important;
    opacity: 1 !important;
    font-weight: 600;
}

body:not(.dark-mode) .search-container .form-control::placeholder {
    color: #64748b !important;
}

.search-container .form-control:focus { box-shadow: none; }

.clear-search {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0 0.75rem;
    cursor: pointer;
}

.clear-search:hover { color: var(--neo-pink); }

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.notification-bell {
    background-color: var(--card-background);
    border: 2px solid var(--border-color);
    box-shadow: 2.5px 2.5px 0px #000;
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.notification-bell:hover {
    background-color: var(--neo-pink);
    color: #000;
    border-color: #000;
    transform: translate(-1.5px, -1.5px);
    box-shadow: 4px 4px 0px #000;
}

.notification-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    background-color: var(--neo-pink);
    border: 1.5px solid #000;
    border-radius: 50%;
    display: none;
}

.notification-badge.active { display: block; }

/* Main Content Area */
#mainContent {
    flex: 1;
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    padding: var(--space-xl);
}

/* Hero Section (Card & Banner Stacked Layout) */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: var(--space-xxl);
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    width: 100%;
}

.hero-card-wrapper {
    background-image: linear-gradient(180deg, rgba(8, 10, 20, 0.35) 0%, rgba(8, 10, 20, 0.9) 100%), url('/src/banner.jpg');
    background-size: cover;
    background-position: center;
    border: 2.5px solid var(--border-color);
    border-radius: 22px;
    box-shadow: 6px 6px 0px #000000;
    padding: 1.5rem;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.pill-badge {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.38rem 1.2rem;
    border-radius: 30px;
    border: 2px solid #000000;
    box-shadow: 3.5px 3.5px 0px #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.pill-yellow {
    background-color: #ffe600;
    color: #000000;
    transform: rotate(-2.5deg);
}

.pill-yellow:hover {
    transform: rotate(0deg) scale(1.03);
}

.pill-cyan {
    background-color: #00e5ff;
    color: #000000;
    transform: rotate(2.5deg);
}

.pill-cyan:hover {
    transform: rotate(0deg) scale(1.03);
}

.system-info-box {
    background-color: #0c0f1d;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 4px 4px 0px #000000;
    margin-bottom: 0;
}

.system-info-content {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.25rem;
    text-align: left;
}

.info-row {
    display: flex;
    gap: 0.75rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.92rem;
    line-height: 1.5;
}

.info-label {
    color: #00e5ff;
    font-weight: 800;
    min-width: 85px;
    flex-shrink: 0;
}

.info-value {
    color: #f1f5f9;
}

body:not(.dark-mode) .info-value {
    color: #0f172a;
}

.hero-visual {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.5rem;
}

.banner-container {
    border: 2.5px solid #000000;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 5px 5px 0px var(--neo-yellow);
    transition: var(--transition);
    max-width: 800px;
    width: 100%;
}

.banner-container:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--neo-pink);
}

.banner {
    width: 100%;
    height: auto;
    display: block;
}

/* API Section */
.api-section {
    width: 100%;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: var(--space-xs);
    color: var(--text-color);
}

.section-description {
    color: #94a3b8 !important;
    margin-bottom: var(--space-xl);
    font-size: 1rem;
}

/* Category Filters Neo */
.category-filter-wrapper {
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: var(--space-xxl);
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.category-filter-scroll {
    display: flex;
    gap: 10px;
}

.category-filter-btn {
    background-color: var(--card-background);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    box-shadow: 2.5px 2.5px 0px #000000;
    padding: 0.5rem 1.1rem;
    border-radius: var(--border-radius-sm);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.category-filter-btn:hover {
    background-color: var(--surface-color);
    border-color: var(--neo-yellow);
    transform: translate(-1.5px, -1.5px);
    box-shadow: 4px 4px 0px #000000;
}

.category-filter-btn.active {
    background-color: var(--neo-yellow) !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
    box-shadow: 3.5px 3.5px 0px var(--neo-pink) !important;
}

/* Category Sections */
.category-section {
    margin-bottom: 3.5rem;
    width: 100%;
}

.category-header {
    font-size: 1.5rem;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    color: #ffffff;
    text-transform: uppercase;
}

/* API Cards matching target.jpg (Round Brutalist Cards + Clear High-Contrast Fonts) */
.api-card {
    background-color: #121626;
    border: 2px solid #282f4d;
    border-radius: 20px;
    box-shadow: 4px 4px 0px #000000;
    padding: 1.5rem 1.35rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
    width: 100%;
}

.api-card:hover {
    transform: translate(-3px, -3px);
    border-color: var(--neo-yellow);
    box-shadow: 7px 7px 0px #000000;
}

.api-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 1rem;
}

.api-name {
    font-size: 1.25rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    color: #ffffff !important;
    word-break: break-word;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.api-desc {
    color: #cbd5e1 !important; /* TERANG & SANGAT JELAS TERBACA (silver high contrast) */
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.55;
    margin-bottom: 1.25rem;
    flex: 1;
}

/* Method Badges */
.method-badge {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 900;
    font-family: 'Share Tech Mono', monospace;
    border-radius: 8px;
    text-transform: uppercase;
    border: 1.5px solid #000000;
    box-shadow: 2px 2px 0px #000000;
    color: #000000 !important;
}

.method-badge.method-get { background-color: var(--neo-cyan); }
.method-badge.method-post { background-color: var(--neo-yellow); }
.method-badge.method-get-post { background-color: var(--neo-cyan); }

/* Status Badges */
.status-badge {
    font-size: 0.75rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    padding: 0.25rem 0.65rem;
    border-radius: 8px;
    border: 1.5px solid #000000;
    box-shadow: 2px 2px 0px #000000;
    text-transform: uppercase;
    white-space: nowrap;
    color: #000000 !important;
}

.status-ready { background-color: var(--neo-mint); }
.status-maintenance { background-color: var(--neo-orange); }

.get-api-btn {
    background-color: var(--neo-yellow);
    color: #000000 !important;
    border: 1.5px solid #000000 !important;
    box-shadow: 2px 2px 0px #000000;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 800;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
}

.get-api-btn:hover {
    background-color: var(--neo-pink);
    transform: translate(-1.5px, -1.5px);
    box-shadow: 3.5px 3.5px 0px #000000;
}

/* Footer Neo */
.main-footer {
    background-color: var(--background-color);
    border-top: 2.5px solid var(--border-color);
    padding: var(--space-xl);
    margin-top: auto;
    width: 100%;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
    max-width: 1350px;
    margin: 0 auto;
}

.copyright {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.88rem;
    color: #cbd5e1 !important;
}

.footer-links {
    display: flex;
    gap: var(--space-sm);
}

.footer-link {
    background-color: var(--card-background);
    border: 1.5px solid var(--border-color);
    box-shadow: 2.5px 2.5px 0px #000;
    color: var(--text-color);
    padding: 0.4rem 0.85rem;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 0.82rem;
}

.footer-link:hover {
    background-color: var(--neo-yellow);
    color: #000;
    border-color: #000;
    transform: translate(-1.5px, -1.5px);
    box-shadow: 4px 4px 0px #000;
}

/* Theme Switcher Toggle */
.theme-switcher {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: var(--surface-color);
    border: 1.5px solid #000000;
    box-shadow: 2px 2px 0px #000000;
    border-radius: 34px;
    transition: var(--transition);
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: var(--neo-yellow);
    border: 1.5px solid #000000;
    border-radius: 50%;
    transition: var(--transition);
}

input:checked + .slider { background-color: var(--neo-purple); }
input:checked + .slider:before { transform: translateX(22px); background-color: var(--neo-mint); }

/* Prevent Background Scroll Bleed when Modal is Open */
body.modal-open {
    overflow: hidden !important;
}

.modal {
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

/* Modal Neo Refined */
.modal-dialog {
    max-width: 750px;
    margin: 1.75rem auto;
    max-height: 90vh;
}

.modal-content {
    background-color: var(--card-background);
    border: 3px solid var(--neo-yellow);
    border-radius: var(--border-radius);
    box-shadow: 8px 8px 0px #000000;
    padding: var(--space-md);
    color: var(--text-color);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-body {
    max-height: calc(85vh - 140px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-right: 6px;
}

.modal-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Clear & Visible Neo Close X Button */
.modal-header .btn-close {
    background: var(--neo-pink) !important;
    background-image: none !important;
    border: 2px solid #000000 !important;
    box-shadow: 2.5px 2.5px 0px #000000 !important;
    opacity: 1 !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: var(--border-radius-sm) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 1rem !important;
    color: #000000 !important;
    padding: 0 !important;
    transition: var(--transition) !important;
}

.modal-header .btn-close:hover {
    background: var(--neo-yellow) !important;
    transform: translate(-1px, -1px) !important;
    box-shadow: 3.5px 3.5px 0px #000000 !important;
    color: #000000 !important;
}

.modal-title {
    font-size: 1.3rem;
    color: var(--neo-yellow);
    margin-bottom: 0;
}

.modal-desc {
    color: #cbd5e1 !important;
    font-size: 0.88rem;
    font-weight: 500;
}

.custom-modal-tabs {
    background-color: var(--background-color);
    padding: 5px;
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--border-color);
    display: flex;
    gap: 6px;
    margin-bottom: var(--space-md);
}

.custom-modal-tabs .nav-item {
    flex: 1;
}

.custom-modal-tabs .nav-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 8px 16px;
    border: 1.5px solid transparent;
    background: transparent;
    text-transform: uppercase;
}

.custom-modal-tabs .nav-link.active {
    background-color: var(--neo-yellow);
    color: #000000;
    border: 2px solid #000000;
    box-shadow: 3px 3px 0px #000000;
}

/* Endpoint Box */
.endpoint-container {
    background-color: #060812;
    border: 2px solid var(--neo-yellow);
    border-radius: var(--border-radius-sm);
    box-shadow: 4px 4px 0px #000000;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.endpoint-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--neo-yellow);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

#apiEndpoint {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    color: #00ffaa;
    background: transparent;
    margin: 0;
    padding: 0;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Query Input Parameter Box - Single Clean Container */
.query-input-container {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.param-container {
    background-color: var(--card-background);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    box-shadow: 4px 4px 0px #000000;
    padding: 1.15rem;
    margin-bottom: 1.25rem;
}

.param-form-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--neo-yellow);
    margin-bottom: 1rem;
    text-transform: uppercase;
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.param-group {
    margin-bottom: 1rem;
}

.param-label-container {
    display: flex;
    align-items: center;
    margin-bottom: 0.4rem;
}

.form-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    color: #ffffff;
    margin: 0;
}

.required-indicator {
    color: var(--neo-pink);
    font-weight: 900;
}

.custom-input, select.custom-input, input.custom-input {
    background-color: #060812 !important;
    color: var(--neo-yellow) !important;
    border: 2px solid var(--border-color) !important;
    border-radius: var(--border-radius-sm) !important;
    padding: 0.55rem 0.85rem !important;
    font-family: 'Share Tech Mono', monospace !important;
    font-size: 0.88rem !important;
    box-shadow: 2px 2px 0px #000000 !important;
    transition: var(--transition) !important;
    width: 100%;
}

select.custom-input, select.form-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2300f3ff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.8' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.85rem center !important;
    background-size: 1.25em 1.25em !important;
    padding-right: 2.5rem !important;
    cursor: pointer !important;
    color: #00f3ff !important;
    font-weight: 700 !important;
}

select.custom-input option, select.form-select option {
    background-color: #0c0f1d !important;
    color: #ffffff !important;
    padding: 0.65rem !important;
    font-size: 0.9rem !important;
}

.custom-input:focus, select.custom-input:focus, input.custom-input:focus {
    border-color: #00f3ff !important;
    box-shadow: 3.5px 3.5px 0px #00f3ff !important;
    outline: none !important;
}

/* Terminal Window Style (macOS Interactive Console Style) */
.terminal-window {
    background-color: #0c0f1d;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 4px 4px 0px #000000;
    overflow: hidden;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.terminal-header {
    background-color: #060812;
    border-bottom: 2px solid var(--border-color);
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.terminal-dots .dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.4);
}

.terminal-dots .dot-red { background-color: #ff5f56; }
.terminal-dots .dot-yellow { background-color: #ffbd2e; }
.terminal-dots .dot-green { background-color: #27c93f; }

.terminal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.terminal-body {
    padding: 1rem;
    background-color: #060812;
}

.terminal-body pre.code-block {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    color: #00ffaa;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 350px;
    overflow: auto;
}

/* Light Mode Terminal Window Override */
body:not(.dark-mode) .terminal-window {
    background-color: #121626 !important;
    border: 2.5px solid #000000 !important;
    box-shadow: 4px 4px 0px #000000 !important;
}

body:not(.dark-mode) .terminal-header {
    background-color: #060812 !important;
    border-bottom: 2px solid #000000 !important;
}

body:not(.dark-mode) .terminal-body {
    background-color: #060812 !important;
}

body:not(.dark-mode) .terminal-body pre.code-block {
    color: #00ffaa !important;
}

/* Copy Buttons */
.copy-btn {
    background-color: var(--neo-yellow);
    color: #000000;
    border: 1.5px solid #000000;
    box-shadow: 2px 2px 0px #000000;
    padding: 0.25rem 0.65rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
}

.copy-btn:hover {
    background-color: var(--neo-pink);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px #000000;
}

/* Toast Neo & High-Contrast Close Button (Centered) */
.toast-container {
    position: fixed;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    max-width: 90vw;
    width: max-content;
}

.toast {
    background-color: var(--neo-yellow);
    color: #000000;
    border: 2.5px solid #000000;
    box-shadow: 5px 5px 0px #000000;
    border-radius: var(--border-radius-sm);
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    overflow: hidden;
}

.toast-header {
    background-color: #000000;
    color: var(--neo-yellow);
    border-bottom: 2px solid #000000;
    padding: 0.5rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toast-header .toast-title {
    color: var(--neo-yellow) !important;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
}

.toast-header .btn-close, .toast .btn-close {
    background: var(--neo-pink) !important;
    background-image: none !important;
    border: 1.5px solid #000000 !important;
    box-shadow: 1.5px 1.5px 0px #000000 !important;
    opacity: 1 !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 0.85rem !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.toast-header .btn-close:hover, .toast .btn-close:hover {
    background: var(--neo-yellow) !important;
    color: #000000 !important;
}

.toast-body {
    padding: 0.75rem 0.85rem;
    color: #000000;
    font-weight: 700;
}

/* Loading Screen & Modal Spinner SVG Animations */
#loadingScreen {
    position: fixed;
    inset: 0;
    background-color: var(--background-color);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#apiResponseLoading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

#apiResponseLoading p {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    color: var(--neo-yellow);
    margin-top: 0.75rem;
    text-transform: uppercase;
}

.spinner-wrapper p {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--neo-yellow);
    text-transform: uppercase;
    margin-top: var(--space-sm);
}

.spinner-logo { 
    animation: rotate 1.5s linear infinite; 
}
.spinner-path { 
    stroke: var(--surface-color); 
}
.spinner-animation { 
    stroke: var(--neo-yellow); 
    stroke-dasharray: 90, 150; 
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

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

@keyframes dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -35px;
    }
    100% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -124px;
    }
}

/* Media Queries (Responsive Tuning) */
@media (max-width: 992px) {
    .main-wrapper { 
        margin-left: 0 !important;
        width: 100% !important;
        padding-top: 65px !important;
    }
    
    .side-nav { 
        display: none !important;
    }

    .header-logo { 
        display: flex; 
        align-items: center;
        margin-right: 0.35rem;
        flex-shrink: 0;
    }

    .header-logo-img {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        border: 2px solid #000;
        box-shadow: 2px 2px 0px #000;
    }
    
    .main-header {
        left: 0 !important;
        width: 100% !important;
        padding: 0 1rem;
        height: 65px;
        gap: 0.75rem;
    }

    .search-container {
        max-width: none;
        flex: 1;
        min-width: 0;
    }
    
    .header-actions {
        flex-shrink: 0;
        margin-left: 0.25rem;
    }
}

@media (max-width: 576px) {
    #mainContent { 
        padding: 1rem 0.85rem; 
    }

    .main-header {
        height: 65px;
        padding: 0 0.75rem;
        gap: 0.6rem;
    }

    .search-container .form-control {
        font-size: 0.82rem;
        padding: 0.4rem 0.6rem;
    }

    .notification-bell {
        width: 38px;
        height: 38px;
    }

    .api-card {
        padding: 1.25rem;
        border-radius: 18px;
    }
}