.chart-container {
    height: 100%;
    width: 100%;
    border-radius: 14px;
    /* Ajusta el radio según tu gusto */
    overflow: hidden;
    /* Oculta las esquinas rectas internas */
    border: 1px solid #222;
    /* Opcional: borde sutil */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    /* Opcional: sombra */
}


body {
    height: 90vh;
    background-color: transparent !important;
}

.dark_Theme {
    background-color: #0d1117;
}

.btn_Theme {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.btn_Theme:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

.btn_Theme:active {
    background-color: #e9ecef;
    border-color: #adb5bd;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn_Theme i {
    font-size: 1.1rem;
}

@media (max-width: 800px) {
    .modal-dialog-end {
        margin-left: auto;
        width: 50vw;
    }
}

@media (min-width: 800px) {
    .modal-dialog-end {
        margin-left: auto;
        width: 20vw;
    }
}

.modal-theme-black {
    background-color: #0E1218;
    color: white !important;
}

.btn-close.btn-color-theme {
    filter: invert(1);
}

.replay-bars {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 50;
    width: min(960px, calc(100vw - 24px));
    transform: translateX(-50%);
    font-family: "Segoe UI", sans-serif;
    pointer-events: none;
}

.replay-bars__toolbar,
.replay-bars__panel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    background: rgba(13, 17, 23, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(12px);
    pointer-events: auto;
}

.replay-bars__panel {
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.replay-bars__panel[hidden] {
    display: none;
}

.replay-bars [hidden] {
    display: none;
}

.replay-bars__panel label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #d7e0ea;
    font-size: 12px;
    font-weight: 600;
}

.replay-bars__panel input {
    height: 32px;
    min-width: 190px;
    padding: 0 9px;
    color: #e8edf3;
    background: #111827;
    border: 1px solid #2f3a4a;
    border-radius: 6px;
    font-size: 12px;
}

.replay-bars__panel input[readonly] {
    cursor: crosshair;
}

.replay-bars__panel input.is-selecting {
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

.replay-bars__panel input.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.replay-bars__panel input.replay-bars__speed {
    min-width: 76px;
    width: 76px;
    cursor: text;
}

.replay-bars__panel small {
    flex-basis: 100%;
    color: #9aa8b7;
    text-align: center;
}

.replay-bars button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 36px;
    height: 34px;
    padding: 0 10px;
    color: #d7e0ea;
    background: #151c26;
    border: 1px solid #2f3a4a;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.replay-bars button:hover {
    color: #ffffff;
    background: #1e2937;
    border-color: #4b5f78;
}

.replay-bars button:disabled {
    color: #647184;
    background: #11161e;
    border-color: #252e3a;
    cursor: not-allowed;
    opacity: 0.7;
}

.replay-bars button.is-active,
.replay-bars__load {
    color: #071014;
    background: #22c55e;
    border-color: #22c55e;
}

.replay-bars__exit {
    color: #fff7ed;
    background: #ea580c;
    border-color: #f97316;
}

.replay-bars__status {
    display: grid;
    gap: 1px;
    min-width: 190px;
    padding-left: 8px;
    color: #9aa8b7;
    border-left: 1px solid #2f3a4a;
    font-size: 11px;
    line-height: 1.2;
}

.replay-bars__status strong {
    color: #f4f7fb;
    font-size: 12px;
}

@media (max-width: 720px) {
    .replay-bars {
        bottom: 10px;
    }

    .replay-bars__toolbar {
        flex-wrap: wrap;
    }

    .replay-bars__status {
        width: 100%;
        min-width: 0;
        padding: 6px 0 0;
        border-left: 0;
        border-top: 1px solid #2f3a4a;
        text-align: center;
    }

    .replay-bars__panel label,
    .replay-bars__panel input,
    .replay-bars__load {
        width: 100%;
    }
}
