/* assets/css/base.css */
/* Estilos base e reset leve */

:root {
  color-scheme: light;
  --bg-body: hsl(30, 20%, 98%);
  --bg-card: hsl(30, 20%, 99%);
  --border-subtle: hsl(30, 15%, 89%);
  --text-main: hsl(30, 10%, 8%);
  --text-muted: hsl(30, 5%, 45%);
  --accent: hsl(32, 90%, 50%);
  --accent-soft: hsl(32, 80%, 95%);
  --accent-dark: hsl(32, 90%, 30%);
  --danger: #dc2626;
  --success: #16a34a;
  --radius-card: 12px;
  --shadow-soft: 0 1px 2px rgba(61, 43, 30, 0.08), 0 8px 24px rgba(61, 43, 30, 0.06);
  --font-heading: Georgia, "Times New Roman", serif;
  --font-main: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --chart-2: hsl(200, 70%, 50%);
  --chart-3: hsl(150, 60%, 40%);
  --chart-4: hsl(280, 65%, 55%);
  --chart-5: hsl(350, 70%, 55%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
}

/* Links */

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Cabeçalho padrão */

header {
  background: transparent;
  padding-bottom: 8px;
}

header h1 {
  font-family: var(--font-heading);
  margin: 0 0 4px 0;
  font-size: 1.4rem;
}

header p {
  margin: 0 0 8px 0;
  color: var(--text-muted);
}

header nav {
  margin: 4px 0;
  font-size: 0.95rem;
}

/* Container padrão */

main {
  max-width: 1100px;
  margin: 0 auto;
}

/* Botões */

button,
input[type="submit"] {
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

button:hover,
input[type="submit"]:hover {
  filter: brightness(1.02);
}

button:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Inputs */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  padding: 7px 9px;
  font-family: inherit;
  font-size: 0.95rem;
  resize: none;
   width: 100%;


}


/* Tabelas */

table {
  border-collapse: collapse;
  width: 100%;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

th,
td {
  border: 1px solid var(--border-subtle);
  padding: 6px 8px;
  text-align: left;
  font-size: 0.9rem;
}

th {
  background: hsl(30, 15%, 96%);
  font-weight: 600;
}

/* Mensagens */

.flash-success {
  color: var(--success);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.flash-error {
  color: var(--danger);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.flash-error ul {
  margin: 4px 0 0 16px;
  padding: 0;
}

/* Utilitários */

.muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.field {
  margin-bottom: 10px;
}

.field label {
  display: inline-block;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 0.9rem;
}

.input-lg {
  width: 100%;
  max-width: 480px;
}

.input-xl {
  width: 100%;
  max-width: 640px;
}

.textarea-editor {
  width: 100%;
  max-width: 1000px;
  min-height: 400px;
  font-family: "JetBrains Mono", "Consolas", monospace;
  font-size: 14px;
  line-height: 1.4;
}
