:root {
    --bg-color: #0f172a;
    /* Slate 900 */
    --text-primary: #f1f5f9;
    /* Slate 100 */
    --text-secondary: #94a3b8;
    /* Slate 400 */
    --accent: #38bdf8;
    /* Sky 400 */
    --accent-glow: rgba(56, 189, 248, 0.3);
    --panel-bg: rgba(30, 41, 59, 0.7);
    /* Slate 800 with opacity */
    --border-color: rgba(255, 255, 255, 0.1);
    --font-ui: 'Inter', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
}

.hidden {
    display: none !important;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-ui);
    height: 100vh;
    /* Fixed App Height */
    overflow: hidden;
    /* No Page Scroll */
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ... (Blobs) ... */

/* Settings Bar - Sticky */
.settings-bar {
    display: flex;
    gap: 1.5rem;
    background: rgba(15, 23, 42, 0.85);
    /* Slightly more opaque for overlay */
    padding: 0.8rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    align-items: center;
    /* Sticky Magic Restored */
    position: sticky;
    top: 1rem;
    /* Pin 1rem from top */
    z-index: 100;
    align-self: center;
    /* Center in container */
    margin: 0 auto 2rem auto;
    /* Center horizontal, space bottom */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    /* Shadow for depth */
    width: fit-content;
    max-width: 95vw;
    transition: all 0.3s ease;
}

