﻿/* web_chat/static/css/animations.css */
/* ===== ИНДИКАТОР ПЕЧАТИ ===== */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.typing-dot {
    width: 10px;
    height: 10px;
    background: #999;
    border-radius: 50%;
    animation: typingDot 1.4s infinite ease-in-out;
}
.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
    0%, 60%, 100% { transform: scale(0.6); opacity: 0.4; }
    30% { transform: scale(1); opacity: 1; }
}

/* ===== ПРОГРЕСС-БАР ДЛЯ FLUX ===== */
.progress-container {
    align-self: center;
    width: 100%;
    max-width: 400px;
    background: #f0f0f0;
    border-radius: 30px;
    padding: 4px;
    margin: 8px 0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    display: none;
}
.progress-container.active {
    display: block;
}
.progress-bar {
    height: 12px;
    border-radius: 30px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}
.progress-text {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-top: 6px;
}

/* ===== АНИМАЦИИ УДАЛЕНИЯ ===== */
/* Сжечь */
.image-card.burning {
    animation: burnEffect 1.5s forwards;
}
@keyframes burnEffect {
    0% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 rgba(255,100,0,0); }
    30% { opacity: 1; transform: scale(1.05); box-shadow: 0 0 30px rgba(255,100,0,0.8); }
    100% { opacity: 0; transform: scale(0.5); box-shadow: 0 0 0 rgba(255,100,0,0); }
}

/* Похоронить */
.image-card.burying {
    animation: buryEffect 1.5s forwards;
}
@keyframes buryEffect {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    50% { opacity: 0.8; transform: translateY(20px) scale(0.9); }
    100% { opacity: 0; transform: translateY(80px) scale(0.3); }
}

/* Порвать */
.image-card.tearing {
    animation: tearEffect 1.5s forwards;
}
@keyframes tearEffect {
    0% { opacity: 1; transform: scale(1); }
    30% { opacity: 1; transform: scale(1.1) rotate(-3deg); }
    60% { opacity: 0.8; transform: scale(1.2) rotate(3deg); }
    100% { opacity: 0; transform: scale(0.2) rotate(10deg); }
}