.toggle-inline span {
  font-weight: 600;
  pointer-events: none;
}

.toggle-inline input[type="checkbox"]:checked + span {
  color: var(--accent-color);
}

.toggle-inline:hover {
  background: rgba(0, 0, 0, 0.12);
  border-color: rgba(17, 24, 39, 0.2);
}

.toggle input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-color);
}
/* Variáveis globais */
:root {
  --accent-color: #00a8e8;
  --accent-color-light: rgba(0, 168, 232, 0.08);
  --text-color: #1f2933;
  --bg-color: #f4f6fb;
  --surface-color: #ffffff;
  --border-color: rgba(31, 41, 51, 0.1);
  --font-base: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Poppins", "Inter", sans-serif;
  color-scheme: light;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
*[hidden] {
  display: none !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-base);
  background: linear-gradient(180deg, #f1f5f9 0%, #eef2f7 100%);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-heading);
  margin: 0;
}

p {
  margin: 0;
  line-height: 1.6;
}

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

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* padding: 2.5rem 3rem 1.5rem; */
  padding: 0.5rem 3rem 1.5rem;

  gap: 1.5rem;
}

.app-header h1 {
  font-size: 2rem;
  font-weight: 600;
  color: #111827;
}

.app-header p {
  margin-top: 0.35rem;
  max-width: 48ch;
  color: #4b5563;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.app-container {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(460px, 1fr) minmax(280px, 340px);
  gap: 1.5rem;
  padding: 0 3rem 3rem;
  align-items: start;
}

.panel {
  background: var(--surface-color);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.panel-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.panel-header .btn-toggle-highlight {
  align-self: flex-start;
  margin-top: 0.4rem;
}

.panel-header h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #111827;
}

.panel-description {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.panel-preview {
  position: sticky;
  top: 2rem;
  align-self: flex-start;
  max-height: calc(100vh - 3.5rem);
  overflow: hidden;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

fieldset {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 1.25rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.9));
}

legend {
  font-weight: 600;
  font-size: 1rem;
  color: #111827;
  padding: 0 0.5rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.93rem;
  color: #1f2937;
  font-weight: 500;
}

input,
textarea,
select {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-color-light);
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.collection {
  position: relative;
}

.collection-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.collection-item {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chip-input {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chip-input input {
  width: 100%;
  border-style: dashed;
  text-transform: capitalize;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-color-light);
  color: var(--accent-color);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.chip button {
  border: none;
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
}

.btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  background: var(--accent-color);
  color: white;
  box-shadow: 0 10px 20px rgba(0, 168, 232, 0.25);
}

.btn.primary:hover {
  filter: brightness(1.05);
}

.btn.secondary {
  background: rgba(0, 0, 0, 0.08);
  color: #111827;
}

.btn.ghost {
  background: transparent;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
}

.btn.danger-outline {
  background: transparent;
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.4);
}

.palette {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.color-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  background-color: var(--accent-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.color-swatch[data-selected="true"] {
  border-color: rgba(0, 0, 0, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7);
}

.color-swatch:hover {
  transform: translateY(-2px);
}

.preview-section {
  position: relative;
}

.preview-toolbar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 600;
  color: #1f2937;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.toolbar-template-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(17, 24, 39, 0.55);
}

.zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.05);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

.zoom-controls .btn.icon {
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
}

.zoom-controls span {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2937;
  min-width: 48px;
  text-align: center;
}

.toolbar-actions .btn {
  white-space: nowrap;
}

.preview-wrapper {
  width: 100%;
  overflow: auto;
  padding: 0.5rem;
}

.cv-preview {
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  padding: 3rem 2.4rem;
  min-height: 82vh;
  overflow-y: auto;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  transform-origin: top center;
}

.cv-preview.export-mode {
  background: white;
  border-radius: 0;
  border: none;
  box-shadow: none;
  min-height: auto;
  overflow: visible;
}

.cv-preview.font-serif {
  font-family: "Merriweather", "Times New Roman", serif;
}

