/* Tubing Pipe Visualization Styles */

/* Container */
#tubing-pipe {
    position: relative;
    overflow: visible;
}

/* Tubing Border */
.tubing-border {
    fill: #404857;
    stroke: none;
}

/* Gradient Stops */
.tubing-pipe-primary-stop {
    stop-color: #6b7280;
}

.tubing-pipe-secondary-stop {
    stop-color: #374151;
}

/* Gas Regime Gradients */
.gas-primary-stop {
    stop-color: #add8e6; /* light blue */
}

.gas-secondary-stop {
    stop-color: #e0ffff; /* lighter blue */
}

.tubing-pipe-gas-primary-stop {
    stop-color: #add8e6; /* light blue */
}

.tubing-pipe-gas-secondary-stop {
    stop-color: #7da7b9; /* darkened light blue */
}

/* Liquid Regime Gradients (Green - matches PguruWeb) */
.tubing-pipe-liquid-primary-stop {
    stop-color: #7dd52f; /* green */
}

.tubing-pipe-liquid-secondary-stop {
    stop-color: #00A65A; /* darkened green */
}

/* Valve Styles */
.valveTube {
    fill: #9ca3af;
    stroke: #4b5563;
    stroke-width: 1px;
}

.valveBox {
    fill: #d1d5db;
    stroke: #4b5563;
    stroke-width: 2px;
}

.valveIndicatorText {
    font-size: 10px;
    font-weight: bold;
    text-anchor: middle;
    dominant-baseline: central;
}

/* Valve Status Colors */
.valve-open {
    fill: #22c55e;
}

.valve-closed {
    fill: #ef4444;
}

.valve-back-check {
    fill: #f59e0b;
}

.valve-dummy {
    fill: #9ca3af;
}

.valve-transition {
    fill: #eab308;
}

.valve-unknown {
    fill: #6b7280;
}

/* Tooltip Styles */
.tubingpipetooltip {
    position: absolute;
    background-color: rgba(31, 41, 55, 0.95);
    color: #f3f4f6;
    border: 1px solid #4b5563;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    max-width: 250px;
}

.tubingpipetooltip h3 {
    margin: 0 0 4px 0;
    font-size: 13px;
    font-weight: 600;
    color: #60a5fa;
}

.tubingpipetooltip p {
    margin: 2px 0;
    line-height: 1.4;
}

.tubingpipetooltip.hidden {
    display: none;
}

.tubingpipetooltip.force-visible {
    display: block !important;
}

/* Tooltip Hitbox */
.tooltip-hitbox {
    cursor: pointer;
}

/* Regime Drawing Groups */
.regime-drawing {
    pointer-events: none;
}

.regime-drawing .tooltip-hitbox {
    pointer-events: all;
}

/* Flow Regime Specific Styles */
.bubble-regime circle {
    opacity: 0.8;
}

.slug-regime ellipse {
    opacity: 0.85;
}

.annular-regime path {
    opacity: 0.9;
}

.churn-regime circle {
    opacity: 0.75;
}

.tubing-gas rect,
.tubing-liquid rect {
    opacity: 1;
}

/* Tubing Flow (Horizontal Pipe) Styles */
.tubing-flow-container {
    position: relative;
    width: 100%;
    min-height: 120px;
}

.tubing-flow-svg {
    overflow: visible;
}

.tubing-flow-label {
    font-size: 12px;
    font-weight: 500;
    fill: #374151;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
