:root {
    --indices-green: #00ff00;
    --indices-red: #ff3333;
    --indices-rs-r2-color: #ff0000;
    --indices-rs-r1-color: #ffff00;
    --indices-rs-mid-color: #ffffff;
    --indices-rs-s1-color: #00ffff;
    --indices-rs-s2-color: #ff00ff;
    --indices-abmove-main-color: #ffff00;
    --indices-abmove-fast-color: #00ff00;
    --indices-abmove-slow-color: #ff3333;
    --indices-hv-color: #ffffff;
    --indices-pressurehv-main-color: #ffff00;
    --indices-pressurehv-mm-color: #ff3333;
    --indices-zero-line-color: #666666;
    --indices-crosshair-color: #888888;    
    --signal-plus1-color: #0088ff;
    --signal-minus0-color: #ffff00;
    --signal-plus0-color: #ffffff;
    --signal-minus1-color: #ff0000;}

* {
    box-sizing: border-box;}

html, body {
    margin: 0;
    min-height: 100%;
    background: #000000;
    color: #ffffff ;
    font-family: Arial, Helvetica, sans-serif;}

#app-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 12px;}

#app-container #indices-price-panel > #indices-price-overlay {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 20 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: visible !important;
    transform: none !important;
    float: none !important;
    pointer-events: none !important;}

#app-container #indices-price-panel > #indices-price-overlay > #indices-button-group {
    position: relative !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: max-content !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    line-height: normal !important;
    white-space: nowrap !important;
    overflow: visible !important;
    transform: none !important;
    float: none !important;
    pointer-events: auto !important;}

#app-container #indices-price-panel > #indices-price-overlay > #indices-button-group > #indices-timeframe-wrapper,
#app-container #indices-price-panel > #indices-price-overlay > #indices-button-group > #indices-zoom-wrapper,
#app-container #indices-price-panel > #indices-price-overlay > #indices-button-group > #indices-menu-wrapper,
#app-container #indices-price-panel > #indices-price-overlay > #indices-button-group > #indices-system-wrapper {
    position: relative !important;
    display: block !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    line-height: normal !important;
    overflow: visible !important;
    transform: none !important;
    float: none !important;
    pointer-events: auto !important;}

.indices-btn {
    border: 1px solid #cccccc;
    background: #000000;
    color: #cccccc;
    cursor: pointer;;
    padding: 4px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    min-height: auto;
    transition: all 0.2s ease;
    font-family: inherit;
    pointer-events: auto;
    isplay: block;}

#app-container #indices-price-panel > #indices-price-overlay > #indices-button-group > .indices-btn-wrapper > .indices-btn {
    position: static !important;
    display: block !important;
    float: none !important;
    flex: 0 0 auto !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 4px 14px !important;
    border: 1px solid #cccccc !important;
    background: #000000 !important;
    background-image: none !important;
    color: #e3e3e3 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    font-style: normal !important;
    line-height: normal !important;
    letter-spacing: normal !important;
    text-align: center !important;
    text-indent: 0 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
    box-shadow: none !important;
    transform: none !important;
    pointer-events: auto !important;
    cursor: pointer !important;}

#app-container #indices-price-panel > #indices-price-overlay > #indices-button-group > .indices-btn-wrapper > .indices-btn.is-hidden {
    display: none !important;}

#app-container #indices-price-panel > #indices-price-overlay > #indices-button-group > .indices-btn-wrapper > .indices-btn:hover:not(:disabled),
#app-container #indices-price-panel > #indices-price-overlay > #indices-button-group > .indices-btn-wrapper > .indices-btn.active:not(:disabled) {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;}

#app-container #indices-price-panel > #indices-price-overlay > #indices-button-group > #indices-zoom-wrapper > #indices-zoom-toggle.active:not(:disabled) {
    background: #CC0033 !important;
    color: #e3e3e3 !important;
    border-color: #CC0033 !important;}

#app-container #indices-price-panel > #indices-price-overlay > #indices-button-group > #indices-zoom-wrapper > #indices-zoom-toggle.active:hover:not(:disabled) {
    background: #CC0033 !important;
    color: #ffffff !important;
    border-color: #CC0033 !important;}

#app-container #indices-price-panel > #indices-price-overlay > #indices-button-group > .indices-btn-wrapper > .indices-btn:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;}