.cv-preview.font-grotesk {
  font-family: "Space Grotesk", "Inter", sans-serif;
}

.cv-preview.spacing-compact .cv-page {
  gap: 1.1rem;
}

.cv-preview.spacing-compact .cv-section {
  gap: 0.6rem;
}

.cv-preview.spacing-amplo .cv-page {
  gap: 2.1rem;
}

.cv-preview.spacing-amplo .cv-section {
  gap: 1.25rem;
}

.cv-preview.highlight-sections .cv-section {
  background: linear-gradient(135deg, rgba(0, 168, 232, 0.08), rgba(0, 168, 232, 0.02));
  border-radius: 12px;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(0, 168, 232, 0.16);
}

.cv-preview.highlight-sections .cv-section h3 {
  color: rgba(15, 23, 42, 0.78);
}

.preview-placeholder {
  text-align: center;
  padding: 4rem 1rem;
  color: #6b7280;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.preview-placeholder h2 {
  font-size: 1.5rem;
  color: #111827;
}

.cv-page {
  display: grid;
  gap: 1.5rem;
}

.cv-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.75rem;
}

.cv-header.has-photo,
.cv-header.has-avatar {
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
}

.cv-photo {
  width: 104px;
  height: 104px;
  border-radius: 18px;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  background: rgba(15, 23, 42, 0.08);
}

.cv-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cv-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(135deg, var(--accent-color), rgba(255, 255, 255, 0.25));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.cv-header.has-photo .cv-header-text,
.cv-header.has-avatar .cv-header-text {
  flex: 1;
}

.cv-header h1 {
  font-size: 2rem;
  color: #111827;
}

.cv-header .subtitle {
  font-size: 1.05rem;
  color: #4b5563;
  margin-top: 0.2rem;
}

.cv-header .contact {
  display: grid;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: #1f2937;
}

.contact-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  max-width: 260px;
  padding: 0;
}

.contact-item:hover {
  text-decoration: none;
  color: var(--accent-color);
}

.contact-item--static {
  cursor: default;
}

.contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(17, 24, 39, 0.6);
  margin-top: 20px;
}

.contact-value {
  font-weight: 400;
  word-break: break-word;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: rgba(17, 24, 39, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  color: #1f2937;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.contact-icon:hover {
  transform: translateY(-2px);
  background: rgba(17, 24, 39, 0.1);
  border-color: rgba(17, 24, 39, 0.3);
}

.cv-section {
  display: grid;
  gap: 0.85rem;
}

.cv-section h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-color);
}

.cv-summary {
  line-height: 1.75;
  color: #374151;
}

.cv-list {
  display: grid;
  gap: 1rem;
}

.cv-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cv-item-header strong {
  font-size: 1rem;
  color: #111827;
}

.cv-item-subtitle {
  font-size: 0.93rem;
  color: #4b5563;
}

.cv-item-periodo {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.cv-item-descricao {
  margin-top: 0.5rem;
  color: #374151;
  line-height: 1.7;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
}

.skills span {
  background: var(--accent-color-light);
  color: var(--accent-color);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.template-moderno .cv-header {
  align-items: flex-start;
}

.template-moderno .cv-header .contact {
  gap: 1rem;
}

.template-classico {
  font-family: "Inter", serif;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 245, 245, 0.9) 100%);
}

.template-classico .cv-header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.2);
  text-align: center;
}

.template-classico .cv-header h1 {
  font-size: 2.2rem;
  letter-spacing: 0.03em;
}

.template-classico .cv-header .contact {
  justify-content: center;
}

.template-classico .cv-section h3 {
  text-transform: none;
  font-size: 1.15rem;
  border-left: 4px solid var(--accent-color);
  padding-left: 0.75rem;
  letter-spacing: 0.02em;
}

.template-classico .skills span {
  border-radius: 0;
  font-weight: 500;
}

.template-criativo {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.75)), url("https://www.transparenttextures.com/patterns/white-diamond.png");
  border: none;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.template-criativo .cv-header {
  border-bottom: none;
  padding-bottom: 0;
}

