/* Cyber Manufacturing Theme for Data Repository */

/* Import base cyber theme variables */
:root {
    --cyber-primary: #55e6d1;
    --cyber-secondary: #a892ff;
    --cyber-accent: #f5c96a;
    --neon-blue: #55e6d1;
    --neon-purple: #a892ff;
    --neon-pink: #a892ff;
    --neon-green: #5fb37e;
    --cyber-dark: #070a12;
    --cyber-darker: #05070d;
    --cyber-grid: rgba(151, 169, 206, 0.04);
    --glow-intensity: 0 0 12px;
}

/* Override body background for search pages */
body {
    background: #070a12;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated cyber background */
.cyber-search-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* The studio grid: 40px, near-invisible, and still. The drifting cyan lattice was the
   loudest thing separating this page from Sensor Research Studio, which draws the same
   grid at 4% and never moves it. */
.cyber-grid-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(151, 169, 206, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(151, 169, 206, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* One warm pool of light near the top, as the studio hero has. */
.cyber-search-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 52% -15%, rgba(85, 230, 209, 0.08), transparent 38%);
    pointer-events: none;
}

.data-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.data-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--cyber-primary);
    border-radius: 50%;
    filter: blur(1px);
    animation: floatParticle 15s infinite linear;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Main container styling */
.container-fluid {
    background: rgba(14, 19, 31, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--cyber-primary);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    box-shadow:
        0 0 30px rgba(85, 230, 209, 0.3),
        inset 0 0 30px rgba(85, 230, 209, 0.05);
}

/* Enhanced Search Bar with Cyber Theme */
.search-bar-top {
    background: linear-gradient(135deg, rgba(85, 230, 209, 0.1) 0%, rgba(168, 146, 255, 0.1) 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
}

.search-bar-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--cyber-primary), var(--cyber-secondary), var(--cyber-primary));
    background-size: 200% 100%;
    animation: borderFlow 3s linear infinite;
    z-index: -1;
    padding: 2px;
    border-radius: 12px;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

@keyframes borderFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.search-form-enhanced {
    display: flex;
    position: relative;
}

.search-input-enhanced {
    flex-grow: 1;
    background: rgba(7, 10, 18, 0.9);
    border: 2px solid var(--neon-blue);
    color: var(--cyber-primary);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 18px;
    padding: 12px 20px;
    border-radius: 8px 0 0 8px;
    transition: all 0.3s;
    margin-right: 0;
}

.search-input-enhanced:focus {
    outline: none;
    box-shadow:
        0 0 20px rgba(85, 230, 209, 0.5),
        inset 0 0 20px rgba(85, 230, 209, 0.1);
    background: rgba(7, 10, 18, 0.9);
}

.search-input-enhanced::placeholder {
    color: rgba(85, 230, 209, 0.5);
}

.btn-search {
    background: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-purple) 100%);
    border: none;
    color: white;
    padding: 0 30px;
    font-size: 18px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-search::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-search:hover::before {
    width: 300px;
    height: 300px;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(85, 230, 209, 0.5);
}

/* Cyber Action Toolbar */
.search-action-toolbar {
    background: linear-gradient(135deg, rgba(168, 146, 255, 0.2) 0%, rgba(85, 230, 209, 0.2) 100%);
    border: 1px solid var(--neon-purple);
    border-radius: 10px;
    padding: 10px 15px;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
    box-shadow:
        0 0 20px rgba(168, 146, 255, 0.3),
        inset 0 0 20px rgba(168, 146, 255, 0.1);
}

.toolbar-btn {
    background: rgba(7, 10, 18, 0.8);
    border: 1px solid var(--cyber-primary);
    color: var(--cyber-primary);
    padding: 8px 15px;
    border-radius: 6px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.toolbar-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(85, 230, 209, 0.3), transparent);
    transition: left 0.5s;
}

.toolbar-btn:hover::before {
    left: 100%;
}

.toolbar-btn:hover {
    background: rgba(85, 230, 209, 0.2);
    box-shadow: 0 0 15px rgba(85, 230, 209, 0.5);
    transform: translateY(-2px);
}

