/* Анимированные Material Symbols иконки */

/* Базовые анимации */
@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes iconRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes iconShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

@keyframes iconGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 2px currentColor);
    }
    50% { 
        filter: drop-shadow(0 0 8px currentColor);
    }
}

/* Применение анимаций к иконкам */

/* Иконки в навигации */
.tab-btn:hover .material-symbols-outlined {
    animation: iconBounce 0.5s ease;
}

.tab-btn.active .material-symbols-outlined {
    animation: iconPulse 2s ease-in-out infinite;
}

/* Иконки в кнопках */
.btn-primary:hover .material-symbols-outlined {
    animation: iconPulse 0.4s ease;
}

.btn-danger:hover .material-symbols-outlined {
    animation: iconShake 0.4s ease;
}

/* Иконки в карточках статистики */
.stat-card:hover .material-symbols-outlined {
    animation: iconPulse 0.6s ease;
}

/* Логотип */
.logo-icon:hover {
    animation: iconRotate 0.8s ease;
}

/* Иконка обновления */
.material-symbols-outlined[data-icon="refresh"]:hover,
.material-symbols-outlined[data-icon="sync"]:hover {
    animation: iconRotate 0.6s ease;
}

/* Иконка добавления */
.material-symbols-outlined[data-icon="add"]:hover {
    animation: iconPulse 0.3s ease;
}

/* Иконка удаления */
.material-symbols-outlined[data-icon="delete"]:hover {
    animation: iconShake 0.3s ease;
}

/* Иконка поиска */
.material-symbols-outlined[data-icon="search"]:hover {
    animation: iconGlow 1s ease infinite;
}

/* Плавные переходы */
.material-symbols-outlined {
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Цветные иконки с градиентами */
.icon-gradient-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.icon-gradient-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.icon-gradient-orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.icon-gradient-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Эффект свечения при наведении */
.material-symbols-outlined:hover {
    filter: drop-shadow(0 0 4px currentColor);
}

/* Специальные эффекты для разных контекстов */
.tab-btn .material-symbols-outlined {
    transform-origin: center;
}

.stat-card .material-symbols-outlined {
    transform-origin: center;
}

/* Анимация появления */
@keyframes iconFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.material-symbols-outlined {
    animation: iconFadeIn 0.3s ease;
}
