html,
body {
  margin: 0;
  min-height: 100%;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

body {
  font-family: "Inter", "Segoe UI", sans-serif;
}

button,
label[for],
[role="button"] {
  cursor: pointer;
}

.editorial-card {
  border-radius: 0.375rem;
  border: 1px solid rgb(229 231 235);
  background: rgb(255 255 255);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.dark .editorial-card {
  border-color: rgb(39 39 42);
  background: rgb(24 24 27);
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tiptap {
  line-height: 1.55;
}

.tiptap p {
  margin: 0.5rem 0;
}

.tiptap h1,
.tiptap h2,
.tiptap h3 {
  margin: 0.75rem 0 0.5rem 0;
  font-weight: 700;
}

.tiptap ul,
.tiptap ol {
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}

.tiptap ul {
  list-style-type: disc;
}

.tiptap ol {
  list-style-type: decimal;
}

.tiptap li {
  display: list-item;
}

.tiptap blockquote {
  border-left: 3px solid #cbd5e1;
  margin: 0.75rem 0;
  padding-left: 0.75rem;
  color: #475569;
}

.toolbar-btn {
  align-items: center;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  color: #0f172a;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 700;
  height: 2rem;
  justify-content: center;
  min-width: 2rem;
  padding: 0 0.55rem;
  transition: background-color 0.15s ease;
}

.toolbar-select {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 700;
  height: 2rem;
  padding: 0 0.5rem;
}

.toolbar-sep {
  background: #dbe3ec;
  display: inline-block;
  height: 1.4rem;
  width: 1px;
}

.toolbar-btn:hover {
  background: #f1f5f9;
}

.dark .toolbar-btn {
  background: #18181b;
  border-color: #3f3f46;
  color: #e4e4e7;
}

.dark .toolbar-btn:hover {
  background: #27272a;
}

.dark .toolbar-select {
  background: #18181b;
  border-color: #3f3f46;
  color: #e4e4e7;
}

.btn-secondary {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 0.375rem;
  color: #b91c1c;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.75rem;
  text-transform: uppercase;
  transition: background-color 0.15s ease;
}

.btn-secondary:hover {
  background: #fecaca;
}

.dark .btn-secondary {
  background: #450a0a;
  border-color: #7f1d1d;
  color: #fca5a5;
}

.dark .btn-secondary:hover {
  background: #7f1d1d;
}

.dark .toolbar-sep {
  background: #3f3f46;
}

.animate-in {
  animation: fadeSlide 0.4s ease-out;
}

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

#blazor-error-ui {
  background: #fef2f2;
  border-top: 1px solid #fecaca;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}
