/**
 * Site + admin: tema gira de direita (único CSS nestas páginas)
 * Público: html.theme-direita + logodireita.png
 */

:root {
  --spacing: 1.5rem;
  --main-page-width: 120rem;
  --table-min-width: 60rem;
  --biggest-font-size: 4.8rem;
  --bigger-font-size: 3.6rem;
  --big-font-size: 2.8rem;
  --medium-font-size: 2rem;
  --small-font-size: 1.6rem;
  --smaller-font-size: 1.4rem;
  --smallest-font-size: 1.2rem;
  --transition-fast: 300ms;
  --transition-medium: 500ms;
  --transition-slow: 800ms;
  --default-border-radius: 12px;
  --primary-color: #224d20;
  --primary-dark: #1a3d18;
  --primary-light: #3d6b2f;
  --accent-color: #d4af37;
  --accent-light: #f5f5f0;
  --accent-teal: #5a8f6e;
  --clr-white: #ffffff;
  --clr-black: #2c2c2c;
  --clr-link-nav: #654321;
  --clr-light-gray: #f5f5f0;
  --clr-medium-gray: #d8d8d8;
  --body-bg-start: #f5f5f0;
  --body-bg-end: #fafafa;
  --page-header-shine: rgba(212, 175, 55, 0.12);
  --clr-dark-shadow-5: rgba(0, 0, 0, 0.05);
  --clr-dark-shadow-10: rgba(0, 0, 0, 0.08);
  --clr-dark-shadow-20: rgba(0, 0, 0, 0.12);
  --clr-dark-shadow-30: rgba(0, 0, 0, 0.18);
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --card-shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.1);
}
/* Barra de preview de tema — só em DEBUG */
.debug-tema-switch {
  max-width: var(--main-page-width);
  margin: 0 auto;
  padding: 1rem var(--spacing) 0;
  width: 100%;
}

.debug-tema-switch__form {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem 1rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
  border: 2px dashed #856404;
  border-radius: var(--default-border-radius);
  font-size: var(--smaller-font-size);
}

.debug-tema-switch__actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}


.debug-tema-switch__label {
  font-weight: 700;
  margin-right: 0.25rem;
}

.debug-tema-switch__btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 2px solid #856404;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: inherit;
  font-family: inherit;
  text-decoration: none;
  color: inherit;
  line-height: 1.3;
  -webkit-tap-highlight-color: transparent;
}

.debug-tema-switch__btn:hover {
  filter: brightness(0.97);
}

.debug-tema-switch__btn.is-active {
  background: #856404;
  color: #fff;
}



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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.7;
  font-size: var(--small-font-size);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  color: var(--clr-black);
  background: linear-gradient(135deg, var(--body-bg-start) 0%, var(--body-bg-end) 100%);
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Header — alinhado ao mockup (borda inferior dourada / vermelha, logo circular) */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  padding: 1rem var(--spacing) 1.25rem;
  border-bottom: 3px solid var(--accent-color);
  box-shadow: none;
  z-index: 100;
  position: sticky;
  top: 0;
  flex-wrap: wrap;
  gap: 1.5rem;
  overflow: visible;
}

.header-heading {
  flex: 0 0 auto;
  min-width: 0;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.header-logo-link {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.header-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10.8rem;
  height: 10.8rem;
  border-radius: 0;
  overflow: visible;
  flex-shrink: 0;
}



.header-logo-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-fast) ease;
}

.header-logo-link:hover .header-logo-img {
  transform: scale(1.04);
}

@media (max-width: 480px) {
  .header-logo-wrap {
    width: 9rem;
    height: 9rem;
  }
}

.header-site-title {
  margin: 0;
  padding: 0 0.75rem;
  font-size: clamp(1.5rem, 2.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  flex: 1 1 10rem;
  min-width: 0;
  text-align: center;
  align-self: center;
  letter-spacing: -0.02em;
}

.header-link {
  color: var(--accent-light);
  text-decoration: none;
  transition: all var(--transition-fast) ease-in-out;
}

.header-link:hover {
  filter: brightness(110%);
}

.header-calendario {
  background: #ffffff;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--primary-color);
  border-radius: var(--default-border-radius);
  box-shadow: var(--card-shadow);
  max-width: 350px;
  font-size: var(--smaller-font-size);
  transition: transform var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
}



.header-calendario:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
}

.header-calendario h4 {
  margin: 0 0 1rem 0;
  font-size: var(--small-font-size);
  color: var(--primary-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-calendario h4::before {
  /* content: "📅"; */
  font-size: 1.8rem;
}

.header-gira-lista {
  list-style: none;
  padding: 0;
  margin: 0;
}

.header-gira-lista li {
  margin-bottom: 0.8rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(34, 77, 32, 0.12);
  color: var(--clr-black);
  font-weight: 500;
}

.header-gira-lista li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* Navigation Menu */
.menu {
  background: var(--clr-white);
  padding: 1rem 0;
  box-shadow: 0 2px 4px var(--clr-dark-shadow-10);
  margin: 0;
}

.menu-list {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-flow: row wrap;
  gap: 1rem;
  padding: 0 var(--spacing);
}

.menu-item {
  position: relative;
}

.menu-link {
  display: block;
  padding: 1rem 2rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--default-border-radius);
  background: var(--clr-white);
  transition: all var(--transition-fast) ease-in-out;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.menu-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(247, 197, 30, 0.22), transparent);
  transition: left var(--transition-medium) ease;
}