.btn-primary-action {
    border-color: var(--neon-green);
    color: var(--neon-green);
}

.btn-primary-action:hover {
    background: rgba(95, 179, 126, 0.2);
    box-shadow: 0 0 15px rgba(95, 179, 126, 0.5);
}

.btn-danger-action {
    border-color: #ff7a8d;
    color: #ff7a8d;
}

.btn-danger-action:hover {
    background: rgba(255, 122, 141, 0.2);
    box-shadow: 0 0 15px rgba(255, 122, 141, 0.5);
}

/* Cyber styled counters and info */
.item-counter, .results-info {
    background: rgba(7, 10, 18, 0.8);
    border: 1px solid var(--cyber-primary);
    border-radius: 20px;
    padding: 5px 15px;
    color: var(--cyber-primary);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    box-shadow: 0 0 10px rgba(85, 230, 209, 0.3);
}

.counter-number {
    color: var(--neon-green);
    font-weight: bold;
    text-shadow: 0 0 5px rgba(95, 179, 126, 0.5);
}

/* Cyber Search Result Cards */
.search-result-card {
    background: rgba(14, 19, 31, 0.9);
    border: 1px solid var(--cyber-primary);
    border-radius: 12px;
    margin-bottom: 20px;
    transition: all 0.3s;
    overflow: hidden;
    position: relative;
}

.search-result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyber-primary), transparent);
    animation: scanline 3s linear infinite;
}

