:root {
  --primary: #00bed6; /* Turquesa Deskfy */
  --primary-dark: #00a0b6; /* Turquesa escuro para hover */
  --secondary: #222222; /* Preto para textos principais */
  --success: #00c176; /* Verde para elementos de sucesso */
  --danger: #ff4d4d; /* Vermelho para alertas */
  --warning: #ffd166; /* Amarelo para avisos */
  --info: #0091ff; /* Azul para informação */
  --light: #f5f5f5; /* Cinza claro para backgrounds */
  --dark: #222222; /* Preto para textos principais */
  --body-bg: #ffffff; /* Fundo branco */
  --body-color: #222222; /* Cor de texto principal */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: color 0.3s, background-color 0.3s, border-color 0.3s,
    box-shadow 0.3s;
}

body {
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--body-color);
  background-color: var(--body-bg);
  background-image: linear-gradient(to bottom, white, #f0fcff 100%);
  padding: 0;
  min-height: 100vh;
}

/* Estilos para a barra superior */
.top-bar {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-bar-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.top-bar nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.top-bar nav a {
  text-decoration: none;
  color: var(--secondary);
  font-weight: 500;
  font-size: 15px;
}

.top-bar nav a:hover {
  color: var(--primary);
}

/* Responsividade do menu para dispositivos móveis */
@media (max-width: 768px) {
  .top-bar nav ul .dropdown {
    display: none; /* Esconde os itens de dropdown no mobile */
  }

  .top-bar-content {
    justify-content: space-between;
  }

  .top-bar nav ul {
    gap: 10px;
  }

  .top-bar img {
    width: 100px; /* Logo um pouco menor no mobile */
  }

  .cta-button {
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* Estilos para o dropdown menu */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.dropdown-arrow {
  font-size: 10px;
  margin-left: 5px;
  transition: transform 0.3s;
}

.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 180px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  z-index: 200;
  padding: 8px 0;
  margin-top: 10px;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 15px;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s;
}

.dropdown-item:hover {
  background-color: #f5f5f5;
  color: var(--primary);
}

.cta-button {
  background-color: var(--primary);
  color: white !important;
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.3s;
}

.cta-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 190, 214, 0.2);
}

.container {
  max-width: 920px;
  margin: 40px auto;
  background-color: white;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 48px;
}

@media (max-width: 768px) {
  .container {
    margin: 20px 15px;
    padding: 25px;
    border-radius: 16px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  h3 {
    font-size: 18px;
  }
}

/* Elemento decorativo */
.decorative-element {
  width: 80px;
  height: 6px;
  background: linear-gradient(90deg, var(--primary) 0%, #7fe7f3 100%);
  margin: 0 auto 25px;
  border-radius: 3px;
}

h1,
h2,
h3 {
  color: var(--secondary);
  margin-bottom: 20px;
  font-weight: 700;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 20px;
}

.header {
  text-align: center;
  margin-bottom: 40px;
  border-bottom: 1px solid #eee;
  padding-bottom: 30px;
}

.logo {
  margin-bottom: 25px;
}

.subtitle {
  margin-top: 15px;
  font-weight: 500;
  color: #555;
}

.section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.form-group {
  margin-bottom: 25px;
}

label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--secondary);
}

input[type="radio"] {
  margin-right: 10px;
  accent-color: var(--primary);
}

.radio-option {
  display: block;
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
}

.radio-option input {
  position: absolute;
  left: 0;
  top: 3px;
}

select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  font-family: "Inter", sans-serif;
}

button,
.deskfy-button {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  display: block;
  margin: 40px auto;
  transition: background-color 0.3s, transform 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  animation: pulseTurquoise 2s infinite;
}

@keyframes pulseTurquoise {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 190, 214, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 190, 214, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 190, 214, 0);
  }
}

button:hover,
.deskfy-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 190, 214, 0.4);
  animation: none;
}