/* Ambient Background Blobs */
.background-glob {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: -200px;
    left: -200px;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.glob-2 {
    top: auto;
    bottom: -200px;
    left: auto;
    right: -200px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    /* Purple tint */
}

/* Layout */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    /* Prevent page scroll, force panel scroll */
    transition: margin-right 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.container.sidebar-open {
    margin-right: 50vw;
    width: 50vw;
    max-width: none;
    /* Remove max-width restriction when split */
}

.header {
    text-align: center;
    margin-bottom: 2rem;
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    margin-bottom: 0.5rem;
}

.header .highlight {
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Settings Bar - Sticky Toolbar */
.settings-bar {
    display: flex;
    gap: 1.5rem;
    background: rgba(15, 23, 42, 0.95);
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    /* Sticky */
    position: sticky;
    top: 0;
    /* Stick to very top */
    z-index: 50;
    width: 100%;
    justify-content: center;
    backdrop-filter: blur(12px);
    margin: 0;
    /* Remove margins */
    border-radius: 0;
    /* No radius */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.toggle-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    user-select: none;
}

.toggle-option:hover {
    color: var(--text-primary);
}

.toggle-label {
    transition: color 0.2s;
}

/* Custom Checkbox */
input[type="checkbox"] {
    accent-color: var(--accent);
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 40vw;
    /* 40% of viewport width */
    height: 100vh;
    background: #0f172a;
    /* Slate 900 solid for readability */
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 100;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.hidden {
    transform: translateX(100%);
}

/* Sidebar Resizer */
.sidebar-resizer {
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    /* Grabbable area */
    height: 100%;
    cursor: col-resize;
    z-index: 102;
    /* Above sidebar, below toggle handle if needed */
    transition: background 0.2s;
}

.sidebar-resizer:hover,
.sidebar-resizer.resizing {
    background: var(--accent);
    /* Visual cue */
}

/* Sidebar Toggle Handle */
.sidebar-toggle {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 60px;
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 8px 0 0 8px;
    z-index: 103;
    /* Above resizer */
    /* ... rest of styles ... */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    backdrop-filter: blur(8px);
    transition: background 0.2s, color 0.2s;
}

.sidebar-toggle:hover {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent);
}

/* Active Toggle Text Color */
.toggle-option input:checked~.toggle-label,
.toggle-wrapper input:checked~.toggle-label {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.sidebar-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.8);
}

.sidebar-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Sidebar Open Title Color */
.sidebar:not(.hidden) .sidebar-header h3 {
    color: var(--accent);
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}

.text-glow {
    color: var(--accent) !important;
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.icon-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.agent-controls {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    /* Added for side-by-side inputs */
    align-items: center;
}

.agent-select {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: #1e293b;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-ui);
    outline: none;
    cursor: pointer;
}

.agent-select:focus {
    border-color: var(--accent);
}

.agents-container {
    flex: 1;
    position: relative;
    background: #fff;
    /* Agents are white-bg usually */
    overflow: hidden;
}

.agent-frame {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    background: white;
}

.hidden-frame {
    visibility: hidden;
    z-index: -1;
}

.agent-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    text-align: center;
    color: #64748b;
    background: #0f172a;
    /* Back to dark for placeholder */
}

.warning-text {
    font-size: 0.8rem;
    color: #ef4444;
    /* Red 500 */
    margin-top: 1rem;
}

/* Views System */
.views-container {
    flex: 1;
    position: relative;
    width: 100%;
    min-height: 0;
    /* Important */
    display: flex;
    flex-direction: column;
}

.view {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.active-view {
    opacity: 1;
    pointer-events: auto;
    display: flex;
    animation: fadeIn 0.4s ease-out forwards;
}

.hidden-view {
    display: none;
    opacity: 0;
    pointer-events: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Panels */
.panel {
    flex: 1;
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    min-height: 0;
    /* Fix nested flex scrolling */
}

/* Structure Dropdown */
.structure-select {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(56, 189, 248, 0.2);
    outline: none;
    cursor: pointer;
    font-family: var(--font-ui);
    max-width: 200px;
}

.structure-select option {
    background: #0f172a;
    color: var(--text-primary);
}

.panel:focus-within {
    box-shadow: 0 0 0 2px var(--border-color), 0 8px 30px rgba(0, 0, 0, 0.3);
}

.panel-header {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.4);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Actions & Footer */
.actions {
    display: flex;
    gap: 0.5rem;
}

.view-footer {
    padding: 1rem;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.2);
}

/* Buttons */
.secondary-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 0.35rem 0.85rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.secondary-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.back-btn {
    color: var(--accent);
    background: rgba(56, 189, 248, 0.05);
}

.back-btn:hover {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent);
}

.primary-btn {
    background: linear-gradient(135deg, #38bdf8, #3b82f6);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.5);
}

.primary-btn:active {
    transform: translateY(0);
}

.pulse-glow {
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(56, 189, 248, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
    }
}

/* Badge */
.badge {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

/* Input Area */
textarea {
    flex: 1;
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.5rem;
    color: var(--text-primary);
    font-family: var(--font-code);
    font-size: 0.95rem;
    line-height: 1.6;
    resize: none;
    outline: none;
}

textarea::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

/* Scrollbar tweaks */
textarea::-webkit-scrollbar {
    width: 10px;
}

textarea::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 5px;
}

/* Output Area */
.code-wrapper {
    flex: 1;
    overflow: auto;
    position: relative;
    background: #0d1117;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 16px;
    /* Standard size */
    height: 16px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(148, 163, 184, 0.5);
    border-radius: 10px;
    border: 3px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.7);
}

/* Firefox Scrollbar Support & Layout Fix */
.code-wrapper {
    scrollbar-width: auto;
    scrollbar-color: rgba(148, 163, 184, 0.5) transparent;
    min-height: 0;
    flex: 1 1 0;
    /* Ensure strict flex sizing */
    min-width: 0;
    /* Prevent blowout */
}

/* Ensure highlight.js takes full height */
pre {
    margin: 0;
    min-height: 100%;
}

code.hljs {
    padding: 1.5rem !important;
    font-family: var(--font-code);
    font-size: 0.9rem;
    line-height: 1.6;
    background: transparent !important;
    /* Wrap Text Logic */
    white-space: pre-wrap !important;
    word-break: break-word !important;
}

/* Custom Highlight API */
::highlight(autohighlight-marker) {
    background-color: #facc15 !important;
    color: #000000 !important;
    text-shadow: none !important;
    /* Remove any glowing effects */
}

::highlight(autohighlight-marker)::selection {
    background-color: #facc15 !important;
    color: #000000 !important;
}

/* Fix Iframe Dragging Issue */
body.resizing-active iframe {
    pointer-events: none;
}

/* Pulse Animation for Focus */
@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0px rgba(56, 189, 248, 0.4);
        border-color: var(--accent);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.3);
        border-color: #facc15;
    }

    100% {
        box-shadow: 0 0 0 0px rgba(56, 189, 248, 0.4);
        border-color: var(--accent);
    }
}

.pulse-focus {
    animation: pulse-border 1.5s infinite ease-in-out;
    border: 2px solid var(--accent) !important;
    z-index: 50;
}

/* Toggle Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--text-secondary);
    /* Visible border when off */
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 3px;
    background-color: var(--text-secondary);
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked+.slider {
    background-color: var(--accent);
    /* Sky Blue */
    border-color: var(--accent);
}

