/* Portal de Formulários — Life Laboral — shared frontend styles (light theme only)
   Layout comes from per-element inline styles; this file only provides the
   reset, hover/focus states, and the custom-widget visuals. */

/* ---------- Base reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100%; }
body { overflow-x: hidden; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; }
a { color: inherit; }

/* ---------- Inputs (.ll-input on input/select/textarea) ---------- */
.ll-input {
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ll-input:hover { border-color: #84949c; }
.ll-input:focus,
.ll-input:focus-visible {
  border-color: #43B5B6;
  box-shadow: 0 0 0 4px rgba(67,181,182,.35);
}

/* ---------- Buttons ---------- */
.ll-btn-primary {
  transition: background-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.ll-btn-primary:hover { background: #34999a !important; }
.ll-btn-primary:active { transform: translateY(1px); }
.ll-btn-primary:focus-visible { box-shadow: 0 0 0 4px rgba(67,181,182,.35); }
.ll-btn-primary:disabled { opacity: .65; cursor: default; }

.ll-btn-outline {
  transition: background-color .15s ease, box-shadow .15s ease;
}
.ll-btn-outline:hover { background: #eaf5fb !important; }
.ll-btn-outline:focus-visible { box-shadow: 0 0 0 4px rgba(13,75,134,.2); }

/* ---------- Portal cards (.ll-card-link) ---------- */
.ll-card-link {
  display: block;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(13,75,134,.06);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.ll-card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(13,75,134,.15);
  border-color: #43B5B6 !important;
}
.ll-card-link:focus-visible {
  outline: none;
  border-color: #43B5B6 !important;
  box-shadow: 0 0 0 4px rgba(67,181,182,.35);
}

/* ---------- Login pill (.ll-pill) ---------- */
.ll-pill {
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.ll-pill:hover {
  border-color: #43B5B6 !important;
  background: #eef9f9 !important;
}
.ll-pill:focus-visible {
  outline: none;
  border-color: #43B5B6 !important;
  box-shadow: 0 0 0 4px rgba(67,181,182,.35);
}

/* ---------- Text links (.ll-link) ---------- */
.ll-link { text-decoration: none; }
.ll-link:hover { text-decoration: underline; }
.ll-link:focus-visible { outline: 2px solid #43B5B6; outline-offset: 2px; border-radius: 3px; }

/* ---------- Yes/No radio-dot widget ---------- */
.ll-radio-opt { -webkit-tap-highlight-color: transparent; }
.dot-outer {
  width: 20px; height: 20px;
  border-radius: 999px;
  border: 2px solid #84949c;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-sizing: border-box;
  transition: border-color .15s ease, background-color .15s ease;
}
.dot-inner {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: #fff;
  transform: scale(0);
  transition: transform .15s ease;
}
.ll-radio-opt.selected .dot-outer { border-color: #43B5B6; background: #43B5B6; }
.ll-radio-opt.selected .dot-inner { transform: scale(1); }

/* ---------- Tri-state OK / NOK / Parcial pills (Ergonomia) ---------- */
.ll-check-opt {
  font-family: 'Mulish', system-ui, sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  background: #fff;
  color: #5b6b74;
  border: 1.5px solid #d9e0e4;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.ll-check-opt:hover { border-color: #84949c; }
.ll-check-opt:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(67,181,182,.3); }
.ll-check-opt.sel-ok  { background: #e4f4ec; color: #2f9e6b; border-color: #2f9e6b; }
.ll-check-opt.sel-nok { background: #fbe7e6; color: #d24b46; border-color: #d24b46; }
.ll-check-opt.sel-adq { background: #fbf0dc; color: #d9922b; border-color: #d9922b; }

/* Observation area is hidden until NOK/Parcial is chosen (forms.js reveals it) */
.ll-check-obs { display: none; }

/* Styled file input helper text */
.ll-file-name { font-family: 'Mulish', system-ui, sans-serif; font-size: 12.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .ll-grid  { grid-template-columns: 1fr !important; }
  .ll-cards { grid-template-columns: 1fr !important; }
  /* let form/page headers wrap instead of overflowing */
  .ll-header { flex-wrap: wrap; }
}