#app-container #indices-price-panel > #indices-price-overlay > #indices-button-group > #indices-zoom-wrapper > #indices-zoom-dropdown,
#app-container #indices-price-panel > #indices-price-overlay > #indices-button-group > #indices-menu-wrapper > #indices-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 50 !important;
    display: block;
    width: max-content !important;
    min-width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #444444 !important;
    background: #0d0d0d !important;
    background-image: none !important;
    line-height: normal !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    transform: none !important;
    float: none !important;
    pointer-events: auto !important;}

#app-container #indices-price-panel > #indices-price-overlay > #indices-button-group .indices-menu.is-hidden {
    display: none !important;}

#app-container #indices-price-panel > #indices-price-overlay > #indices-button-group .indices-menu > .indices-menu-option {
    position: static !important;
    display: block !important;
    float: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 5px 12px !important;
    border-width: 0 0 1px 0 !important;
    border-color: #333333 !important;
    border-style: solid !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    color: #ffffff !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    font-style: normal !important;
    line-height: normal !important;
    letter-spacing: normal !important;
    text-align: left !important;
    text-indent: 0 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    transform: none !important;
    pointer-events: auto !important;
    cursor: pointer !important;}

#app-container #indices-price-panel > #indices-price-overlay > #indices-button-group .indices-menu > .indices-menu-option:hover {
    background: #ffffff !important;
    color: #000000 !important;}

#app-container #indices-price-panel > #indices-price-overlay > #indices-button-group .indices-menu > .indices-menu-option:last-child {
    border-bottom: 0 !important;}

#app-container #indices-price-panel > #indices-price-overlay > #indices-button-group #indices-zoom-reset {
    text-align: center !important;
    width: 100% !important;
    border-bottom: 0 !important;}

.indices-dashboard, .indices-chart-stack {
    width: 100%;}

.indices-chart-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;}

.indices-chart-panel {
    position: relative;
    width: 100%;
    min-height: 210px;
    height: 24vh;
    border: 1px solid #222222;
    background: #000000;
    overflow: hidden;}

#indices-price-panel {
    min-height: 380px;
    height: 46vh;}

.indices-chart-canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    touch-action: none;
    cursor: default;}

.is-zoom-active .indices-chart-canvas {
    cursor: grab !important;}

.is-zoom-active .indices-chart-canvas:active {
    cursor: grabbing !important;}

.indices-panel-title {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: bold;
    color: #ffffff;
    z-index: 5;
    pointer-events: none;}

.indices-carousel-nav {
    position: absolute;
    top: 10px;
    right: 100px;
    z-index: 40;
    display: flex;
    gap: 6px;}

.indices-carousel-btn {
    font-size: 11px;
    padding: 1px 8px;
    min-height: auto;}

.indices-chart-title {
    position: absolute;
    left: 50%;
    top: 12px;
    transform: translateX(-50%);
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 10;}

.indices-horizontal-legend {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: #e0e0e0;
    pointer-events: none;}

.indices-horizontal-legend-price {
    top: 48px;}

.indices-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;}

.indices-legend-hlc-item {
    gap: 3px;}

.indices-legend-hlc-letter {
    color: #ffffff;}

.indices-legend-hlc-value {
    color: var(--indices-green);}

.indices-legend-color {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;}

.indices-color-green { --indices-semantic-color: var(--indices-green); }
.indices-color-red { --indices-semantic-color: var(--indices-red); }
.indices-color-abmove-main { --indices-semantic-color: var(--indices-abmove-main-color); }
.indices-color-abmove-fast { --indices-semantic-color: var(--indices-abmove-fast-color); }
.indices-color-abmove-slow { --indices-semantic-color: var(--indices-abmove-slow-color); }
.indices-color-rs-r2 { --indices-semantic-color: var(--indices-rs-r2-color); }
.indices-color-rs-r1 { --indices-semantic-color: var(--indices-rs-r1-color); }
.indices-color-rs-mid { --indices-semantic-color: var(--indices-rs-mid-color); }
.indices-color-rs-s1 { --indices-semantic-color: var(--indices-rs-s1-color); }
.indices-color-rs-s2 { --indices-semantic-color: var(--indices-rs-s2-color); }
.indices-color-hv { --indices-semantic-color: var(--indices-hv-color); }
.indices-color-pressurehv-main { --indices-semantic-color: var(--indices-pressurehv-main-color); }
.indices-color-pressurehv-mm { --indices-semantic-color: var(--indices-pressurehv-mm-color); }

.indices-color-signal-plus1 { --indices-semantic-color: var(--signal-plus1-color); }
.indices-color-signal-minus0 { --indices-semantic-color: var(--signal-minus0-color); }
.indices-color-signal-plus0 { --indices-semantic-color: var(--signal-plus0-color); }
.indices-color-signal-minus1 { --indices-semantic-color: var(--signal-minus1-color); }

.indices-legend-color[class*="indices-color-"],
.indices-tooltip-label[class*="indices-color-"] {
    color: var(--indices-semantic-color);}

.indices-legend-color[class*="indices-color-"] {
    background-color: var(--indices-semantic-color);}

.analysebourses-logo {
    position: absolute;
    color: #bbbbbb;
    font-size: 12px;
    font-weight: bold;
    pointer-events: none;
    z-index: 5;}

#zoom-info-wrapper {
    position: absolute;
    z-index: 1000;}

