/* В index.css — просто база для глаз */
.message-bubble {
    font-size: 16px !important; /* Четкий стандарт для мобилок и ПК */
    line-height: 1.5;
}
#user-input {
    font-size: 16px !important; /* Чтобы iOS не зумил экран при клике на поле */
}


/* 1. Базовые настройки контейнера */
.chat-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.chat-container::-webkit-scrollbar { display: none; }

.bg-chat-pattern {
    background-color: #f8fafc;
    background-image: radial-gradient(#e2e8f0 0.5px, transparent 0.5px);
    background-size: 24px 24px;
}

/* 2. Анимации */
@keyframes message-in {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.animate-fade-in { animation: message-in 0.3s ease-out forwards; }

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.online-pulse { animation: pulse-green 2s infinite; }

/* 3. Индикатор печати */
.typing-dot {
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1.1); opacity: 1; }
}

/* 4. Кнопки Да/Нет (Mobile First) */
.binary-wrapper {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #ffffff;
    animation: message-in 0.3s ease-out;
}

.btn-choice {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    border-radius: 18px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
}

.btn-yes {
    background: #2563eb;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-no {
    background: #ffffff;
    color: #475569;
    border: 2px solid #e2e8f0;
}

.btn-choice:active { transform: scale(0.95); }

/* 5. Адаптивность */
@media (max-width: 640px) {
    .btn-choice { height: 50px; font-size: 14px; }
    #chat-input-container { padding-bottom: env(safe-area-inset-bottom); }
}
