/* Tema compartilhado — cores e utilitários iguais ao index */

:root {
  --deep-wine: #8b0000; /* Vermelho escuro */
  --soft-rose: #ffb6c1; /* Vermelho claro suave */
  --blush-pink: #ffcccb; /* Vermelho blush */
  --dusty-rose: #dc143c; /* Vermelho vibrante */
  --cream: #fdf6f0;
  --gold: #c9a96e;
}

body {
  background-color: var(--cream);
  color: #5D5D5D;
  font-family: 'Poppins', sans-serif;
}

.text-wine { color: var(--deep-wine); }
.text-gold { color: var(--gold); }
.bg-wine { background-color: var(--deep-wine); }
.bg-soft-rose { background-color: var(--soft-rose); }
.bg-blush-pink { background-color: var(--blush-pink); }
.border-wine { border-color: var(--deep-wine); }
.border-gold { border-color: var(--gold); }

.font-playfair { font-family: 'Playfair Display', serif; }

.btn-elegant {
  background: linear-gradient(135deg, var(--deep-wine), var(--dusty-rose));
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 0.65rem 1.25rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(139, 38, 53, 0.2);
  text-decoration: none;
  display: inline-block;
  min-height: 42px;
  font-size: clamp(0.95rem, 1.8vw, 1rem);
}

.btn-elegant:hover { 
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 38, 53, 0.3);
  color: #fff; 
}

/* Helpers responsivos para tabelas */
.table-container { overflow-x: auto; }

@media (max-width: 576px) {
  .btn-elegant { font-size: 0.9rem; padding: 0.6rem 1rem; }
}

/* Tipografia fluida para títulos e texto */
h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
p, label, input, select, td, th { font-size: clamp(0.95rem, 1.2vw, 1rem); }

/* Containers utilitários */
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 1rem; }
.container-wide { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.section { margin: 1rem 0 2rem; }

/* Pilha responsiva para botões e ações */
.stack-sm { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
@media (max-width: 576px) { .stack-sm { flex-direction: column; align-items: stretch; } }

/* Tabela: melhorar legibilidade em mobile */
.table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
th, td { padding: 0.75rem; }
@media (max-width: 576px) { th, td { padding: 0.5rem; } }

/* Controles de formulário do tema */
.form-control-theme { border: 1px solid var(--soft-rose); border-radius: 6px; padding: 0.65rem 0.75rem; font-family: 'Poppins', sans-serif; }
.form-control-theme:focus { outline: none; border-color: var(--dusty-rose); box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.15); }

/* Ajustes de padding dos containers em mobile */
@media (max-width: 576px) { .container-wide, .container-narrow { padding: 0 0.75rem; } }