
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.chart-container {
    padding: 20px;
    max-width: 100%;
}

.controls-panel {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #dee2e6;
    margin-bottom: 15px;
}

    .controls-panel .form-label {
        font-weight: 600;
        color: #495057;
        margin-bottom: 5px;
    }

.chart-area {
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 10px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    min-height: 400px;
}

.chart-controls {
    margin-bottom: 15px;
}

    .chart-controls .btn-group .btn {
        border-radius: 0;
    }

        .chart-controls .btn-group .btn:first-child {
            border-top-left-radius: 0.375rem;
            border-bottom-left-radius: 0.375rem;
        }

        .chart-controls .btn-group .btn:last-child {
            border-top-right-radius: 0.375rem;
            border-bottom-right-radius: 0.375rem;
        }

.info-panel {
    margin-bottom: 15px;
}

    .info-panel .card {
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .info-panel .card-header {
        background: #e9ecef;
        border-bottom: 1px solid #dee2e6;
    }

    .info-panel .card-body p {
        margin-bottom: 8px;
    }

        .info-panel .card-body p:last-child {
            margin-bottom: 0;
        }

#pointDetails {
    min-height: 100px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
}

#currentValues p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #e9ecef;
}

    #currentValues p:last-child {
        border-bottom: none;
    }

.custom-tooltip {
    background: rgba(0, 0, 0, 0.8) !important;
    color: white !important;
    padding: 10px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    max-width: 250px !important;
}

    .custom-tooltip strong {
        color: #fff !important;
    }

#loadingIndicator {
    color: #6c757d;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.table-area {
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 10px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 15px;
}

.dx-chart-series-name-0 {
    stroke: #1f77b4 !important;
}

.dx-chart-series-name-1 {
    stroke: #ff7f0e !important;
    stroke-dasharray: 5,5 !important;
}

.dx-chart-series-name-2 {
    stroke: #2ca02c !important;
}

.dx-chart-series-name-3 {
    stroke: #d62728 !important;
    stroke-dasharray: 5,5 !important;
}

.dx-chart-series-name-4 {
    fill: #9467bd !important;
}

.dx-chart-series-name-5 {
    stroke: #17becf !important;
    stroke-width: 3 !important;
}

.dx-chart-series-name-6 {
    stroke: #bcbd22 !important;
    stroke-width: 3 !important;
    stroke-dasharray: 2,2 !important;
}

.chart-controls .form-check {
    margin-bottom: 8px;
}

