/* ============================================
   PRICE CHART STYLES
   Стили для графиков цен и модальных окон
   ============================================ */

/* Price Chart Styles */
.price-chart-message {
    margin: 8px 0;
}

.price-chart-bubble {
    padding: 16px;
    background: #1a1a1a;
    border-radius: 12px;
    border: none;
}

.price-chart-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: none;
}

.price-symbol {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.price-value {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.price-change {
    font-size: 14px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 16px;
}

.price-change.positive {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

.price-change.negative {
    color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}

.price-chart-container {
    width: 100%;
    min-height: 300px;
    margin: 12px 0;
    border-radius: 8px;
    overflow: hidden;
    background: #0a0a0a;
}

.price-chart-expand-btn {
    width: fit-content;
    min-width: fit-content;
    padding: 12px 16px;
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 32px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.price-chart-expand-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Price Chart Modal Styles */
.price-chart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 16px;
    pointer-events: none;
    box-sizing: border-box;
    overflow: hidden;
}

.price-chart-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.price-chart-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    background: #121212;
    border-radius: 24px;
    border: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10001;
    pointer-events: auto;
    box-sizing: border-box;
}

.price-chart-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: none;
}

.price-chart-modal-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.price-chart-modal-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.price-chart-modal-close .close-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1) opacity(0.9);
}

.price-chart-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.price-chart-modal-chart {
    width: 100%;
    flex: 1;
    min-height: 0;
    background: transparent;
    overflow: hidden;
    padding: 24px;
    box-sizing: border-box;
}

/* Mobile styles for price chart */
@media (max-width: 768px) {
    .price-chart-container {
        min-height: 250px;
    }
    
    .price-chart-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .price-symbol {
        font-size: 16px;
    }
    
    .price-value {
        font-size: 18px;
    }
}

