/* Shared stylesheet for the anthropometric evaluations app.
   Palette and typography extracted from the prototype
   (Avaliacoes Antropometricas.dc.html).
   Add the Google Fonts <link> tags in each page's <head>:
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link href="https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=DM+Serif+Display&display=swap" rel="stylesheet">
*/

:root {
  --color-primary: #677b16;
  --color-primary-hover: #4f5e10;
  --color-text: #23261c;
  --color-accent: #C4982a;
  --color-bg: #f5f4ee;
  --color-surface: #fffefb;
  --color-border: #e4e2d6;
  --color-border-input: #dcdacd;
  --color-muted: #6b6d5f;
  --color-danger: #b5532f;
  --color-header-bg: #23261c;
  --color-header-surface: #34382b;
  --font-sans: 'Manrope', system-ui, sans-serif;
  --font-serif: 'DM Serif Display', serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  margin: 0 0 0.5em;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-hover);
}

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

/* Layout helpers */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px clamp(16px, 3vw, 40px);
}

.center-page {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

/* Header / topbar */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 24px;
  background: var(--color-header-bg);
  color: var(--color-bg);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.topbar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  display: inline-block;
}

/* Card */

.card {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 36px;
}

.card--narrow {
  max-width: 400px;
}

.card-logo {
  width: 220px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.card-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 700;
  margin-top: 18px;
  text-align: center;
}

/* Forms */

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  height: 44px;
  border: 1px solid var(--color-border-input);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 15px;
  background: #fff;
  color: var(--color-text);
}

.field textarea {
  height: auto;
  padding: 10px 12px;
}

.error-text {
  font-size: 13px;
  color: var(--color-danger);
  min-height: 18px;
}

.hint-text {
  font-size: 12px;
  color: var(--color-muted);
}

/* Buttons */

.btn {
  height: 46px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 20px;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--color-muted);
}

.btn-secondary:hover {
  color: var(--color-text);
}

.btn-danger {
  background: var(--color-danger);
  color: #fff;
}

.btn-block {
  width: 100%;
}

/* Tables */

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table.data-table th,
table.data-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
}

table.data-table th {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 700;
}

table.data-table tbody tr:hover {
  background: rgba(103, 123, 22, 0.06);
}

/* Links list (landing page) */

.link-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.link-list a {
  display: block;
  text-align: center;
  height: 46px;
  line-height: 46px;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

.link-list a:hover {
  background: var(--color-primary-hover);
  color: #fff;
}

@media print {
  [data-noprint] {
    display: none !important;
  }

  body {
    background: #fff;
  }
}
