/* assets/css/base.css */
/* Estilos base e reset leve */

:root {
  color-scheme: light;
  --bg-body: #f3f4f6;
  --bg-card: #ffffff;
  --border-subtle: #e5e7eb;
  --text-main: #111827;
  --text-muted: #6b7280;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --danger: #dc2626;
  --success: #16a34a;
  --radius-card: 8px;
  --shadow-soft: 0 1px 3px rgba(15, 23, 42, 0.12);
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  resize: none;
 width: 100%;

}

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 {
  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.05);
}

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: #f9fafb;
  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;
}
