/* CSS Styles */
.container{
     max-width: 100%;
}

.analytics-container{
    max-width: 100%;
    margin: 0;
}

.analytics-control-panel {
    position: relative;
    z-index: 10; /* Ниже, чем у поиска */
    background: var(--bg-secondary);
    border-radius: 20px;
    box-shadow: var(--shadow-small);
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}
.price-tracker {
    position: static; /* Убедимся, что не создает контекст стекинга */
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    padding: 20px;
}

.filters-panel, .products-panel {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-small);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    overflow-y: auto;
}

.chart-container {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-small);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
}

.chart-wrapper {
    flex: 1;
    position: relative;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

select, input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
}

select:focus, input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
    outline: none;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.products-search {
    margin-bottom: 15px;
}

/* Новые стили для карточки товара */
.product-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    transition: all 0.3s;
    border: 1px solid var(--border-light);
}

.product-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-small);
    border-color: var(--accent-primary);
    background: var(--card-hover);
}

.product-name-link {
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.05rem;
    line-height: 1.3;
}

.product-name-link:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.product-price {
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent-primary);
    background: rgba(0, 123, 255, 0.1);
    padding: 5px 12px;
    border-radius: 8px;
    min-width: max-content;
}

.product-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--accent-primary);
    font-weight: 500;
    text-decoration: none;
}

.product-link:hover {
    text-decoration: underline;
}

.time-range-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.time-range-btn {
    padding: 8px 5px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-size: 0.85rem;
}

.time-range-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.chart-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* GPU Price Tracker specific styles */
.filter-group select {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.product-item {
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.stat-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.stat-item:last-child {
    border-bottom: none;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}