/* Дед Антоныч — стили миниапп */

* {
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.action-card {
  @apply bg-white rounded-2xl shadow p-4 text-center active:scale-95 transition;
}

.back-btn {
  @apply text-stone-500 text-sm flex items-center gap-1 mb-2;
}

/* Чат-пузыри */
.chat-bubble {
  @apply max-w-[85%] px-4 py-2.5 rounded-2xl text-sm leading-relaxed;
}

.chat-bot {
  @apply bg-green-100 text-stone-800 rounded-bl-sm self-start;
}

.chat-user {
  @apply bg-blue-500 text-white rounded-br-sm self-end ml-auto;
}

#chat-messages {
  display: flex;
  flex-direction: column;
}

/* Карточка диагноза */
.diagnose-card {
  @apply bg-white rounded-2xl shadow-lg p-5 border-l-4 border-green-600;
}

.diagnose-step {
  @apply flex gap-3 py-2 border-b border-stone-100 last:border-0;
}

.diagnose-step-num {
  @apply w-7 h-7 rounded-full bg-green-700 text-white flex items-center justify-center text-sm font-bold flex-shrink-0;
}

.diagnose-pesticide-badge {
  @apply inline-block px-2 py-0.5 bg-amber-100 text-amber-800 rounded text-xs font-semibold mt-1;
}

/* Tailwind: расширения, потому что CDN не хайтит JIT в полную силу */
.screen {
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Telegram WebApp темная тема (поддержка) */
.tg-theme-dark {
  background: #1a1a1a;
  color: #e8e8e8;
}

.tg-theme-dark .bg-white {
  background: #2a2a2a;
}

.tg-theme-dark .text-stone-800 {
  color: #e8e8e8;
}

.tg-theme-dark .text-stone-600 {
  color: #aaa;
}