#zoom-info-btn {
    width: 26px;
    height: 26px;
    background-color: #0000ff;
    color: #ffff00;
    border: 1px solid #ffff00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-style: italic;
    font-size: 14px;
    cursor: help;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);}

#zoom-info-bubble {
    display: none;
    position: absolute;
    bottom: 25px;
    left: 0;
    width: 320px;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid #444;
    padding: 12px;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: 0 4px 10px rgba(0,0,0,0.7);}

.zoom-info-separator {
    height: 1px;
    background-color: #444;
    margin: 8px 0;}

.zoom-info-section {
    margin: 0;}

.zoom-info-section a {
    color: #4da6ff;
    text-decoration: none;}

.zoom-info-section a:hover {
    text-decoration: underline;}

#zoom-info-wrapper:hover #zoom-info-bubble {
    display: block;}

.indices-tooltip {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    min-width: 160px;
    max-width: 280px;
    border: 1px solid #444;
    background: rgba(15, 15, 15, 0.95);
    color: #ffffff;
    border-radius: 6px;
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    user-select: none;
    overflow: hidden;}

.indices-tooltip.is-positioned {
    top: attr(data-top px, 20px);
    left: attr(data-left px, 20px);
    right: auto;
    bottom: auto;}

.indices-tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
    cursor: move;}

.indices-tooltip-date {
    font-weight: 700;
    color: #ffffff;
    font-size: 14px;}

.indices-tooltip-controls {
    display: flex;
    align-items: center;
    gap: 10px;}

.indices-tooltip-toggle {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;}

.indices-tooltip-toggle:hover {
    color: #fff;}

.indices-tooltip-drag-icon {
    font-size: 12px;
    color: #666;}

.indices-tooltip-body {
    padding: 6px 12px;
    display: block;}

.indices-tooltip.is-minimized .indices-tooltip-body {
    display: none;}

.indices-tooltip-separator {
    height: 1px;
    background-color: #333333;
    margin: 4px 0;}

.indices-tooltip-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 0;
    font-family: monospace;}

.indices-tooltip-label {
    color: #a0a0a0;}

.indices-tooltip-label[class*="indices-color-"] {
    font-weight: bold;}

.indices-tooltip-value {
    color: #ffffff;
    font-weight: 600;
    text-align: right;}

.is-hidden {
    display: none !important;}

.indices-maximize-btn {
    position: absolute;
    top: 10px;
    right: 65px;
    z-index: 50;
    padding: 1px 10px;
    font-size: 11px;
    pointer-events: auto;
    min-height: auto;}

#app-container.is-panel-maximized {
    min-height: 0;
    height: var(--indices-maximized-container-height, 100vh);}

#app-container.is-panel-maximized .indices-dashboard,
#app-container.is-panel-maximized .indices-chart-stack {
    height: 100%;
    min-height: 0;}

#app-container.is-panel-maximized #indices-price-panel {
    flex: 0 1 auto;
    min-height: 0;
    height: max(380px, 46vh);}

.indices-chart-panel.is-maximized {
    flex: 1 1 210px;
    min-height: 0 !important;
    height: auto !important;}

.is-hidden-by-maximize {
    display: none !important;}

@media (max-width: 768px) {
    #app-container { padding: 8px; }
    .indices-chart-panel { min-height: 190px; height: 30vh; }
    #indices-price-panel { min-height: 300px; height: 48vh; }
    #app-container.is-panel-maximized #indices-price-panel { height: max(300px, 48vh); }
    .indices-chart-panel.is-maximized { flex-basis: 190px; }
    .indices-tooltip {
        top: auto; right: 8px; bottom: 8px; left: 8px; max-width: none;}
}