/*
  © 2025 Essiou - Marketing Solutions, Lda.  Todos os direitos reservados.
  Autor: Pedro Fernandes · https://essiou.pt
  Aviso: Este código é propriedade intelectual da Essiou - Marketing Solutions, Lda.
  É proibida a cópia, redistribuição ou utilização não autorizada, total ou parcial.
*/

:root {
  --bg: #0b1020; /* fundo escuro, elegante */
  --card: #141a2e;
  --muted: #96a0b5;
  --text: #eaf0ff;
  --acc: #6aa5ff;
  --acc-2: #7cf0c7;
  --danger: #ff6b6b;
  --ok: #2ecc71;
  --border: #25304f;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --radius: 18px;
}
/* Tema claro */
body.light {
  --bg: #f6f8ff;
  --card: #ffffff;
  --muted: #5a647a;
  --text: #0d1b2a;
  --acc: #2f6fff;
  --acc-2: #00c7a5;
  --danger: #c62828;
  --ok: #2e7d32;
  --border: #dbe3ff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    "Helvetica Neue", "Noto Sans", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(
      1200px 600px at 10% -10%,
      #1d2950 0%,
      transparent 60%
    ),
    radial-gradient(900px 700px at 110% 10%, #11385d 0%, transparent 60%),
    var(--bg);
  color: var(--text);
}
body.light {
  background: var(--bg);
}
a {
  color: var(--acc);
}
.wrap {
  max-width: 1050px;
  margin: 48px auto;
  padding: 0 20px;
}
header {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: 0.2px;
}
.tabs {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
body.light .tabs {
  background: #f4f7ff;
}
.tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.tab.active {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  color: var(--text);
  border: 1px solid var(--border);
}

.card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
body.light .card {
  background: #fff;
}
.card .body {
  padding: 22px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 820px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin: 8px 2px;
}
.req::after {
  content: " *";
  color: var(--danger);
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea,
.fake-input {
  width: 100%;
  background: #0f1426;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 12px;
  outline: none;
  font: inherit;
}
body.light input[type="text"],
body.light input[type="email"],
body.light input[type="tel"],
body.light input[type="date"],
body.light textarea {
  background: #f8fbff;
}
textarea {
  min-height: 110px;
  resize: vertical;
}

.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.radio {
  display: flex;
  gap: 10px;
  align-items: center;
}
.radio input {
  accent-color: var(--acc);
}
.checkbox input {
  accent-color: var(--acc);
}

.help {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}
.btn {
  appearance: none;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
}
.btn.primary {
  background: linear-gradient(90deg, var(--acc), var(--acc-2));
  color: #0a1330;
}
body.light .btn.primary {
  color: #fff;
}
.btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.hidden {
  display: none !important;
}

.note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}
.note .law {
  font-weight: 600;
}

.status {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  display: none;
}
body.light .status {
  background: #f7f9ff;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 23, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}
body.light .modal-backdrop {
  background: rgba(13, 27, 42, 0.3);
}
.modal {
  width: min(560px, 100%);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
body.light .modal {
  background: #fff;
}
.modal header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.modal header h3 {
  margin: 0;
  font-size: 18px;
}
.modal .content {
  padding: 18px;
}
.modal .actions {
  padding: 0 18px 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px dashed var(--border);
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 14px;
}
body.light .tag {
  background: #f6f8ff;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Botão de tema fixo no lado direito do ecrã */
.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1100;
  border: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
  backdrop-filter: blur(6px);
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  color: #fff;
}
body.light .theme-toggle {
  background: #ffffff;
  color: var(--text);
}
.footer{ 
    margin:24px 0 32px; 
}
.footer-inner{ 
    display:flex; justify-content:center; 
}