/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

/* Reset */
body {
    margin: 0;
    padding: 0;
    background-color: #09090b;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Canvas background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* App content above canvas */
#react-entry-point {
    position: relative;
    z-index: 1;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #09090b;
}
::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 4px;
}

/* Pipeline step hover */
div[id*="pipeline-step"]:hover {
    border-color: #ffffff !important;
    background-color: #18181b !important;
}

/* Tab styling overrides */
.nav-tabs {
    border-bottom: 1px solid #27272a !important;
}

.nav-tabs .nav-link {
    border: none !important;
    border-bottom: 2px solid transparent !important;
    background-color: transparent !important;
    padding: 12px 20px !important;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    color: #fafafa !important;
    border-bottom-color: #ffffff44 !important;
}

.nav-tabs .nav-link.active {
    background-color: transparent !important;
    color: #ffffff !important;
    border-bottom: 2px solid #ffffff !important;
}

/* Contact link hover */
a[href^="mailto"]:hover {
    background-color: #ffffff !important;
    color: #09090b !important;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: #ffffff33;
    color: #fafafa;
}

/* =========================================================================
   Dash 4.0 — Dark theme via CSS custom properties
   ========================================================================= */
:root {
    --Dash-Fill-Inverse-Strong: #18181b;
    --Dash-Fill-Interactive-Strong: #6366f1;
    --Dash-Fill-Interactive-Weak: #27272a;
    --Dash-Fill-Disabled: #27272a;
    --Dash-Stroke-Strong: #27272a;
    --Dash-Text-Strong: #fafafa;
    --Dash-Text-Weak: #71717a;
    --Dash-Text-Disabled: #52525b;
    --Dash-Shading-Strong: rgba(0, 0, 0, 0.5);
    --Dash-Shading-Weak: rgba(0, 0, 0, 0.3);
    --Dash-Spacing: 4px;
}

/* Dropdown trigger: ensure dark bg, visible text */
.dash-dropdown {
    color: #fafafa !important;
    min-height: 38px;
    font-size: 0.9rem;
}
.dash-dropdown:hover {
    border-color: #3f3f46 !important;
}

/* Multi-select value pills */
.dash-dropdown-value-item {
    background-color: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 4px;
    padding: 2px 6px;
    margin: 2px;
    font-size: 0.85rem;
}
.dash-dropdown-value-item::before {
    color: #71717a;
}

/* Dropdown icon */
.dash-dropdown-trigger-icon {
    color: #71717a !important;
    fill: #71717a !important;
}

/* Dropdown popup */
.dash-dropdown-content {
    z-index: 9999 !important;
}

/* Search input inside dropdown */
.dash-dropdown-search-container {
    background: #18181b !important;
}
.dash-dropdown-search {
    color: #fafafa !important;
}

/* Options */
.dash-dropdown-option:hover {
    background-color: #27272a !important;
}

/* Accent color for checkboxes/radios in dropdown */
.dash-options-list-option-checkbox {
    accent-color: #6366f1;
}

/* Radio buttons dark theme */
.form-check-input {
    background-color: #18181b;
    border-color: #3f3f46;
}
.form-check-input:checked {
    background-color: #6366f1;
    border-color: #6366f1;
}
.form-check-input:focus {
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
    border-color: #6366f1;
}

/* DBC Input dark theme */
.form-control {
    background-color: #18181b !important;
    color: #fafafa !important;
    border-color: #27272a !important;
}
.form-control:focus {
    background-color: #18181b !important;
    color: #fafafa !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2) !important;
}

/* Slider dark theme */
.rc-slider-rail {
    background-color: #27272a !important;
}
.rc-slider-track {
    background-color: #6366f1 !important;
}
.rc-slider-handle {
    background-color: #fafafa !important;
    border-color: #fafafa !important;
    opacity: 1 !important;
}
.rc-slider-handle:hover,
.rc-slider-handle:active,
.rc-slider-handle-dragging {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3) !important;
}
.rc-slider-dot {
    background-color: #27272a !important;
    border-color: #3f3f46 !important;
}
.rc-slider-dot-active {
    border-color: #6366f1 !important;
}
.rc-slider-mark-text {
    color: #71717a !important;
    font-size: 0.8rem !important;
}

/* Slider tooltip */
.rc-slider-tooltip-inner {
    background-color: #27272a !important;
    color: #fafafa !important;
    border: 1px solid #3f3f46 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
    font-size: 0.8rem;
    min-height: 24px;
    line-height: 24px;
    padding: 0 8px;
}
.rc-slider-tooltip-arrow {
    border-top-color: #27272a !important;
}

/* DBC Button overrides */
.btn-outline-light {
    color: #71717a !important;
    border-color: #27272a !important;
}
.btn-outline-light:hover {
    color: #fafafa !important;
    background-color: #27272a !important;
    border-color: #3f3f46 !important;
}

/* =========================================================================
   Mobile Responsiveness
   ========================================================================= */

/* Tabs: horizontal scroll on small screens */
@media (max-width: 768px) {
    .nav-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .nav-tabs::-webkit-scrollbar {
        display: none;
    }
    .nav-tabs .nav-link {
        white-space: nowrap;
        padding: 10px 14px !important;
        font-size: 0.8rem;
    }
}

/* Tables: horizontal scroll wrapper */
@media (max-width: 992px) {
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    table thead, table tbody {
        min-width: 600px;
    }
}
