* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 2rem;
    min-height: 100vh;
}

.container {
    /* max-width: 900px; */
    width: 100%;
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

h1 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.sub {
    color: #666;
    margin-bottom: 2rem;
}

/* Слайдер контейнер */
.slider-wrapper {
    position: relative;
    padding: 1rem 0 2.5rem 0;
    margin: 1rem 0;
}

/* Кастомный range */
input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: linear-gradient(90deg, #2b6c8f 0%, #1f4e6e 100%);
    border-radius: 3px;
    outline: none;
}

input[type="range"]:focus {
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: 2px solid #667eea;
    transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Контейнер для меток */
.slider-labels {
    position: relative;
    width: 100%;
    height: 30px;
    margin-top: 10px;
}

/* Отдельная метка */
.slider-label {
    position: absolute;
    transform: translateX(-50%);
    font-size: 11px;
    color: #666;
    white-space: nowrap;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 12px;
    transition: all 0.2s;
}

.slider-label:hover {
    background: #f0f0f0;
    color: #667eea;
    font-weight: 500;
}

/* Подсказка */
.tooltip {
    position: absolute;
    background: #333;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
    transition: opacity 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.tooltip::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #333;
}

/* Панель выбранной даты */
.selected-panel {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 12px 20px;
    margin-top: 20px;
    text-align: center;
}

.selected-date {
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
}

/* График */
.chart-container {
    margin-top: 30px;
    padding: 20px;
    background: #fafafa;
    border-radius: 12px;
}

svg {
    background: white;
    border-radius: 8px;
    overflow: visible;
}

.axis path, .axis line {
    stroke: #ccc;
}

.axis text {
    fill: #666;
    font-size: 11px;
}

.line {
    fill: none;
    stroke: #667eea;
    stroke-width: 2;
}

.points {
    fill: #764ba2;
    stroke: white;
    stroke-width: 1.5;
}