@keyframes scanline {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.search-result-card:hover {
    border-color: var(--neon-purple);
    box-shadow:
        0 0 30px rgba(168, 146, 255, 0.4),
        inset 0 0 20px rgba(168, 146, 255, 0.1);
    transform: translateY(-3px);
}

.search-result-card.selected {
    border: 2px solid var(--neon-green);
    background: rgba(95, 179, 126, 0.05);
    box-shadow: 0 0 20px rgba(95, 179, 126, 0.3);
}

.card-header-enhanced {
    background: linear-gradient(135deg, rgba(85, 230, 209, 0.1) 0%, rgba(168, 146, 255, 0.1) 100%);
    padding: 20px;
    border-bottom: 1px solid rgba(85, 230, 209, 0.3);
}

.search-result-title a {
    color: var(--cyber-primary);
    text-decoration: none;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 600;
    transition: all 0.3s;
    text-shadow: 0 0 5px rgba(85, 230, 209, 0.3);
}

.search-result-title a:hover {
    color: var(--neon-purple);
    text-shadow: 0 0 10px rgba(168, 146, 255, 0.5);
}

/* Cyber metadata tags */
.metadata-tag {
    background: rgba(7, 10, 18, 0.8);
    border: 1px solid var(--cyber-primary);
    color: var(--cyber-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(85, 230, 209, 0.3);
}

.tag-document {
    border-color: var(--neon-green);
    color: var(--neon-green);
    box-shadow: 0 0 10px rgba(95, 179, 126, 0.3);
}

.tag-datatype {
    border-color: var(--neon-purple);
    color: var(--neon-purple);
    box-shadow: 0 0 10px rgba(168, 146, 255, 0.3);
}

/* Cyber card action buttons */
.btn-card-action {
    background: rgba(7, 10, 18, 0.8);
    border: 1px solid var(--cyber-primary);
    color: var(--cyber-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 11px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-card-action:hover {
    background: rgba(85, 230, 209, 0.2);
    box-shadow: 0 0 15px rgba(85, 230, 209, 0.5);
    transform: translateY(-1px);
}

.btn-add-entry {
    border-color: var(--neon-green);
    color: var(--neon-green);
}

.btn-add-entry:hover {
    background: rgba(95, 179, 126, 0.2);
    box-shadow: 0 0 15px rgba(95, 179, 126, 0.5);
}

.btn-add-entry.added {
    background: rgba(108, 117, 125, 0.3);
    border-color: #6c757d;
    color: #6c757d;
    cursor: not-allowed;
}

/* Abstract tooltip cyber style */
.abstract-tooltip {
    background: rgba(14, 19, 31, 0.95);
    border: 1px solid var(--cyber-primary);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 0 30px rgba(85, 230, 209, 0.5);
    backdrop-filter: blur(10px);
    color: var(--cyber-primary);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Preview Modal Cyber Style */
.preview-modal-overlay {
    background: rgba(3, 5, 8, 0.8);
    backdrop-filter: blur(5px);
}

.preview-modal {
    background: rgba(14, 19, 31, 0.95);
    border: 2px solid var(--cyber-primary);
    border-radius: 15px;
    box-shadow: 0 0 50px rgba(85, 230, 209, 0.5);
}

.preview-modal-header {
    background: linear-gradient(135deg, rgba(85, 230, 209, 0.2) 0%, rgba(168, 146, 255, 0.2) 100%);
    border-bottom: 1px solid var(--cyber-primary);
    padding: 20px;
}

.preview-modal-header h2 {
    color: var(--cyber-primary);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(85, 230, 209, 0.5);
}

.close-modal {
    color: var(--cyber-primary);
    transition: all 0.3s;
}

.close-modal:hover {
    color: var(--neon-purple);
    text-shadow: 0 0 10px rgba(168, 146, 255, 0.5);
}

.preview-item {
    background: rgba(7, 10, 18, 0.5);
    border-left: 4px solid var(--cyber-primary);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    color: var(--cyber-primary);
}

.preview-item-number {
    color: var(--neon-green);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(95, 179, 126, 0.5);
}

/* Toast Notifications Cyber Style */
.toast {
    background: rgba(14, 19, 31, 0.95);
    border: 1px solid var(--cyber-primary);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(85, 230, 209, 0.5);
    color: var(--cyber-primary);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.toast-success {
    border-color: var(--neon-green);
    box-shadow: 0 0 20px rgba(95, 179, 126, 0.5);
}

.toast-error {
    border-color: #ff7a8d;
    box-shadow: 0 0 20px rgba(255, 122, 141, 0.5);
}

.toast-info {
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(85, 230, 209, 0.5);
}

/* Sticky elements cyber enhancement */
.sticky-top-section {
    background: rgba(14, 19, 31, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--cyber-primary);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 15px;
    box-shadow: 0 5px 20px rgba(85, 230, 209, 0.3);
}

/* Pagination cyber style */
.pagination-compact .page-link {
    background: rgba(7, 10, 18, 0.8);
    border: 1px solid var(--cyber-primary);
    color: var(--cyber-primary);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    transition: all 0.3s;
}

.pagination-compact .page-link:hover {
    background: rgba(85, 230, 209, 0.2);
    box-shadow: 0 0 10px rgba(85, 230, 209, 0.5);
}

.pagination-compact .page-item.active .page-link {
    background: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-purple) 100%);
    border-color: var(--neon-purple);
    color: white;
    box-shadow: 0 0 15px rgba(168, 146, 255, 0.5);
}

/* Sidebar facets cyber style */
#sidebar {
    background: rgba(14, 19, 31, 0.95);
    border: 1px solid var(--cyber-primary);
    border-radius: 12px;
    padding: 15px;
    backdrop-filter: blur(10px);
    box-shadow:
        0 0 20px rgba(85, 230, 209, 0.2),
        inset 0 0 20px rgba(85, 230, 209, 0.05);
}

/* Override Bootstrap card styles for facets */
#sidebar .card {
    background: rgba(7, 10, 18, 0.6) !important;
    border: 1px solid rgba(85, 230, 209, 0.3) !important;
    border-radius: 8px !important;
    margin-bottom: 15px !important;
}

#sidebar .card-header {
    background: linear-gradient(135deg, rgba(85, 230, 209, 0.1) 0%, rgba(168, 146, 255, 0.1) 100%) !important;
    border-bottom: 1px solid rgba(85, 230, 209, 0.3) !important;
    color: var(--neon-green) !important;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-size: 13px !important;
    padding: 10px 15px !important;
    text-shadow: 0 0 5px rgba(95, 179, 126, 0.5);
}

#sidebar .card-body {
    background: transparent !important;
    padding: 10px !important;
}

#sidebar .list-group {
    background: transparent !important;
}

