/* ==========================================
   RESET
========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* ==========================================
   CONFIGURAÇÕES GERAIS
========================================== */

body {
  font-family: Arial, sans-serif;
  background: #f8f5f0;
  color: #333;
}


/* ==========================================
   HEADER / PÁGINA INICIAL
========================================== */

header {
  padding: 25px 8%;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}


/* ==========================================
   HERO
========================================== */

.hero {
  min-height: 80vh;
  padding: 80px 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.hero-text {
  max-width: 600px;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.1;
  margin-bottom: 25px;
}

.hero p {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 35px;
  color: #666;
}


/* ==========================================
   BOTÕES
========================================== */

.button {
  display: inline-block;
  padding: 16px 30px;
  background: #222;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 17px;
  border: none;
  cursor: pointer;
  transition: 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}


/* ==========================================
   CARD DA HOME
========================================== */

.hero-card {
  width: 350px;
  height: 350px;
  background: white;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}


/* ==========================================
   PÁGINA PÚBLICA DO PET
========================================== */

.pet-page {
  min-height: 100vh;
  padding: 30px 16px 50px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}


/* ==========================================
   ÁREA DE CARREGAMENTO
========================================== */

#carregando {
  width: 100%;
  max-width: 500px;
  margin-top: 80px;
  background: white;
  padding: 40px 30px;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

#carregando h2 {
  margin-bottom: 10px;
}

#carregando p {
  color: #777;
  line-height: 1.5;
}


/* ==========================================
   CARD PRINCIPAL DO PET
========================================== */

.pet-card {
  width: 100%;
  max-width: 520px;
  background: white;
  border-radius: 28px;
  padding: 25px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.10);
  text-align: center;
}


/* ==========================================
   FOTO DO PET
========================================== */

#petFoto {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 22px;
  margin-bottom: 20px;
}


/* ==========================================
   STATUS
========================================== */

.pet-status {
  display: inline-block;
  padding: 9px 15px;
  border-radius: 999px;
  background: #eaf7ed;
  color: #24733a;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 15px;
}

.pet-status.pet-lost {
  background: #ffe8e8;
  color: #c62828;
}


/* ==========================================
   ALERTA PET PERDIDO
========================================== */

.alerta-pet-perdido {
  background: #fff0f0;
  border: 2px solid #e53935;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 22px;
  text-align: left;
}

.alerta-pet-perdido strong {
  display: block;
  color: #c62828;
  font-size: 16px;
  margin-bottom: 8px;
}

.alerta-pet-perdido p {
  color: #7f1d1d;
  font-size: 14px;
  line-height: 1.5;
}


/* ==========================================
   NOME DO PET
========================================== */

#petNome {
  font-size: 38px;
  line-height: 1.1;
  margin-bottom: 8px;
  color: #222;
}

#petResumo {
  color: #777;
  font-size: 16px;
  margin-bottom: 25px;
}


/* ==========================================
   INFORMAÇÕES DO PET
========================================== */

.pet-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 25px;
}

.pet-info > div {
  background: #f8f5f0;
  border-radius: 16px;
  padding: 15px 12px;
  text-align: left;
}

.pet-info strong {
  display: block;
  font-size: 13px;
  color: #777;
  margin-bottom: 6px;
}

.pet-info span {
  display: block;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}


/* ==========================================
   SEÇÕES
========================================== */

.pet-section {
  background: #fafafa;
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 15px;
  text-align: left;
  border: 1px solid #eeeeee;
}

.pet-section h3 {
  font-size: 17px;
  margin-bottom: 9px;
  color: #333;
}

.pet-section p {
  color: #666;
  line-height: 1.6;
  white-space: pre-line;
}


/* ==========================================
   RESPONSÁVEL
========================================== */

.responsavel-box {
  margin-top: 20px;
  padding: 20px;
  background: #f8f5f0;
  border-radius: 18px;
  text-align: left;
}

.responsavel-box h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.responsavel-box p {
  color: #555;
}


/* ==========================================
   BOTÃO WHATSAPP
========================================== */

.whatsapp-button {
  width: 100%;
  margin-top: 20px;
  background: #25d366;
  text-align: center;
  border-radius: 14px;
  padding: 17px;
}

.whatsapp-button:hover {
  background: #1ebe5d;
}


/* ==========================================
   PET NÃO ENCONTRADO
========================================== */

#petErro {
  width: 100%;
  max-width: 500px;
  margin-top: 80px;
  background: white;
  padding: 45px 30px;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

#petErro h2 {
  margin-bottom: 12px;
  font-size: 28px;
}

#petErro p {
  color: #777;
  line-height: 1.5;
}


/* ==========================================
   RESPONSIVIDADE
========================================== */

