/* ────────────────────────────────────────────────────────────
   IntelliForge — App Stylesheet
   Built on top of Tailwind CDN; these are shared component
   classes kept here to avoid repeating long utility strings.
──────────────────────────────────────────────────────────── */

[x-cloak] { display: none !important; }

/* ── Layout ──────────────────────────────────────────────── */
.app-shell { display: flex; }

/* ── Sidebar navigation items ────────────────────────────── */
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  transition: background-color 150ms, color 150ms;
  text-decoration: none;
}
.nav-item:hover { background-color: #f3f4f6; color: #111827; }
.nav-item.active { background-color: #eef2ff; color: #4f46e5; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: #ffffff;
  border-radius: 0.875rem;
  border: 1px solid #f1f5f9;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.05), 0 1px 2px -1px rgb(0 0 0 / 0.05);
}

.stat-card {
  background: #ffffff;
  border-radius: 0.875rem;
  border: 1px solid #f1f5f9;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.05);
  padding: 1.25rem;
  transition: box-shadow 150ms;
}
.stat-card:hover {
  box-shadow: 0 4px 12px 0 rgb(0 0 0 / 0.08);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background-color: #4f46e5;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.625rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 150ms, box-shadow 150ms;
  white-space: nowrap;
}
.btn-primary:hover { background-color: #4338ca; box-shadow: 0 4px 12px rgb(79 70 229 / 0.3); }
.btn-primary:active { background-color: #3730a3; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background-color: #ffffff;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.625rem;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 150ms, border-color 150ms;
  white-space: nowrap;
}
.btn-secondary:hover { background-color: #f9fafb; border-color: #d1d5db; }

/* ── Form inputs ─────────────────────────────────────────── */
.input-field {
  display: block;
  width: 100%;
  padding: 0.5625rem 0.875rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  color: #111827;
  transition: border-color 150ms, box-shadow 150ms;
  outline: none;
}
.input-field:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgb(99 102 241 / 0.12);
}
.input-field::placeholder { color: #9ca3af; }
select.input-field { appearance: auto; }

/* ── Table helpers ───────────────────────────────────────── */
.th-cell {
  padding: 0.75rem 1.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  text-align: left;
}
.td-cell {
  padding: 0.875rem 1.25rem;
  color: #374151;
  vertical-align: middle;
}

/* ── Status badges ───────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.status-pending   { background: #f3f4f6; color: #6b7280; }
.status-processing,
.status-transcribing,
.status-summarizing { background: #eff6ff; color: #2563eb; }
.status-completed  { background: #f0fdf4; color: #16a34a; }
.status-failed     { background: #fef2f2; color: #dc2626; }

/* ── Toast notifications ─────────────────────────────────── */
.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.15), 0 4px 6px -2px rgb(0 0 0 / 0.05);
  min-width: 280px;
  max-width: 380px;
  pointer-events: all;
  animation: toast-in 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.toast.toast-out {
  animation: toast-out 0.2s ease-in forwards;
}
.toast-success { background: #ffffff; border-left: 4px solid #10b981; }
.toast-error   { background: #ffffff; border-left: 4px solid #ef4444; }
.toast-info    { background: #ffffff; border-left: 4px solid #6366f1; }
.toast-warning { background: #ffffff; border-left: 4px solid #f59e0b; }

.toast-icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; margin-top: 0.05rem; }
.toast-icon-success { color: #10b981; }
.toast-icon-error   { color: #ef4444; }
.toast-icon-info    { color: #6366f1; }
.toast-icon-warning { color: #f59e0b; }

.toast-body { flex: 1; }
.toast-message { font-size: 0.875rem; font-weight: 500; color: #111827; line-height: 1.4; }
.toast-close {
  background: none; border: none; cursor: pointer;
  color: #9ca3af; padding: 0; flex-shrink: 0;
  transition: color 150ms;
}
.toast-close:hover { color: #374151; }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0)   scale(1); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to   { opacity: 0; transform: translateX(20px) scale(0.95); }
}

/* ── Prose overrides for meeting minutes ─────────────────── */
.prose h2 { font-size: 1.0625rem; font-weight: 700; color: #111827; margin: 1.5rem 0 0.5rem; }
.prose h3 { font-size: 0.9375rem; font-weight: 600; color: #374151; margin: 1.25rem 0 0.4rem; }
.prose p  { margin: 0.5rem 0; color: #4b5563; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0.5rem 0; }
.prose li { margin: 0.25rem 0; color: #4b5563; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin: 0.75rem 0; }
.prose th { background: #f8fafc; padding: 0.5rem 0.75rem; text-align: left; font-weight: 600; color: #374151; border: 1px solid #e5e7eb; }
.prose td { padding: 0.5rem 0.75rem; border: 1px solid #e5e7eb; color: #4b5563; }
.prose code { background: #f1f5f9; padding: 0.1rem 0.3rem; border-radius: 0.25rem; font-size: 0.8125rem; color: #4f46e5; }

/* ── Landing page animations ─────────────────────────────── */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
  animation: fade-in-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-fade-in-up-delay-1 { animation-delay: 0.1s; }
.animate-fade-in-up-delay-2 { animation-delay: 0.2s; }
.animate-fade-in-up-delay-3 { animation-delay: 0.3s; }

/* ── Smooth section reveals with intersection observer support ──── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
