body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: #111;
    color: #eee;
}

.container {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 190px;
    background: #1a1a1a;
    padding: 12px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
}

.sidebar h3 {
    margin-top: 0;
    font-size: 1.2em;
    text-align: center;
    color: #ccc;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.toggle-btn {
    display: block;
    width: 100%;
    margin: 6px 0;
    padding: 8px 10px;
    background: #222;
    border: 1px solid #333;
    color: #eee;
    cursor: pointer;
    border-radius: 6px;
    text-align: left;
    transition: background 0.2s, border 0.2s;
}

.toggle-btn:hover {
    background: #2a2a2a;
    border-color: #555;
}

.toggle-btn.active {
    background: #2196f3;
    color: #fff;
    border-color: #2196f3;
}

.chart-area {
  position: relative;
  min-height: 500px; /* Augmenté pour accommoder la hauteur du graphique principal */
  overflow: visible;
  box-sizing: border-box;
}

canvas {
  display: block;
  max-width: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.8); /* Fond sombre semi-transparent comme avant */
  border: 1px solid #333;
  border-radius: 8px;
  margin-bottom: 12px; /* Remis comme avant */
  box-sizing: border-box;
}

.indicator-panel {
    background: #1c1c1c;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 4px;
}

.hidden {
    display: none !important;
}

/* ===== SECTION FIBONACCI ===== */
#fibonacci-section {
    border: 2px solid #ff6b35;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.05));
}

#fibonacci-section .indicator-header h3 {
    color: #ff6b35;
    font-weight: bold;
}

.level-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 5px;
}

.level-checkboxes label {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(255, 107, 53, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.level-checkboxes label:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: #ff6b35;
}

.level-checkboxes input[type="checkbox"]:checked + label,
.level-checkboxes label:has(input[type="checkbox"]:checked) {
    background: rgba(255, 107, 53, 0.3);
    border-color: #ff6b35;
    color: #ff6b35;
    font-weight: bold;
}

.param-group {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 3px solid #ff6b35;
}

.param-group h4 {
    color: #ff6b35;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
}

.param-info {
    font-size: 11px;
    color: #999;
    margin-left: 10px;
    font-style: italic;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 5px 0;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
}

.fibonacci-status {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 6px;
    padding: 10px;
    margin-top: 10px;
}

.fibonacci-active {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.fibonacci-inactive {
    border-color: #757575;
    background: rgba(117, 117, 117, 0.1);
}