/* Стили для счетчика пробных генераций */
.counter-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #e3e6ea;
    border-radius: 12px;
    padding: 16px;
    margin: 12px 0;
    transition: all 0.3s ease;
}

.counter-container:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.counter-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.counter-icon {
    font-size: 20px;
    margin-right: 8px;
}

.counter-title {
    font-size: 16px;
    font-weight: 600;
    color: #343a40;
}

.counter-content {
    padding-left: 28px;
}

.counter-progress {
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 100%; /* По умолчанию полная полоса */
}

.progress-fill.low {
    background: linear-gradient(90deg, #ffc107 0%, #fd7e14 100%);
}

.progress-fill.empty {
    background: linear-gradient(90deg, #dc3545 0%, #e74c3c 100%);
}

.counter-text {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    text-align: center;
}

.counter-description {
    font-size: 12px;
    color: #6c757d;
    text-align: center;
    margin-top: 8px;
    line-height: 1.4;
}

/* Состояния счетчика */
.counter-container.no-generations {
    background: linear-gradient(135deg, #ffe6e6 0%, #ffcccc 100%);
    border-color: #dc3545;
}

.counter-container.no-generations .counter-title {
    color: #dc3545;
}

.counter-container.no-generations .counter-description {
    color: #dc3545;
    font-weight: 500;
}

.counter-container.low-generations {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-color: #ffc107;
}

.counter-container.low-generations .counter-title {
    color: #856404;
}

/* Анимация при обновлении */
.counter-container.updating {
    opacity: 0.7;
    transform: scale(0.98);
}

/* Адаптивность */
@media (max-width: 768px) {
    .counter-container {
        padding: 12px;
    }
    
    .counter-icon {
        font-size: 18px;
    }
    
    .counter-title {
        font-size: 14px;
    }
    
    .counter-content {
        padding-left: 26px;
    }
}