.menu-link:hover::before {
  left: 100%;
}

.menu-link:hover {
  background: linear-gradient(135deg, var(--accent-light) 0%, #f4fbef 100%);
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
  color: var(--primary-dark);
}

.login-btn .menu-link {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--clr-white);
}

.login-btn .menu-link:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  color: var(--accent-light);
  border-color: var(--primary-dark);
}

/* Mockup direita — menu em texto (#654321), sem “pílulas” */






/* Main Content */
.content {
  max-width: var(--main-page-width);
  margin: calc(var(--spacing) * 2) auto;
  padding: calc(var(--spacing) * 2);
  background: var(--clr-white);
  box-shadow: var(--card-shadow);
  border-radius: var(--default-border-radius);
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cards */
.card {
  background: var(--clr-white);
  border-radius: var(--default-border-radius);
  padding: 2rem;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-fast) ease;
  margin-bottom: 2rem;
}


.card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
}

.card-header {
  border-bottom: 2px solid var(--accent-light);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: var(--big-font-size);
  color: var(--primary-color);
  font-weight: 700;
  margin: 0;
}

.card-body {
  color: var(--clr-black);
  line-height: 1.8;
}

/* Resumo da gira na página fora do horário (cores via variáveis do tema direita/esquerda) */
.fora-horario-gira-box {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: var(--default-border-radius);
  border-left: 4px solid var(--accent-color);
  background: var(--clr-light-gray);
  color: var(--clr-black);
}

.fora-horario-gira-box p {
  margin-bottom: 0.5rem;
}

.fora-horario-gira-box p:last-child {
  margin-bottom: 0;
}

.fora-horario-gira-box__desc {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-light);
  font-size: 0.95em;
}

.fora-horario-gira-box__meta {
  margin: 0;
  font-size: 0.9em;
}

/* Page Headers */
.page-header {
  text-align: center;
  padding: 3rem 0;
  margin-bottom: 3rem;
  background: #ffffff;
  border-radius: var(--default-border-radius);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 77, 32, 0.12);
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--page-header-shine) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.page-header h1 {
  font-size: var(--bigger-font-size);
  color: var(--primary-color);
  font-weight: 800;
  margin: 0;
  position: relative;
  z-index: 1;
  text-shadow: none;
}

.page-header p {
  font-size: var(--medium-font-size);
  color: var(--clr-black);
  margin-top: 1rem;
  position: relative;
  z-index: 1;
}

/* Single Contact */
.single-contact {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.single-contact h1 {
  font-size: var(--bigger-font-size);
  color: var(--primary-color);
  margin: 2rem 0 1rem 0;
  font-weight: 700;
  line-height: 1.2;
}

.single-contact h2 {
  font-size: var(--big-font-size);
  color: var(--primary-dark);
  margin: 2rem 0 1rem 0;
  font-weight: 600;
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
}

.single-contact p {
  margin: 1.5rem 0;
  line-height: 1.8;
  color: var(--clr-black);
  font-size: var(--small-font-size);
}

.createdate {
  font-size: var(--smallest-font-size);
  color: var(--primary-light);
  margin-top: 0.5rem;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.createdate::before {
  content: "??";
}

/* Forms */
.form-wrapper {
  max-width: 700px;
  margin: 2rem auto;
  background: var(--clr-white);
  padding: 3rem;
  border-radius: var(--default-border-radius);
  box-shadow: var(--card-shadow);
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
  position: relative;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--primary-dark);
  font-size: var(--small-font-size);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1.2rem 1.5rem;
  border: 2px solid var(--clr-medium-gray);
  border-radius: var(--default-border-radius);
  font-size: var(--small-font-size);
  font-family: inherit;
  transition: all var(--transition-fast) ease;
  background: var(--clr-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.22);
  transform: translateY(-1px);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: var(--primary-light);
}

button[type="submit"],
.btn {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--clr-white);
  font-weight: 600;
  border: none;
  padding: 1.4rem 3rem;
  border-radius: var(--default-border-radius);
  cursor: pointer;
  transition: all var(--transition-fast) ease-in-out;
  font-size: var(--small-font-size);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

button[type="submit"]::before,
.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button[type="submit"]:hover::before,
.btn:hover::before {
  width: 300px;
  height: 300px;
}

button[type="submit"]:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
  color: var(--accent-light);
}

button[type="submit"]:active,
.btn:active {
  transform: translateY(0);
}

/* Messages */
.message {
  max-width: 700px;
  margin: 2rem auto;
  padding: 1.5rem 2rem;
  text-align: center;
  border-radius: var(--default-border-radius);
  font-size: var(--small-font-size);
  font-weight: 500;
  box-shadow: var(--card-shadow);
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.message.success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border: 2px solid #28a745;
  color: #155724;
}

