* {
  font-family: "Montserrat", sans-serif;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  color: #333;
}

html,
body {
  height: auto;
  min-height: 100vh;
}

html {
  background: linear-gradient(180deg, #ea03ff 0%, #464747 100%);
}

input:focus {
  outline: none;
}

/* NAVEGAÇÃO */
.navbar {
  background-color: #1a1a1a !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #81d340 !important;
  letter-spacing: 1px;
}

.nav-tabs-container {
  display: flex;
  gap: 1rem;
}

.nav-tab-btn {
  background: none;
  border: none;
  color: #fff;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  border-bottom: 3px solid transparent;
}

.nav-tab-btn:hover {
  color: #81d340;
}

.nav-tab-btn.active {
  color: #81d340;
  border-bottom-color: #81d340;
}

/* ABAS */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* SEÇÃO GERADOR */
#registra-corpo {
  max-width: 950px;
  min-height: 80vh;
  margin: 2rem auto;
  display: flex;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
    rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

#meu-banner {
  background: url("../img/word.webp");
  background-size: cover;
  background-position: center;
  width: 50%;
}

#banner-layer {
  background-color: rgba(25, 11, 122, 0.7);
  height: 100%;
  padding: 2rem;
  display: flex;
  align-items: center;
}

#meu-banner h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: #fff;
  word-spacing: 50rem;
}

#registra-form {
  background-color: #fdfdfd;
  padding: 2rem;
  width: 50%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

#registra-form h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2.2rem;
}

#registra-form p {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #aaa;
  font-size: 0.8rem;
}

.form-control {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.form-control label {
  font-weight: bold;
  margin-bottom: 0.6rem;
}

.form-control input {
  border: none;
  border-bottom: 1px solid #aaa;
  padding: 0.6rem 0;
}

#open-generate-password {
  font-weight: bold;
  cursor: pointer;
  transition: 0.4s;
}

#open-generate-password:hover {
  color: #0099ff;
}

#registra-form #generated-password {
  border: 1px solid #0099ff;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 0.4rem;
  color: #333;
  text-align: center;
  margin-bottom: 1rem;
  display: none;
}

#registra-form #generated-password p {
  color: #81d340;
  margin-bottom: 0.5rem;
}

#registra-form input[type="submit"],
#generate-options button,
#copiar-password {
  background-color: #81d340;
  color: #fff;
  opacity: 0.8;
  border: none;
  border-radius: 2rem;
  padding: 1rem 1.4rem;
  max-width: 150px;
  cursor: pointer;
  align-self: flex-end;
  transition: 0.4s;
}

#registra-form input[type="submit"]:hover,
#generate-options button:hover,
#copiar-password:hover {
  opacity: 1;
}

/* Segunda versão */
#generate-options {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #ddd;
}

#generate-options .form-control {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

#generate-options label {
  font-size: 0.8rem;
}

#generate-options input[type="text"] {
  max-width: 30px;
  text-align: center;
  border: 1px solid #ccc;
}

#generate-options button {
  background-color: #0097ff;
  display: block;
  margin: 0 auto;
}

#copiar-password {
  margin: 1rem auto;
  background-color: transparent;
  border: 2px solid #81d340;
  color: #81d340;
  padding: 0.5rem 1rem;
}

.hide {
  display: none;
}

/* ========== SEÇÃO CADASTRO DE CLIENTE ========== */
.cadastro-container {
  max-width: 1000px;
  margin: 2rem auto;
  display: flex;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
    rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
  min-height: 80vh;
}

.cadastro-banner {
  background: url("../img/eva.jpg");
  background-size: cover;
  background-position: center;
  width: 40%;
  position: relative;
}

.cadastro-banner-layer {
  background-color: rgba(25, 11, 122, 0.75);
  height: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.cadastro-banner-layer h1 {
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cadastro-banner-layer p {
  font-size: 1rem;
  color: #81d340;
  font-weight: 500;
}

.cadastro-form-container {
  background-color: #fdfdfd;
  padding: 2.5rem;
  width: 60%;
  overflow-y: auto;
}

.cadastro-form h2 {
  font-size: 1.5rem;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #81d340;
  display: inline-block;
}

.cadastro-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group select {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background-color: #fafafa;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #81d340;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(129, 211, 64, 0.1);
  outline: none;
}

.form-group input::placeholder {
  color: #bbb;
}

.form-group input.is-invalid,
.form-group select.is-invalid {
  border-color: #dc3545;
  background-color: #fff5f5;
}

.form-group .form-text {
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.btn-submit {
  background-color: #81d340;
  color: #fff;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  max-width: 300px;
}

.btn-submit:hover {
  background-color: #6db82e;
  box-shadow: 0 4px 12px rgba(129, 211, 64, 0.3);
  transform: translateY(-2px);
}

.btn-submit:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-secondary {
  background-color: #f0f0f0;
  color: #333;
  border: 2px solid #ddd;
  padding: 0.85rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  max-width: 200px;
}

.btn-secondary:hover {
  background-color: #e0e0e0;
  border-color: #999;
}

.alert {
  border-radius: 6px;
  border: none;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
}

/* RESPONSIVO */
@media (max-width: 992px) {
  .cadastro-container {
    flex-direction: column;
    min-height: auto;
  }

  .cadastro-banner {
    width: 100%;
    min-height: 250px;
  }

  .cadastro-form-container {
    width: 100%;
    padding: 2rem;
  }

  #registra-corpo {
    flex-direction: column;
    min-height: auto;
  }

  #meu-banner {
    width: 100%;
    min-height: 250px;
  }

  #registra-form {
    width: 100%;
  }

  .nav-tabs-container {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .nav-tab-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .cadastro-form-container,
  #registra-form {
    padding: 1.5rem;
  }

  .cadastro-banner-layer h1,
  #meu-banner h1 {
    font-size: 2rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn-submit,
  .btn-secondary {
    max-width: 100%;
  }

  .row [class*="col-"] {
    margin-bottom: 0.5rem;
  }
}

/* ========== BOTÃO FLUTUANTE WHATSAPP ========== */
.whatsapp-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #25d366 0%, #20ba5c 100%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  z-index: 1000;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-button:hover {
  width: auto;
  padding: 12px 20px;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transform: scale(1.05);
  animation: none;
}

.whatsapp-button .whatsapp-icon {
  display: block;
  min-width: 28px;
}

.whatsapp-button .whatsapp-text {
  display: none;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  font-family: "Montserrat", sans-serif;
}

.whatsapp-button:hover .whatsapp-text {
  display: block;
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 4px 25px rgba(37, 211, 102, 0.4);
  }
  100% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }
}

/* Botão responsivo em mobile */
@media (max-width: 768px) {
  .whatsapp-button {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 24px;
  }

  .whatsapp-button:hover {
    width: auto;
    padding: 10px 15px;
  }

  .whatsapp-button .whatsapp-text {
    font-size: 12px;
  }
}