.chart-controls .form-check-label {
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

    .chart-controls .form-check-label span {
        font-size: 16px;
        margin-right: 5px;
        font-weight: bold;
    }

.chart-controls .form-check-input {
    margin-right: 8px;
}

.chart-controls .btn-sm {
    margin-right: 10px;
    margin-bottom: 5px;
}

.point-highlighted {
    opacity: 1 !important;
    stroke-width: 3 !important;
}

.point-dimmed {
    opacity: 0.2 !important;
}

.series-dimmed {
    opacity: 0.3 !important;
}

.dx-chart-legend {
    font-size: 12px !important;
}

.dx-chart-legend-item {
    margin: 0 10px !important;
}

.dx-chart-axis-labels text {
    font-size: 11px !important;
    fill: #666 !important;
}

.dx-chart-axis-title text {
    font-size: 13px !important;
    font-weight: 600 !important;
    fill: #333 !important;
}

.dx-chart-title text {
    font-size: 16px !important;
    font-weight: 600 !important;
    fill: #333 !important;
}

@media (max-width: 992px) {
    .chart-container {
        padding: 15px;
    }

    .controls-panel .row > div {
        margin-bottom: 10px;
    }

    .chart-area {
        min-height: 500px;
    }

    .info-panel .col-md-6 {
        margin-bottom: 15px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .chart-container {
        padding: 10px;
    }

    .controls-panel {
        padding: 10px;
    }

        .controls-panel .row > div {
            margin-bottom: 15px;
        }

    .chart-area {
        min-height: 400px;
        padding: 5px;
    }

    .chart-controls .card-body {
        padding: 10px;
    }

    .chart-controls .row > div {
        margin-bottom: 15px;
    }

    .chart-controls .form-check {
        margin-bottom: 10px;
    }

    .chart-controls .btn-sm {
        margin-right: 5px;
        margin-bottom: 8px;
        font-size: 12px;
        padding: 4px 8px;
    }

    .info-panel .col-md-6 {
        margin-bottom: 15px;
    }

    .table-area {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .dx-chart-legend {
        font-size: 10px !important;
    }

    .dx-chart-legend-item {
        margin: 0 5px !important;
    }
    .dx-chart-axis-labels text {
        font-size: 9px !important;
    }

    .dx-chart-axis-title text {
        font-size: 11px !important;
    }
}
@media (max-width: 576px) {
    .chart-container {
        padding: 5px;
    }

    .controls-panel {
        padding: 8px;
        margin-bottom: 10px;
    }

        .controls-panel .form-label {
            font-size: 12px;
            margin-bottom: 3px;
        }

        .controls-panel .row > div {
            margin-bottom: 12px;
        }
    .chart-area {
        min-height: 350px;
        padding: 3px;
        margin-bottom: 10px;
    }
    .dx-chart-title {
        display: none !important;
    }
    .chart-controls {
        margin-bottom: 10px;
    }

        .chart-controls .card-header h6 {
            font-size: 14px;
            margin-bottom: 0;
        }

        .chart-controls .card-body {
            padding: 8px;
        }

        .chart-controls .row > div {
            margin-bottom: 10px;
        }

        .chart-controls .form-check {
            margin-bottom: 6px;
        }

        .chart-controls .form-check-label {
            font-size: 12px;
        }

            .chart-controls .form-check-label span {
                font-size: 14px;
                margin-right: 3px;
            }

        .chart-controls .btn-sm {
            margin-right: 3px;
            margin-bottom: 5px;
            font-size: 10px;
            padding: 3px 6px;
        }

    .info-panel {
        margin-bottom: 10px;
    }

        .info-panel .col-md-6 {
            margin-bottom: 10px;
        }

        .info-panel .card-header h6 {
            font-size: 14px;
            margin-bottom: 0;
        }

        .info-panel .card-body {
            padding: 8px;
            font-size: 12px;
        }

            .info-panel .card-body p {
                margin-bottom: 5px;
            }

    #pointDetails {
        min-height: 80px;
        padding: 8px;
        font-size: 12px;
    }

    #currentValues p {
        padding: 3px 0;
        font-size: 12px;
    }
    .table-area {
        padding: 5px;
        margin-top: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .dx-chart-legend {
        font-size: 8px !important;
        line-height: 1.2 !important;
    }

    .dx-chart-legend-item {
        margin: 0 2px !important;
        display: inline-block !important;
    }
    .dx-chart-legend {
        display: none !important;
    }

    .dx-chart-axis-labels text {
        font-size: 8px !important;
    }

    .dx-chart-axis-title text {
        font-size: 10px !important;
    }
    .custom-tooltip {
        font-size: 10px !important;
        padding: 6px !important;
        max-width: 200px !important;
    }
    #loadingIndicator {
        font-size: 12px;
    }

    .form-control {
        font-size: 14px;
        padding: 6px 8px;
    }

    .btn {
        font-size: 12px;
        padding: 6px 10px;
    }
}
@media (max-width: 400px) {
    .chart-container {
        padding: 2px;
    }

    .chart-area {
        min-height: 300px;
        padding: 2px;
    }

    .controls-panel {
        padding: 5px;
    }

    .chart-controls .card-body,
    .info-panel .card-body {
        padding: 5px;
    }

    .chart-controls .btn-sm {
        font-size: 9px;
        padding: 2px 4px;
        margin-right: 2px;
        margin-bottom: 3px;
    }

    .form-control {
        font-size: 12px;
        padding: 4px 6px;
    }

    .table-area {
        padding: 3px;
    }
}

.dx-chart {
    width: 100% !important;
    height: 100% !important;
}

.chart-area > div {
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 768px) {
    .dx-chart svg {
        width: 100% !important;
        height: 100% !important;
    }

    .dx-chart-canvas {
        width: 100% !important;
        height: 100% !important;
    }
}
#reset-zoom {
    position: relative;
    right: 8px;
    top: 5px;
    height:100px
}

