/* echarts.css - ПОЛНОСТЬЮ БЕЗ INLINE STYLES */

/* Основной контейнер */
.echarts-chart-container {
    width: 100%;
    height: 100%;
    background: #1e1e1e;
    position: relative;
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
}

/* Контейнер цен */
.echarts-price-container {
    width: 100%;
    height: 70%;
    flex: 0.7;
}

/* Контейнер объемов */
.echarts-volume-container {
    width: 100%;
    height: 30%;
    flex: 0.3;
    border-top: 1px solid #2a2a2a;
    background: #1e1e1e;
}

/* ECharts canvas элементы */
.echarts-price-container canvas,
.echarts-volume-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* Tooltip стили */
.echarts-tooltip {
    background: linear-gradient(135deg, rgba(45,45,45,0.98) 0%, rgba(30,30,30,0.98) 100%);
    border: 1px solid #555;
    border-radius: 6px;
    padding: 12px;
    color: #fff;
    font-size: 12px;
    font-family: 'Monaco', 'Menlo', monospace;
    min-width: 200px;
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.tooltip-date {
    color: #e0e0e0;
    font-size: 11px;
    margin-bottom: 8px;
    border-bottom: 1px solid #444;
    padding-bottom: 6px;
}

.tooltip-grid {
    display: grid;
    gap: 4px;
}

.tooltip-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tooltip-change {
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px solid #444;
}

/* Цвета цен */
.price-up {
    color: #4CAF50 !important;
    font-weight: 600;
}

.price-down {
    color: #ff4444 !important;
    font-weight: 600;
}

/* Стили для модалки (если используешь свою модалку) */
.modal-content.echarts-modal {
    background: #1e1e1e;
    border: 1px solid #333;
    color: #fff;
}

.modal-header.echarts-header {
    background: #2a2a2a;
    border-bottom: 1px solid #333;
    color: #fff;
}

/* Loading */
.loading-echarts {
    background: rgba(30, 30, 30, 0.9);
    color: #fff;
    border: 1px solid #444;
    padding: 20px;
    text-align: center;
    border-radius: 4px;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.echarts-tooltip {
    animation: fadeIn 0.2s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .echarts-tooltip {
        min-width: 180px;
        font-size: 11px;
    }
    
    .echarts-price-container {
        height: 60%;
    }
    
    .echarts-volume-container {
        height: 40%;
    }
}