.message.error {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  border: 2px solid #dc3545;
  color: #721c24;
}

.message.warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border: 2px solid #ffc107;
  color: #856404;
}

.message.info {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  border: 2px solid #17a2b8;
  color: #0c5460;
}

/* Success Card for Senha */
.senha-card {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border: 3px solid #28a745;
  border-radius: var(--default-border-radius);
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
  box-shadow: var(--card-shadow-hover);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.senha-card strong {
  font-size: var(--big-font-size);
  color: #155724;
  display: block;
  margin: 1rem 0;
  font-weight: 700;
}

/* Error Messages */
.errorlist {
  list-style: none;
  font-size: var(--smaller-font-size);
  color: #dc3545;
  background: #f8d7da;
  padding: 1rem;
  border-radius: var(--default-border-radius);
  margin-top: 0.5rem;
  border-left: 4px solid #dc3545;
}

.errorlist.nonfield {
  color: inherit;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  color: var(--accent-light);
  padding: 3rem var(--spacing);
  margin-top: 4rem;
  text-align: center;
  box-shadow: 0 -4px 6px var(--clr-dark-shadow-10);
}

.footer-content {
  max-width: var(--main-page-width);
  margin: 0 auto;
}

.footer p {
  margin: 1rem 0;
  font-size: var(--small-font-size);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color var(--transition-fast) ease;
}

.footer-links a:hover {
  color: var(--accent-color);
}







/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --biggest-font-size: 3.6rem;
    --bigger-font-size: 2.8rem;
    --big-font-size: 2.2rem;
    --medium-font-size: 1.8rem;
  }

  .header {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem var(--spacing);
  }

  .header-heading {
    min-width: auto;
    width: 100%;
    justify-content: center;
  }

  .header-logo-link {
    margin: 0 auto;
  }

  .header-site-title {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 0.25rem var(--spacing);
  }

  .header-calendario {
    max-width: 100%;
  }

  .menu-list {
    flex-direction: column;
  }

  .content {
    padding: var(--spacing);
    margin: var(--spacing);
  }

  .form-wrapper {
    padding: 2rem 1.5rem;
  }

  .page-header {
    padding: 2rem 1rem;
  }
}

@media (min-width: 600px) {
  .single-contact {
    max-width: 90%;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Tables */
.responsive-table {
  width: 100%;
  overflow-x: auto;
}

.contacts-table {
  width: 100%;
  min-width: var(--table-min-width);
  border-collapse: collapse;
  box-shadow: var(--card-shadow);
  border-radius: var(--default-border-radius);
  overflow: hidden;
}

.table-caption {
  font-size: var(--medium-font-size);
  font-weight: bold;
  padding: var(--spacing);
  background: var(--accent-light);
  color: var(--primary-dark);
}

.table-row {
  text-align: left;
  transition: background-color var(--transition-fast) ease-in-out;
}

.table-row:nth-of-type(2n) {
  background: var(--clr-light-gray);
}

.table-row:not(.table-row-header):hover {
  background: var(--accent-light);
}

.table-row-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--clr-white);
}

.table-cel,
.table-header {
  padding: 1.5rem var(--spacing);
}

.table-link {
  color: var(--primary-color);
  transition: color var(--transition-fast) ease-in-out;
  text-decoration: none;
  font-weight: 500;
}

.table-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

html.theme-direita .header-site-title {
  color: #224d20;
  background: linear-gradient(
    135deg,
    #1a3d18 0%,
    #224d20 35%,
    #3d6b2f 55%,
    #c9a227 78%,
    #d4af37 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 8px rgba(34, 77, 32, 0.12));
}

@supports not (background-clip: text) {
  html.theme-direita .header-site-title {
    color: #224d20;
    background: none;
    -webkit-text-fill-color: unset;
    text-shadow: 0 1px 0 #d4af37, 0 2px 12px rgba(34, 77, 32, 0.2);
  }
}

html.theme-direita .header-gira-lista li {
  border-bottom-color: rgba(34, 77, 32, 0.12);
}

html.theme-direita .menu {
  background: transparent;
  box-shadow: none;
  padding: 0.75rem 0 0.5rem;
}

html.theme-direita .menu-link {
  color: var(--clr-link-nav);
  background: transparent;
  border: 2px solid transparent;
}

html.theme-direita .menu-link::before {
  display: none;
}

html.theme-direita .menu-link:hover {
  background: transparent;
  text-decoration: underline;
  transform: none;
  box-shadow: none;
  border-color: transparent;
  color: var(--clr-link-nav);
}

html.theme-direita .login-btn .menu-link {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

html.theme-direita .login-btn .menu-link:hover {
  text-decoration: none;
  color: var(--accent-light);
}

html.theme-direita .card {
  border-left: 4px solid var(--primary-color);
}

html.theme-direita .footer {
  background: transparent;
  color: var(--clr-black);
  opacity: 0.85;
  box-shadow: none;
}

html.theme-direita .footer-links a {
  color: var(--clr-link-nav);
}

html.theme-direita .footer-links a:hover {
  color: var(--primary-color);
}
