/* Teplograd Analiz Bot — Стили приложения v1.1.0 */

/* === Прогрессивный рендер строк таблицы === */
@keyframes rowAppear {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.row-appear {
  animation: rowAppear 0.18s ease-out both;
}

:root {
  --primary: #1976d2;
  --primary-dark: #0d47a1;
  --success: #2e7d32;
  --warning: #f57f17;
  --danger: #c62828;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
}

/* Версия приложения — правый верхний угол */
.version-badge {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
  position: relative;
}
.version-badge:hover {
  background: rgba(255,255,255,0.35);
}

/* Окно истории изменений */
.changelog-modal {
  position: fixed;
  top: 54px;
  right: 16px;
  z-index: 9999;
  width: 360px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  border-radius: 12px;
  overflow: hidden;
  animation: fadeInDown 0.15s ease;
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.changelog-header {
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.changelog-body {
  background: #fff;
  max-height: 400px;
  overflow-y: auto;
  padding: 12px 16px;
}
.version-entry {
  border-left: 3px solid var(--primary);
  padding-left: 12px;
  margin-bottom: 12px;
}
.version-date {
  font-size: 11px;
  color: #888;
  margin-bottom: 2px;
}
.version-tag {
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 4px;
}
.version-entry ul {
  margin: 0;
  padding-left: 16px;
  font-size: 13px;
  color: #333;
}

/* Карточки статистики */
.stat-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  line-height: 1;
}
.stat-number {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}
.stat-label {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

/* Таблица */
.table td {
  vertical-align: middle;
}
.table-hover tbody tr:hover {
  background-color: rgba(25, 118, 210, 0.04);
}

/* Прогресс запуска */
#progressBlock .progress {
  border-radius: 8px;
}

/* Адаптивность */
@media (max-width: 768px) {
  .changelog-modal {
    width: calc(100vw - 24px);
    right: 12px;
  }
  .stat-number {
    font-size: 1.5rem;
  }
}