#sidebar .list-group-item {
    background: rgba(7, 10, 18, 0.3) !important;
    border: none !important;
    border-bottom: 1px solid rgba(85, 230, 209, 0.1) !important;
    color: var(--cyber-primary) !important;
    padding: 8px 10px !important;
    margin-bottom: 2px;
    transition: all 0.3s;
}

#sidebar .list-group-item:hover {
    background: rgba(85, 230, 209, 0.1) !important;
    transform: translateX(3px);
}

#sidebar .list-group-item:last-child {
    border-bottom: none !important;
}

/* Badge styling for count */
#sidebar .badge-secondary {
    background: rgba(168, 146, 255, 0.3) !important;
    color: var(--neon-purple) !important;
    border: 1px solid rgba(168, 146, 255, 0.5) !important;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace !important;
    font-size: 10px !important;
    padding: 3px 6px !important;
    font-weight: 600 !important;
    text-shadow: 0 0 3px rgba(168, 146, 255, 0.5);
}

#facet-container {
    color: var(--cyber-primary);
}

/* Facet fieldset styling */
#facet-container fieldset {
    border: 1px solid rgba(85, 230, 209, 0.3);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
    background: rgba(7, 10, 18, 0.5);
}

#facet-container legend {
    color: var(--neon-green);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    padding: 0 10px;
    text-shadow: 0 0 5px rgba(95, 179, 126, 0.5);
}

#facet-container input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--cyber-primary);
    border-radius: 3px;
    background: rgba(7, 10, 18, 0.8);
    cursor: pointer;
    position: relative;
    margin-right: 8px;
    vertical-align: middle;
}

#facet-container input[type="checkbox"]:checked {
    background: var(--cyber-primary);
    box-shadow: 0 0 10px rgba(85, 230, 209, 0.5);
}

#facet-container input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: var(--cyber-dark);
    font-weight: bold;
}

#facet-container label {
    color: #55e6d1;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    margin-bottom: 5px;
    font-size: 14px;
}

#facet-container label:hover {
    color: var(--neon-green);
    text-shadow: 0 0 5px rgba(95, 179, 126, 0.5);
    transform: translateX(3px);
}

/* Facet count badges */
#facet-container .facet-count {
    color: var(--neon-purple);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 11px;
    margin-left: 5px;
    padding: 2px 6px;
    background: rgba(168, 146, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(168, 146, 255, 0.3);
}

/* Ensure all text in sidebar is visible */
#sidebar, #sidebar * {
    color: var(--cyber-primary) !important;
}

#sidebar a {
    color: var(--neon-green) !important;
    text-decoration: none;
}

#sidebar a:hover {
    color: var(--neon-purple) !important;
    text-shadow: 0 0 5px rgba(168, 146, 255, 0.5);
}

/* Scrollbar cyber style */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(7, 10, 18, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--cyber-primary), var(--neon-purple));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--neon-purple), var(--cyber-primary));
}

/* Performance warning cyber style */
.performance-warning {
    background: rgba(255, 122, 141, 0.1);
    border-left: 3px solid #ff7a8d;
    border-radius: 6px;
    padding: 8px 12px;
    color: #ff7a8d;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 11px;
    margin-top: 8px;
    animation: warningPulse 2s ease-in-out infinite;
}

@keyframes warningPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.performance-warning i {
    color: #ff7a8d;
    margin-right: 8px;
}

/* Orbitron / Exo 2 are gone with the old theme; the studio uses Inter and SFMono, both
   of which are system-resolved. (This @import was dead anyway — @import is only honoured
   at the top of a stylesheet, and this sits 750 lines in.) */

/* Table styling for search results */
.search-result-card table {
    color: var(--cyber-primary);
}

.search-result-card th {
    color: var(--neon-purple) !important;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}

