/*
 * ===========================================
 *          ИНДИКАТОРЫ И СТАТУСЫ
 * ===========================================
 */

/* Индикатор загрузки */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    color: var(--color-gray-500);
}

.loading-indicator::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid var(--color-gray-200);
    border-top: 2px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: var(--spacing-sm);
}

/* Индикатор автообновления */
.update-indicator {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-success);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    z-index: var(--z-modal);
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

/* Статус соединения с анимацией */
.connection-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-success);
    transition: all 0.3s ease;
    z-index: var(--z-fixed);
}

.connection-status.connected {
    background: var(--color-success);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    animation: connectedPulse 2s infinite;
}

.connection-status.disconnected {
    background: var(--color-danger);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    animation: disconnectedPulse 1s infinite;
}

/* Стили для badge цены */
.price-badge {
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.price-badge.updating {
    animation: updatePulse 1s ease-in-out infinite;
}

/* Улучшенные стили кнопок */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}