#results {
  display: none;
  margin-top: 40px;
  animation: fadeIn 0.5s ease-in-out;
}

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

.result-header {
  text-align: center;
  margin-bottom: 40px;
}

.result-summary {
  background-color: var(--light);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 40px;
  border-left: 4px solid var(--primary);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.result-detail {
  margin-top: 40px;
}

.meter-container {
  width: 100%;
  height: 40px;
  background-color: #e9ecef;
  border-radius: 20px;
  overflow: hidden;
  margin: 25px 0;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, #7fe7f3 100%);
  border-radius: 20px 0 0 20px;
  transition: width 1s ease-in-out;
  box-shadow: 0 0 10px rgba(0, 190, 214, 0.3);
}

.meter-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: black;
  font-weight: bold;
}

.comparison-chart {
  margin-top: 25px;
}

.comparison-item {
  margin-top: 20px;
}

.comparison-values {
  display: flex;
  margin: 15px 0;
}

.comparison-before,
.comparison-after {
  flex: 1;
}

.comparison-after {
  color: var(--primary);
  font-weight: 600;
}

.case-study {
  background-color: #f0fcff; /* Turquesa bem claro */
  padding: 25px;
  border-radius: 12px;
  margin: 40px 0;
  border-left: 4px solid var(--primary);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.case-study h4 {
  color: var(--primary-dark);
  margin-bottom: 15px;
}

.case-button-container {
  margin-top: 25px;
  text-align: center;
}

.case-button {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.case-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  color: white !important;
  box-shadow: 0 5px 15px rgba(0, 190, 214, 0.3);
}

.indicator {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.indicator:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.indicator p {
  margin: 0;
}

.indicator-value {
  font-weight: bold;
  color: var(--primary);
  background-color: #f0fcff;
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
}

.area {
  background-color: #fff3e0;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  border-left: 4px solid #ff9800;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.area h4 {
  color: #f57c00;
  margin-bottom: 15px;
}

.area ul {
  margin-left: 20px;
}

.area li {
  margin-bottom: 8px;
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  .comparison-values {
    flex-direction: column;
  }

  .comparison-before,
  .comparison-after {
    margin-bottom: 12px;
  }
}

/* Adiciona um tom um pouco mais escuro para o hover nos links */
a:hover:not(.demo-button) {
  color: var(--primary);
}

/* Ajusta a cor de foco nos inputs */
input[type="radio"]:focus,
select:focus {
  outline: 2px solid rgba(0, 190, 214, 0.4);
}

/* Adiciona um efeito de hover nos elementos interativos */
.radio-option:hover label {
  color: var(--primary-dark);
}

/* Adiciona um tom mais vibrante às estatísticas */
strong {
  color: var(--secondary);
}

.comparison-after strong {
  color: var(--primary);
}

/* Estilos para os botões de ação */
.button-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 40px 0;
}

.button-group .deskfy-button {
  margin: 0;
}

.pdf-button {
  background-color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdf-button:hover {
  background-color: #444;
}

.pdf-button::before {
  content: "📄";
  margin-right: 8px;
  font-size: 18px;
}

.demo-button {
  background-color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
}

.demo-button:hover {
  background-color: #00a060; /* Tom mais escuro de verde */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 193, 118, 0.4);
  color: white;
}

.demo-button::before {
  content: "📅";
  margin-right: 8px;
  font-size: 18px;
}

/* Estilos para o link de reset */
.reset-link {
  color: #666666 !important; /* Cinza secundário */
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  padding: 10px 0;
  position: relative;
  transition: all 0.3s ease;
}

.reset-link:hover {
  color: #444444 !important; /* Tom mais escuro para o hover */
}

.reset-link::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #666666 !important; /* Linha com a mesma cor */
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

.reset-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.reset-button::before {
  content: "🔄";
  margin-right: 8px;
  font-size: 18px;
}

@media (max-width: 768px) {
  .button-group {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .button-group .deskfy-button,
  .button-group .reset-link {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .reset-link {
    order: 3; /* Coloca o link de reset por último na versão móvel */
  }
}

/* Estilos para exportação PDF */
.pdf-export {
  background-color: white;
  padding: 32px 48px;
  max-width: 210mm; /* Largura de uma página A4 */
  margin: 0 auto;
  font-size: 14px;
  box-shadow: none;
}

/* Estilos para o cabeçalho do PDF com o logo */
.pdf-only {
  display: none; /* Oculto por padrão */
}

.pdf-export .pdf-only {
  display: block; /* Visível apenas durante exportação PDF */
  text-align: center;
  margin-bottom: 20px;
}

.pdf-logo {
  display: inline-block;
  max-width: 120px;
  height: auto;
}

.pdf-export .button-group {
  display: none !important;
}

.pdf-export .reset-link,
.pdf-export .case-button-container,
.pdf-export .demo-button {
  display: none !important;
}

.pdf-export .decorative-element {
  margin: 15px auto; /* Reduz o espaço da decoração */
}

.pdf-export h1 {
  font-size: 24px;
  margin-bottom: 15px;
}

.pdf-export h2 {
  font-size: 20px;
  margin-bottom: 15px;
}

.pdf-export h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.pdf-export .meter-container {
  height: 30px; /* Altura menor para caber melhor no PDF */
}

.pdf-export .case-study {
  margin: 25px 0; /* Margem menor */
  padding: 15px; /* Padding menor */
}

.pdf-export * {
  page-break-inside: avoid; /* Tenta evitar quebras de página dentro de elementos */
}

/* Força quebras de página em determinados pontos */
.pdf-export .result-detail {
  page-break-before: auto;
  page-break-after: auto;
}

/* Garantir que os estilos antigos para o botão não interfiram */
.reset-button::before {
  content: none !important;
}

/* Garantir que o botão de demonstração mantenha o texto branco */
.demo-button,
.demo-button:hover,
.demo-button:focus,
.demo-button:active {
  color: white !important;
}

/* Estilos para seção especial do PDF */
.deskfy-footer-section {
  margin-top: 50px;
  border-top: 2px solid var(--primary);
  padding-top: 30px;
}

.deskfy-about {
  margin-bottom: 30px;
}

.deskfy-about h3 {
  color: var(--primary);
  font-size: 20px;
  margin-bottom: 15px;
}

.deskfy-about p {
  font-size: 16px;
  line-height: 1.6;
}

.deskfy-clients {
  margin-bottom: 30px;
}

.deskfy-clients h3 {
  font-size: 18px;
  margin-bottom: 20px;
}

.client-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.client-logo {
  height: 40px;
  max-width: 120px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .deskfy-footer-section {
    margin-top: 30px;
    padding-top: 20px;
  }

  .deskfy-about h3,
  .deskfy-clients h3 {
    font-size: 16px;
  }

  .deskfy-about p {
    font-size: 14px;
  }

  .client-logo {
    height: 30px;
    max-width: 90px;
  }

  .client-logos {
    gap: 10px;
  }

  .deskfy-cta {
    font-size: 16px;
  }

  .deskfy-cta strong {
    font-size: 18px;
  }
}

.client-logos-fallback {
  display: none; /* Oculto por padrão */
  text-align: center;
  margin: 20px 0;
  font-style: italic;
  color: #555;
}

/* Script adicional para mostrar o fallback se as imagens não carregarem */
.pdf-export .client-logos:empty + .client-logos-fallback,
.pdf-export .client-logos img:not([complete]),
.pdf-export .client-logos img[src=""] + .client-logos-fallback {
  display: block;
}

.deskfy-cta {
  text-align: center;
  margin: 30px 0 10px;
  font-size: 18px;
}

.deskfy-cta p {
  color: var(--secondary);
}

.deskfy-cta strong {
  color: var(--primary);
  font-size: 22px;
}