.template-criativo .cv-header h1 {
  font-size: 2.4rem;
  letter-spacing: 0.08em;
  color: var(--accent-color);
  text-transform: uppercase;
}

.template-criativo .cv-header .subtitle {
  font-weight: 600;
  color: rgba(15, 23, 42, 0.85);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.template-criativo .cv-header .contact {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--accent-color-light);
  color: rgba(15, 23, 42, 0.9);
}

.template-criativo .cv-section h3 {
  color: rgba(15, 23, 42, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  position: relative;
  padding-left: 1.8rem;
}

.template-criativo .cv-section h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--accent-color);
}

.template-criativo .skills span {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 8px;
}

.template-elegante {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.04) 0%, rgba(255, 255, 255, 0.9) 45%, rgba(255, 255, 255, 1) 100%);
  border-left: 6px solid var(--accent-color);
}

.template-elegante .cv-header {
  border-bottom: none;
  padding-bottom: 0;
}

.template-elegante .cv-section {
  border-left: 3px solid rgba(0, 0, 0, 0.05);
  padding-left: 1rem;
}

.template-elegante .cv-section h3 {
  color: rgba(15, 23, 42, 0.85);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.template-tecnologico {
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.15), rgba(17, 24, 39, 0.02));
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 0 24px 40px rgba(15, 23, 42, 0.18);
  color: #0f172a;
}

.template-tecnologico .cv-header {
  border-bottom: 1px solid rgba(59, 130, 246, 0.45);
  background: rgba(15, 23, 42, 0.75);
  color: white;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  gap: 0.85rem;
}

.template-tecnologico .cv-header h1,
.template-tecnologico .cv-header .subtitle,
.template-tecnologico .cv-header .contact span {
  color: white;
}

.template-tecnologico .contact-label {
  color: rgba(248, 250, 252, 0.75);
}

.template-tecnologico .contact-icon {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #f8fafc;
}

.template-tecnologico .contact-icon:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

.template-tecnologico .cv-header .contact a {
  color: #f8fafc;
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.template-tecnologico .cv-section h3 {
  background: rgba(59, 130, 246, 0.15);
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  color: rgba(15, 23, 42, 0.85);
  width: fit-content;
}

.template-tecnologico .cv-list {
  border-left: 2px solid rgba(59, 130, 246, 0.35);
  padding-left: 1rem;
}

.template-minimal {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(250, 250, 250, 0.85));
}

.template-minimal .cv-page {
  display: grid;
  gap: 1.25rem;
}

.template-minimal .cv-section h3 {
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: rgba(17, 24, 39, 0.65);
}

.template-minimal .cv-list-item {
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  padding-bottom: 0.85rem;
}

.template-minimal .cv-list-item:last-child {
  border-bottom: none;
}

.app-footer {
  margin: 0 3rem 2.5rem;
  padding: 1.5rem 2rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: #4b5563;
  font-weight: 500;
}

.footer-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.example-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(6px);
  z-index: 999;
}

.example-modal__overlay {
  position: absolute;
  inset: 0;
}

.example-modal__panel {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  width: min(420px, 100%);
  padding: 1.75rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 40px 60px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(15, 23, 42, 0.05);
  z-index: 1;
}

.example-modal__header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.example-modal__header h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: #111827;
}

.example-modal__header p {
  margin: 0;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.6;
}

.example-list {
  display: grid;
  gap: 0.5rem;
}

.example-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  color: #1f2937;
}

.example-item strong {
  font-weight: 600;
}

.example-item span {
  font-size: 0.85rem;
  color: #6b7280;
}

.example-item:hover {
  background: rgba(0, 168, 232, 0.12);
  border-color: rgba(0, 168, 232, 0.3);
  transform: translateX(3px);
}

