.lw-chart {
    width: 100%;
    height: 300px;
}

.lw-chart-wrapper {
    position: relative;
}

/* Tooltip bleibt wie gehabt, nur ohne feste top/left */
.lw-tooltip {
    position: absolute;
    background: #111;
    color: #fff;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.3;
    pointer-events: none;
    display: none;
    z-index: 50;
}

.lw-tooltip .tooltip-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.lw-tooltip .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.lw-tooltip .label {
    opacity: 0.7;
    text-transform: capitalize;
}

.lw-tooltip .value {
    margin-left: auto;
    font-weight: 600;
}



/* Header Row */
.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.filter-icon-btn {
    background: #131315;
    border: 1px solid #2a2a2e;
    border-radius: 8px;
    padding: 6px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;

    height: 44px;
    width: 44px;

    transition: background 0.2s, border-color 0.2s, box-shadow 0.25s;
}

.filter-icon-btn svg {
    stroke: #e5e7eb;
    transition: stroke 0.25s ease;
}

.filter-icon-btn:hover {
    background: #1d1d1f;
    border-color: #3d3d42;
}

.filter-icon-btn:hover svg {
    stroke: #ffffff;
}

.filter-icon-btn.open {
    border-color: #3b82f6;
    background: #1f2937;
}

/* Popup (schwebend) */
.filter-popup {
    /* position: absolute;
    top: 42px;
    right: 12px; */

    background: #111114;
    border: 1px solid #2a2a2e;
    border-radius: 12px;
    padding: 0.8rem;

    /* width: 230px; */
    z-index: 30;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);

    opacity: 1;
    transform: scale(1);
    transform-origin: top right;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.filter-popup.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

/* Grid im Popup */
.filter-popup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}

/* Toggle Buttons gleich lassen wie vorher */
.toggle-btn {
    padding: 0.45rem 0.6rem;
    background: #1c1c1f;
    border: 1px solid #2d2d31;
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.toggle-btn:hover {
    background: #232327;
}

.toggle-btn.active {
    background: #3b82f6;
    border-color: #2563eb;
    color: white;
}
