/* Complementos ao Tailwind (CDN) — classes reutilizáveis */
html { scroll-behavior: smooth; }

.chip {
  display: inline-flex; align-items: center; gap: .25rem;
  border-radius: 9999px; padding: .45rem 1rem; font-size: .85rem; font-weight: 600;
  background: #fff; color: #334155; box-shadow: inset 0 0 0 1px #e2e8f0; transition: all .15s;
}
.chip:hover { color: #4f46e5; box-shadow: inset 0 0 0 1px #a5b4fc; }
.chip-active, .chip-active:hover { background: #4f46e5; color: #fff; box-shadow: none; }

.card { background: #fff; border-radius: 1rem; padding: 1.75rem; box-shadow: 0 1px 2px rgba(15,23,42,.05), inset 0 0 0 1px #e2e8f0; }
.card-title { display: flex; align-items: center; gap: .6rem; font-size: 1.15rem; font-weight: 700; color: #0f172a; margin-bottom: 1.25rem; }
.step { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: .6rem; background: #eef2ff; color: #4338ca; font-weight: 800; font-size: .9rem; }

.label { display: block; font-size: .85rem; font-weight: 600; color: #334155; margin-bottom: .35rem; }
.input {
  width: 100%; border-radius: .65rem; border: 1px solid #cbd5e1; background: #fff;
  padding: .7rem .9rem; font-size: .95rem; color: #0f172a; outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.18); }
.input-error { border-color: #ef4444; }
.input-error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,.18); }

.option-card {
  display: flex; gap: .75rem; align-items: flex-start; cursor: pointer;
  border-radius: .8rem; padding: 1rem; border: 1px solid #e2e8f0; transition: all .15s;
}
.option-card:hover { border-color: #a5b4fc; }
.option-card:has(input:checked) { border-color: #4f46e5; background: #eef2ff; }
.option-card input { margin-top: .2rem; accent-color: #4f46e5; }

.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 2.75rem; height: 2.75rem; border-radius: 9999px; display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: #0f172a; font-size: 1.75rem; line-height: 1;
  box-shadow: 0 4px 14px rgba(0,0,0,.2); opacity: 0; transition: opacity .2s;
}
.group:hover .gallery-nav { opacity: 1; }
@media (hover: none) { .gallery-nav { opacity: 1; } }

.spinner { width: 1.1rem; height: 1.1rem; border-radius: 9999px; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.copied { background: #10b981 !important; color: #fff !important; }

.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Painel admin */
.adm-table { width: 100%; font-size: .875rem; }
.adm-table th { text-align: left; font-weight: 600; color: #64748b; padding: .75rem 1rem; background: #f8fafc; border-bottom: 1px solid #e2e8f0; white-space: nowrap; }
.adm-table td { padding: .8rem 1rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.adm-table tr:hover td { background: #fafbff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border-radius: .6rem; padding: .55rem 1rem; font-size: .875rem; font-weight: 600; transition: all .15s; }
.btn-primary { background: #4f46e5; color: #fff; } .btn-primary:hover { background: #4338ca; }
.btn-light { background: #fff; color: #334155; box-shadow: inset 0 0 0 1px #cbd5e1; } .btn-light:hover { background: #f8fafc; }
.btn-danger { background: #fee2e2; color: #b91c1c; } .btn-danger:hover { background: #fecaca; }
.btn-success { background: #10b981; color: #fff; } .btn-success:hover { background: #059669; }
.btn-sm { padding: .35rem .7rem; font-size: .78rem; }
.copy-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .8rem 1rem; border-radius: .7rem; background: #f8fafc; box-shadow: inset 0 0 0 1px #e2e8f0; }
.copy-row .k { font-size: .75rem; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.copy-row .v { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92rem; color: #0f172a; word-break: break-all; }
