/* V6 SPA — точечный кастом поверх Tailwind. */

html, body { height: 100%; }
body { padding-bottom: 4rem; }

/* Drop zone */
.dropzone {
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  transition: background .15s, border-color .15s;
}
.dropzone.is-hover {
  border-color: #0066ff;
  background: #eef4ff;
}

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 50%, #e2e8f0 100%);
  background-size: 200% 100%;
  animation: skel 1.4s infinite;
  border-radius: 4px;
}
@keyframes skel {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Tabs */
.tabbar { display: flex; gap: .25rem; border-bottom: 1px solid #e2e8f0; }
.tab {
  padding: .5rem .9rem; font-size: .9rem; color: #475569;
  border-bottom: 2px solid transparent; cursor: pointer;
  transition: color .1s, border-color .1s;
}
.tab.is-active { color: #0066ff; border-bottom-color: #0066ff; font-weight: 600; }
.tab:hover { color: #0049b8; }

/* Toast */
.toast {
  background: #111827; color: #f8fafc;
  padding: .6rem .9rem; border-radius: 8px;
  font-size: .85rem; box-shadow: 0 8px 24px rgba(15,23,42,.18);
  max-width: 28rem; min-width: 14rem;
  animation: toastIn .2s ease-out;
}
.toast.toast-success { background: #15803d; }
.toast.toast-error   { background: #b91c1c; }
.toast.toast-info    { background: #1e40af; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Status dots */
.dot { width: .5rem; height: .5rem; border-radius: 999px; display: inline-block; }
.dot-success { background: #16a34a; }
.dot-warning { background: #d97706; }
.dot-danger  { background: #dc2626; }
.dot-info    { background: #2563eb; }
.dot-mute    { background: #94a3b8; }

/* Compact tables on mobile */
@media (max-width: 640px) {
  table.responsive thead { display: none; }
  table.responsive tr {
    display: block; padding: .6rem .8rem; margin-bottom: .5rem;
    background: white; border: 1px solid #e2e8f0; border-radius: 8px;
  }
  table.responsive td {
    display: flex; justify-content: space-between; gap: .5rem;
    padding: .15rem 0; border: none;
  }
  table.responsive td::before {
    content: attr(data-label); color: #64748b; font-size: .8rem;
  }
}

/* Page transitions */
.page-enter { opacity: 0; transform: translateY(2px); }
.page-enter-active { opacity: 1; transform: none; transition: opacity .15s, transform .15s; }