.example-modal__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 1080px) {
  .app-container {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 1.5rem;
  }

  .panel-preview {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .cv-preview {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .app-header,
  .app-container {
    padding: 1.5rem;
  }

  .app-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-footer {
    flex-direction: column;
    align-items: flex-start;
    margin: 0 1.5rem 2rem;
    gap: 0.75rem;
  }

  .example-modal {
    padding: 1.5rem;
  }

  .example-modal__panel {
    width: 100%;
  }
}

@media print {
  body {
    background: white;
    margin: 0;
    padding: 0;
  }

  .app-header,
  .app-footer,
  .panel:not(.panel-preview),
  .preview-toolbar {
    display: none !important;
  }

  .app-container,
  .panel-preview,
  .cv-preview {
    display: block;
  }

  .app-container {
    padding: 0;
  }

  .panel-preview {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
    box-shadow: none;
    border: none;
  }

  .cv-preview {
    box-shadow: none;
    border: none;
    padding: 0;
    min-height: auto;
  }

  .cv-page {
    gap: 1.25rem;
  }
}

.btn-toggle-avatar.active,
.btn-toggle-highlight.active {
  background: var(--accent-color);
  color: #ffffff;
  border-color: rgba(0, 168, 232, 0.8);
  box-shadow: 0 10px 20px rgba(0, 168, 232, 0.25);
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.template-card {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.template-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 23, 42, 0.2);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.template-card.selected {
  border-color: var(--accent-color);
  box-shadow: 0 12px 32px rgba(0, 168, 232, 0.22);
  background: rgba(0, 168, 232, 0.05);
}

.template-thumb {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.12));
}

.template-name {
  font-weight: 600;
  font-size: 1rem;
  color: #111827;
}

.template-note {
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.5;
}

.template-moderno-thumb {
  background: linear-gradient(135deg, rgba(0, 168, 232, 0.35), rgba(0, 168, 232, 0.15));
}

.template-classico-thumb {
  background: linear-gradient(135deg, rgba(71, 85, 105, 0.25), rgba(148, 163, 184, 0.25));
}

.template-criativo-thumb {
  background: linear-gradient(135deg, rgba(255, 99, 99, 0.35), rgba(155, 93, 229, 0.35));
}

.template-elegante-thumb {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.3), rgba(56, 189, 248, 0.25));
}

.template-tecnologico-thumb {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.4), rgba(59, 130, 246, 0.35));
}

.template-minimal-thumb {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.18), rgba(244, 244, 245, 0.6));
}

.panel.creators,
.panel.panel-creators {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.creators-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.creators-section h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #111827;
}

.creators-section .creators-description {
  margin: 0;
  color: #4b5563;
  line-height: 1.6;
}

.creators-section .creators-description a {
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
}

.creators-section .creators-description a:hover {
  text-decoration: underline;
}

.creators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.creator-card {
  display: flex;
  gap: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.creator-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent-color);
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 18px rgba(0, 168, 232, 0.25);
}

.creator-body h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #111827;
}

.creator-role {
  margin: 0.2rem 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(17, 24, 39, 0.55);
}

.creator-description {
  margin: 0 0 0.75rem;
  color: #374151;
  line-height: 1.6;
  font-size: 0.9rem;
}

.creator-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.creator-links a {
  font-weight: 600;
  color: var(--accent-color);
  text-decoration: none;
}

.creator-links a:hover {
  text-decoration: underline;
}

#print-area {
  position: fixed;
  inset: 0;
  width: 100%;
  min-height: 100vh;
  background: #ffffff;
  padding: 0;
  display: none;
}

#print-area .cv-preview {
  width: 794px;
  margin: 0 auto;
  padding: 40px 48px;
  box-shadow: none;
  border: none;
  border-radius: 0;
}

@media print {
  body {
    margin: 0;
    background: #ffffff;
  }

  body * {
    visibility: hidden;
  }

  #print-area,
  #print-area * {
    visibility: visible;
  }

  #print-area {
    display: block;
    position: static;
    width: 210mm;
    min-height: 297mm;
    padding: 0;
    margin: 0 auto;
  }
}

