@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  /* Marca */
  --color-brand: #e2679c;
  --color-brand-dark: #b8447a;
  --color-brand-light: #fbeaf1;
  --color-brand-contrast: #ffffff;

  /* Preto e branco: usados no menu e nos botões */
  --color-ink: #1a1a1a;
  --color-ink-hover: #3a3a3a;

  /* Neutros */
  --color-text: #222222;
  --color-text-muted: #5a5a5a;
  --color-bg: #ffffff;
  --color-bg-muted: #f5f5f5;
  --color-border: #dddddd;

  /* Tipografia */
  --font-family: 'Poppins', system-ui, -apple-system, sans-serif;

  /* Sombras e cantos arredondados */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);

  /* Status (sempre com texto/ícone junto, nunca só cor) */
  --color-success-bg: #e8f8ee;
  --color-success-text: #1f7a3a;
  --color-warning-bg: #fff7e6;
  --color-warning-text: #a66a00;
  --color-danger-bg: #fdecec;
  --color-danger-text: #b42318;
  --color-info-bg: #eef4ff;
  --color-info-text: #2358b5;

  /* Mensagens de erro em formulário */
  --color-error-bg: #fdecec;
  --color-error-text: #8a1c1c;
  --color-error-border: #f3b4b4;

  /* Escala de tipografia */
  --font-base: 16px;
  --font-sm: 14px;
  --font-lg: 20px;
  --font-xl: 28px;

  /* Escala de espaçamento */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;

  /* Anel de foco */
  --focus-ring: 3px solid #2358b5;
  --focus-ring-offset: 2px;

  /* Área de toque mínima */
  --touch-target-min: 44px;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: 600;
}

/* Foco visível universal — a correção de maior impacto para navegação por teclado */
:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-brand);
}

button,
input,
select,
textarea {
  font-family: inherit;
}

a {
  color: var(--color-brand-dark);
}

button {
  background-color: var(--color-ink);
  color: var(--color-brand-contrast);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

button:hover {
  background-color: var(--color-ink-hover);
  box-shadow: var(--shadow-sm);
}

button:active {
  transform: translateY(1px);
}

/* Badges de status: cor sempre acompanhada do texto do próprio badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: bold;
  background: var(--color-bg-muted);
  color: var(--color-text);
}

.status-badge--success {
  background: var(--color-success-bg);
  color: var(--color-success-text);
}

.status-badge--warning {
  background: var(--color-warning-bg);
  color: var(--color-warning-text);
}

.status-badge--danger {
  background: var(--color-danger-bg);
  color: var(--color-danger-text);
}

.status-badge--info {
  background: var(--color-info-bg);
  color: var(--color-info-text);
}

/* Área de toque mínima para botões só de ícone (ex: excluir, fechar) */
.btn-icon {
  min-width: var(--touch-target-min);
  min-height: var(--touch-target-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
