:root {
  --color-primary: #d97706;
  --color-secondary: #451a03;
  --color-accent: #fbbf24;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
}

/* Button visibility fallback */
button[type="submit"] {
  background-color: var(--color-primary, #2563eb);
  color: #fff;
}

/* Override for delete/destructive buttons */
button[type="submit"].bg-red-600 {
  background-color: #dc2626;
}

button[type="submit"].bg-green-600 {
  background-color: #16a34a;
}

/* Ensure focus-visible styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Smooth transitions */
a, button {
  transition: color 0.15s ease, background-color 0.15s ease;
}

/* Table improvements */
table {
  border-collapse: collapse;
}

/* Custom scrollbar for chat */
.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}