.search-result-card td {
    color: var(--cyber-primary);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Loading animation for buttons */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(85, 230, 209, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(85, 230, 209, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(85, 230, 209, 0);
    }
}

.loading {
    animation: pulse 1.5s infinite;
}

/* Divider line cyber style */
.divider-vertical {
    background: linear-gradient(180deg, transparent, var(--cyber-primary), transparent);
    width: 2px;
    height: 25px;
    margin: 0 10px;
}
/* ═══════════════════════════════════════════════════════════════════════════
   Data Driven Twin alignment
   ───────────────────────────────────────────────────────────────────────────
   The rules above draw every surface with a full-strength accent border and a
   20–30px coloured glow. Sensor Research Studio draws the same surfaces with a
   single hairline at 15% and a soft dark shadow, and lets the accent appear only
   in text, dots and the one active control. These overrides restate the surface
   treatment in those terms; the palette itself is already converted in place, so
   nothing here changes a hue, only how loudly it is drawn.
   Appended rather than edited inline so the original treatment stays readable
   and one deletion reverts the whole alignment.
   ═══════════════════════════════════════════════════════════════════════════ */

.container-fluid,
.search-action-toolbar,
.item-counter, .results-info,
.search-result-card,
.abstract-tooltip,
.preview-modal,
.toast,
.sticky-top-section,
#sidebar {
    border: 1px solid rgba(151, 169, 206, .15);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .025),
        0 24px 60px rgba(0, 0, 0, .16);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.container-fluid,
.search-result-card,
.preview-modal,
#sidebar {
    background: rgba(14, 19, 31, .9);
    border-radius: 18px;
}

.search-action-toolbar,
.sticky-top-section {
    background: rgba(9, 13, 22, .8);
    border-radius: 12px;
}

/* Selected result: the studio marks state with a tinted fill and a slightly
   stronger line, never with a halo. */
.search-result-card.selected {
    border-color: rgba(85, 230, 209, .28);
    background: linear-gradient(120deg, rgba(85, 230, 209, .10), rgba(85, 230, 209, .03));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

/* Inputs: one dark well, hairline border, accent only on focus. */
.search-input-enhanced,
#facet-container input[type="text"] {
    background: rgba(0, 0, 0, .38);
    border: 1px solid rgba(151, 169, 206, .28);
    border-radius: 8px;
    color: #f5f7fc;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
}
.search-input-enhanced:focus {
    border-color: #55e6d1;
    box-shadow: 0 0 0 2px rgba(85, 230, 209, .14);
    background: rgba(0, 0, 0, .46);
}
.search-input-enhanced::placeholder { color: #8d97ad; opacity: .6; }

/* Buttons: mono label, hairline, tinted fill — the studio run-button shape. */
.toolbar-btn,
.btn-card-action,
.pagination-compact .page-link {
    border: 1px solid rgba(151, 169, 206, .28);
    background: rgba(255, 255, 255, .035);
    color: #8d97ad;
    border-radius: 8px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    box-shadow: none;
}
.toolbar-btn:hover,
.btn-card-action:hover,
.pagination-compact .page-link:hover {
    border-color: rgba(85, 230, 209, .4);
    background: rgba(85, 230, 209, .1);
    color: #f5f7fc;
    box-shadow: none;
    transform: none;
}
.btn-search {
    background: rgba(85, 230, 209, .12);
    border: 1px solid rgba(85, 230, 209, .32);
    color: #55e6d1;
    border-radius: 8px;
}
.btn-search:hover {
    background: rgba(85, 230, 209, .2);
    box-shadow: none;
    transform: none;
}

/* The travelling gradient on the search bar has no counterpart in the studio. */
.search-bar-top { background: rgba(9, 13, 22, .8); border-radius: 12px; }
.search-bar-top::before { display: none; }

/* Drifting particles read as decoration; the studio's only motion is the one
   live-status pulse. Keep them, but at an opacity that stops competing. */
.data-particle { opacity: .25 !important; filter: blur(2px); }

/* Metadata chips: the studio pill. */
.metadata-tag {
    border: 1px solid rgba(151, 169, 206, .22);
    background: rgba(255, 255, 255, .04);
    color: #8d97ad;
    border-radius: 999px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 10px;
    box-shadow: none;
}

/* Body copy follows the studio's type stack rather than Bootstrap's default. */
.search-result-card,
.search-result-card p,
#sidebar {
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #f5f7fc;
}