input:checked+.slider:before {
    transform: translateX(24px);
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Hover & Focus state */
.switch:hover .slider:before {
    background-color: #fff;
}

input:focus+.slider {
    box-shadow: 0 0 0 2px var(--accent-glow);
}

/* Toggle Button (Text Inside) Styles */
.toggle-button-label {
    position: relative;
    display: inline-flex;
    cursor: pointer;
    user-select: none;
}

.toggle-button-label input {
    display: none;
    /* Hide real checkbox */
}

.toggle-button-label .btn-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    /* Slightly rounded rect or pill */
    color: var(--text-secondary);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 100px;
    /* Consistent width */
}

/* Hover */
.toggle-button-label:hover .btn-content {
    background: rgba(30, 41, 59, 1);
    border-color: var(--text-secondary);
}

/* Checked State */
.toggle-button-label input:checked+.btn-content {
    background: var(--accent);
    color: #0f172a;
    border-color: var(--accent);
    font-weight: 600;
    box-shadow: 0 2px 8px var(--accent-glow);
}

/* Toggle Icons */
.btn-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    stroke-width: 3;
    transition: all 0.2s ease;
}

/* Default State (Unchecked) => Show Cross, Hide Check */
.icon-check {
    display: none;
}

.icon-cross {
    display: block;
    opacity: 0.6;
}

/* Checked State => Show Check, Hide Cross */
.toggle-button-label input:checked+.btn-content .icon-check {
    display: block;
}

.toggle-button-label input:checked+.btn-content .icon-cross {
    display: none;
}

/* App Logo (Top Left of Header) */
.app-logo {
    position: absolute;
    left: 0;
    top: 8px;
    /* Slight offset for optical alignment with H1 */
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.app-logo:hover {
    transform: scale(1.05) rotate(-5deg);
}

@media (max-width: 768px) {
    .app-logo {
        position: relative;
        left: auto;
        top: auto;
        margin-bottom: 1rem;
        width: 64px;
        height: 64px;
    }
}

/* Structure Sidebar (Left Panel) */
.structure-sidebar {
    width: 240px;
    background: rgba(15, 23, 42, 0.3);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: row;
    flex-shrink: 0;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.structure-sidebar.hidden {
    display: none;
}

.structure-sidebar.collapsed {
    width: 40px;
}

/* Toggle Strip */
.structure-header {
    width: 40px;
    flex-shrink: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1rem;
    background: rgba(15, 23, 42, 0.2);
}

.structure-vertical-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    width: 100%;
    outline: none;
    transition: color 0.2s;
}

.structure-vertical-btn:hover {
    color: var(--accent);
}

.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.icon-chevron {
    transition: transform 0.3s;
}

.structure-sidebar.collapsed .icon-chevron {
    transform: rotate(180deg);
}

/* List Container */
.structure-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 200px;
    /* Keep content width fixed during slide */
}

.structure-item {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    font-family: var(--font-code);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
    /* Prevent squashing */
}


/* Header Collapse Logic */
header#app-header {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 500px;
    opacity: 1;
    overflow: hidden;
}

header#app-header.collapsed {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
    padding: 0;
    pointer-events: none;
}

/* Chevron Rotation */
.rotate-180 {
    transform: rotate(180deg);
}

/* Header Tools & Search */
.header-tools {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #0d1117;
    /* Matches Render View */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    height: 32px;
    width: 200px;
    transition: all 0.2s;
}

.search-box:focus-within {
    border-color: var(--accent);
    width: 260px;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.1);
}

.search-input {
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: var(--font-ui);
    width: 100%;
    padding: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}

.search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.search-count {
    font-size: 0.7rem;
    color: var(--text-secondary);
    white-space: nowrap;
    padding-right: 0.4rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    margin-right: 0.1rem;
}

.search-actions {
    display: flex;
    gap: 2px;
}

.icon-btn-mini {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn-mini:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Search Highlights */
::highlight(search-result) {
    background-color: rgba(253, 224, 71, 0.4);
    color: inherit;
}

::highlight(search-active) {
    background-color: #facc15;
    color: #000;
}

/* SEO/Input View Scrolling Override */
#input-view {
    overflow-y: auto;
    padding-bottom: 4rem;
    /* Space for footer */
}

#input-view .input-panel {
    flex: 0 0 auto;
    min-height: 70vh;
    margin-bottom: 2rem;
}

/* Custom Scrollbar for Input View */
#input-view::-webkit-scrollbar {
    width: 10px;
}

#input-view::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 5px;
}