@media (max-width: 768px) {

  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 50px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-card {
    width: 280px;
    height: 280px;
  }

  .pet-page {
    padding: 15px 12px 35px;
  }

  .pet-card {
    padding: 18px;
    border-radius: 24px;
  }

  #petNome {
    font-size: 32px;
  }

  .pet-info {
    gap: 9px;
  }

  .pet-info > div {
    padding: 13px 10px;
  }

  .alerta-pet-perdido {
    padding: 15px;
  }
}/* ==========================================
   LOGIN
========================================== */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
}

.login-card {
  width: 100%;
  max-width: 430px;
  background: #ffffff;
  padding: 35px;
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.login-logo {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #f3e8ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.login-card h1 {
  margin-bottom: 10px;
  color: #333333;
}

.login-subtitle {
  color: #777777;
  line-height: 1.5;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
  color: #444444;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #dddddd;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
  background: #ffffff;
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.mensagem-login {
  min-height: 22px;
  margin-top: 15px;
  color: #555555;
  font-size: 14px;
}

.login-ajuda {
  margin-top: 25px;
  color: #777777;
  font-size: 14px;
}

.login-link {
  color: #7c3aed;
  font-weight: 600;
  text-decoration: none;
}


/* ==========================================
   PAINEL DO DONO
========================================== */

.painel-page {
  min-height: 100vh;
  padding: 30px 20px 50px;
}

.painel-card {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  background: #ffffff;
  padding: 35px;
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.painel-topo {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.painel-tag {
  display: inline-block;
  margin-bottom: 8px;
  color: #7c3aed;
  font-weight: 700;
  font-size: 14px;
}

.painel-topo h1 {
  margin: 0 0 8px;
  color: #333333;
}

.painel-topo p {
  margin: 0;
  color: #777777;
}

.botao-sair {
  border: none;
  background: #f3f3f3;
  color: #555555;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.botao-sair:hover {
  background: #e9e9e9;
}

.painel-subtitulo {
  margin: 30px 0 18px;
  font-size: 19px;
  color: #333333;
}

.painel-foto-area {
  text-align: center;
  margin-bottom: 30px;
}

.preview-foto {
  width: 130px;
  height: 130px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #f3e8ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  overflow: hidden;
}

.preview-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.painel-foto-area p {
  margin: 0;
  color: #777777;
  font-size: 14px;
}

.status-opcoes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

.status-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  border: 1px solid #dddddd;
  border-radius: 12px;
  cursor: pointer;
  background: #ffffff;
}

.status-option:hover {
  background: #fafafa;
}

.status-option input {
  width: auto;
}

.status-perdido {
  border-color: #f1b0b0;
}

#painelSemPet {
  text-align: center;
  padding: 30px 10px;
}

#painelSemPet h2 {
  margin-bottom: 10px;
}

#painelSemPet p {
  color: #777777;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {

  .login-card {
    padding: 25px 20px;
  }

  .painel-page {
    padding: 15px 10px 30px;
  }

  .painel-card {
    padding: 25px 20px;
    border-radius: 20px;
  }

  .painel-topo {
    flex-direction: column;
  }

  .botao-sair {
    align-self: flex-end;
  }

}/* ==========================================
   BOTÃO DE FOTO
========================================== */

.botao-foto {
  display: inline-block;
  padding: 10px 18px;
  background: #7c3aed;
  color: #ffffff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.botao-foto:hover {
  background: #6d28d9;
}.alerta-localizacao {
  background: #f5f3ff;
  border: 2px solid #7c3aed;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 22px;
  text-align: left;
}

.alerta-localizacao strong {
  display: block;
  color: #5b21b6;
  font-size: 16px;
  margin-bottom: 8px;
}

.alerta-localizacao p {
  color: #4c1d95;
  font-size: 14px;
  line-height: 1.5;
}

.botao-localizacao {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: 8px;
  background: #7c3aed;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.botao-localizacao:hover {
  background: #6d28d9;
}

.mensagem-localizacao {
  margin-top: 12px;
  margin-bottom: 0;
  font-weight: 600;
}
.alertas-localizacao {
  margin-top: 25px;
  padding: 20px;
  background: #fff7ed;
  border: 2px solid #f97316;
  border-radius: 18px;
  text-align: left;
}

.alertas-localizacao h2 {
  margin-top: 0;
  color: #c2410c;
  font-size: 18px;
}

.alerta-localizacao-item {
  background: #ffffff;
  padding: 16px;
  border-radius: 12px;
}

.alerta-localizacao-data {
  font-size: 14px;
  color: #555;
  margin-bottom: 12px;
}

.botao-mapa {
  display: inline-block;
  padding: 11px 16px;
  background: #16a34a;
  color: #ffffff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
}

.botao-mapa:hover {
  background: #15803d;
}