*,
*::before,
*::after {
  box-sizing: border-box;
}
/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
  padding-bottom: 80px;
  padding-top: env(safe-area-inset-top, 70px); /* mesmo valor do height do header */
  margin: 0;

}

/* Header */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;            /*ou o tamanho real do seu header */
  background-color: #FFC107;
  text-align: center;
  font-weight: bold;
  font-size: 20px;
  line-height: 60px;      /*centraliza o texto verticalmente */
  z-index: 1000;
}



/* Container principal */
.container {
  max-width: 600px;
  margin: 0px auto;
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding-bottom:3%;
  padding-top: 3%;
}
.container-cliente {
  padding-top: 10%;
  max-width: 600px;
  margin: 0px auto;
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding-bottom:8%;
  margin-bottom: 1%;
  margin-top: 1%;
}
.container-atualizar {
  padding-top: 1%;
  max-width: 600px;
  margin: 0px auto;
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding-bottom:3%;
  
}


/* Formulários */
label {
  display: block;
  margin-top: 15px;
  margin-bottom: 5px;
  font-weight: bold;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s ease;
  width: 100%;
}

button:hover {
  background-color: #0056b3;
}

/* Botões específicos */
#salvarPerfilBtn {
  background-color: #28a745;
  color: white;
  font-size: 16px;
  padding: 14px;
  border: none;
  border-radius: 10px;
  margin-top: 30px;
}

#selecionarFotoBtn {
  background-color: #007bff;
  color: white;
}

#salvarFotoBtn {
  background-color: #4CAF50;
  color: white;
}

/* Estilo da imagem de perfil */
.foto-container {
  text-align: center;
  margin-top: 15px;
}

.foto-container img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ccc;
}

.foto-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.foto-actions button {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

/* Lista com checkbox (serviços e cidades) */
.checkbox-list {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0;
  max-height: 250px;
  overflow-y: auto;
  margin-top: 10px;
  background-color: #f9f9f9;
}

.checkbox-list label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid #eee;
}

.checkbox-list label:last-child {
  border-bottom: none;
}

.checkbox-list span {
  flex-grow: 1;
  text-align: left;
  font-size: 15px;
  white-space: normal;
  overflow-wrap: break-word;
}

.checkbox-list input[type="checkbox"] {
  margin-left: 16px;
  margin-right: 16px;
}

.checkbox-list .categoria-titulo {
  background: #eaeaea;
  font-weight: bold;
  padding: 10px 16px;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ccc;
}

/* Navegação inferior */
nav,
nav#menuInferior {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(60px + env(safe-area-inset-bottom));
  background: #263238;
  border-top: 1px solid #ccc;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom); /* adiciona espaço visível para não ficar cortado */
  box-sizing: border-box;
}


nav a,
nav#menuInferior a {
  text-decoration: none;
  color: #FFFFFF;
  text-align: center;
  font-size: 13px;
  transition: background-color 0.3s, color 0.3s;
  padding: 5px 10px;
  border-radius: 8px;
}

nav a:hover,
nav#menuInferior a:hover {
  background-color: #37474F; /* cor sutil no hover */
  color: #FFC107;            /* amarelo suave para destaque */
}

nav a.ativo,
nav#menuInferior a.ativo {
  color: #007bff;
  font-weight: bold;
}

nav a.sair,
nav#menuInferior a.sair {
  color: #d00;
  font-size: 13px;
}

nav a.sair:hover,
nav#menuInferior a.sair:hover {
  background-color: #d00;
  color: #fff;
}


/* Divisor */
hr.divisor {
  margin: 20px 0;
  border: none;
  border-top: 1px solid #ccc;
}

/* Suporte - resposta */
.resposta {
  margin-top: 20px;
  padding: 12px;
  background: #e6f5ea;
  border-left: 5px solid #4CAF50;
  border-radius: 8px;
  font-size: 15px;
}

/* Cartões de pedido */
.pedido {
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 10px;
  background: #fafafa;
  margin-bottom: 15px;
}

.pedido p {
  margin-bottom: 8px;
  font-size: 15px;
}

.login-container {
  
  max-width: 400px;
  margin: 100px auto;
  padding: 30px;
  background: rgba(209, 207, 207, 0.817);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  
}

.login-container input {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.login-container button {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.login-container .primary {
  background-color: #007bff;
  color: white;
}

.login-container .secondary {
  background-color: #6c757d;
  color: white;
}

.login-container p#status {
  margin-top: 15px;
  color: red;
  font-size: 14px;
}

.plano {
  border: 2px solid #ccc;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  cursor: pointer;
  background-color: #fff;
  transition: all 0.3s ease;
}

.plano:hover {
  border-color: #007bff;
  background-color: #f1f9ff;
}

.plano.selecionado {
  border-color: #007bff;
  background-color: #e6f0ff;
}

.plano h3 {
  margin-top: 0;
  color: #007bff;
}

.plano p {
  margin: 8px 0;
}

#barraPlano {
  display: none;
  background: #ffecb3;
  padding: 10px 16px;
  font-size: 14px;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

@media screen and (max-width: 480px) {
  #barraPlano {
    font-size: 13px;
    padding: 10px 12px;
  }
}


#btnAssinar {
  margin-top: 20px;
  background-color: #007bff;
  font-weight: bold;
}

.info {
  text-align: center;
  margin-top: 10px;
  color: #28a745;
  font-size: 15px;
}

#modalAvaliar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none; /* Inicia oculto */
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

/* Quando adicionar a classe "aberto", ele será exibido centralizado */
#modalAvaliar.aberto {
  display: flex;
}

#modalConteudo {
  background: white;
  padding: 20px;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#modalConteudo h3 {
  margin-top: 0;
  font-size: 18px;
  margin-bottom: 10px;
  text-align: center;
}

#modalConteudo label {
  margin-top: 10px;
  font-weight: bold;
}

#modalConteudo input,
#modalConteudo textarea,
#modalConteudo select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  margin-bottom: 10px;
}

#modalConteudo button {
  width: 48%;
  padding: 10px;
  margin-top: 10px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

#modalConteudo button[type="submit"] {
  background-color: #28a745;
  color: white;
}

#modalConteudo button[type="button"] {
  background-color: #ccc;
  color: black;
}


#listaPedidos {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

#listaPedidos li {
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 12px;
  background: #fff;
  margin-bottom: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

#listaPedidos .titulo {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 5px;
  color: #333;
}

#listaPedidos .data {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
}

#listaPedidos button.realizado {
  margin-top: 12px;
  background-color: #28a745;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

#listaPedidos button.realizado:hover {
  background-color: #218838;
}

.ver-perfil {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 6px;
  display: inline-block;
}

.ver-perfil:hover {
  background-color: #0056b3;
}

/* Página de visualização do prestador */


.foto-perfil {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 15px;
  border: 3px solid #ffcc00;
}

#nomePrestador {
  text-align: center;
  font-size: 20px;
  margin-bottom: 20px;
}

#tiposServico,
#cidadesAtendidas {
  list-style: disc;
  padding-left: 20px;
  margin-top: 5px;
  margin-bottom: 15px;
  text-align: left;
}

#tiposServico li,
#cidadesAtendidas li {
  margin-bottom: 4px;
  font-size: 15px;
  color: #333;
}

#servicosRealizados {
  margin-top: 5px;
  font-size: 15px;
  color: #333;
}

.avaliacoes {
  margin-top: 20px;
}

.media-avaliacoes {
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.avaliacao-item {
  background-color: #f0f0f0;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
}

.avaliacao-item .nota {
  font-weight: bold;
  margin-bottom: 5px;
}

.avaliacao-item .comentario {
  font-style: italic;
  color: #444;
}

.container button {
  margin-top: 25px;
}

/* Botão de atualizar histórico */
button.atualizar {
  background-color: #007bff;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  margin-bottom: 15px;
  cursor: pointer;
  width: 100%;
}

button.atualizar:hover {
  background-color: #0056b3;
}

/* Lista do histórico */
#listaHistorico {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

#listaHistorico li {
  background-color: #fff;
  padding: 16px;
  margin-bottom: 15px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border: 1px solid #ddd;
}

#listaHistorico .titulo {
  font-weight: bold;
  font-size: 16px;
  color: #333;
  margin-bottom: 8px;
}

#listaHistorico .dataFinalizado {
  font-size: 14px;
  color: #666;
  margin-top: 10px;
}

#listaHistorico .prestadores {
  margin-top: 10px;
  font-size: 14px;
  color: #444;
}

#listaHistorico .ver-perfil {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  margin-left: 8px;
}

#listaHistorico .ver-perfil:hover {
  background-color: #0056b3;
}

/* BOTÃO SAIR ADMIN */
#suporteLogoutBtn {
  position: absolute;
  top: 16px;
  right: 20px;
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  z-index: 1001;
}

#suporteLogoutBtn:hover {
  background-color: #c82333;
}

/* BOTÕES DE FILTRO */
.container button {
  background-color: #007bff;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  margin-right: 8px;
}

/* BOTÕES exclusivos para suporte e admin */
#suporteForm button,
.mensagem-chat button,
.container button.filtro {
  width: auto;
  max-width: 100%;
}


.container button:hover {
  background-color: #0056b3;
}

/* CONTADOR */
.contador {
  font-weight: bold;
  margin-bottom: 10px;
}

/* MENSAGEM - ESTILO CHAT */
.mensagem-chat {
  background: #f9f9f9;
  border-radius: 16px;
  padding: 15px;
  margin-bottom: 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.mensagem-chat .cabecalho {
  font-weight: bold;
  margin-bottom: 8px;
}

.mensagem-chat .conteudo {
  margin-top: 10px;
  margin-bottom: 10px;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  border-left: 4px solid #007bff;
}

.mensagem-chat .resposta-admin {
  background: #e6f5ea;
  border-left: 4px solid #28a745;
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
}

/* TEXTAREA E BOTÃO DE RESPOSTA */
.mensagem-chat textarea {
  width: 100%;
  margin-top: 10px;
  border-radius: 8px;
  padding: 10px;
  border: 1px solid #ccc;
  font-size: 14px;
  resize: vertical;
  min-height: 80px;
}

.mensagem-chat button {
  margin-top: 10px;
  background-color: #28a745;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.mensagem-chat button:hover {
  background-color: #218838;
}

/* SUPORTE - CHAT DO USUÁRIO */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 16px;
}

.msg {
  max-width: 80%;
  padding: 12px 16px;
  margin-bottom: 10px;
  border-radius: 16px;
  line-height: 1.4;
  word-break: break-word;
}

.msg.user {
  background: #d1e7dd;
  align-self: flex-end;
  border-bottom-right-radius: 0;
}

.msg.suporte {
  background: #fff;
  align-self: flex-start;
  border: 1px solid #ccc;
  border-bottom-left-radius: 0;
}

/* ÁREA DE INPUT DO USUÁRIO */
.input-area {
  position: fixed;
  bottom: 60px;
  left: 0;
  right: 0;
  display: flex;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border-top: 1px solid #ccc;
  z-index: 999;
}

.input-area textarea {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  resize: none;
  font-size: 14px;
}

.input-area button {
  padding: 10px 14px;
  background: #ffcc00;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
}

#iconeNotificacaoSuporte {
  position: absolute; /* dentro do header fixo */
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  font-size: 20px;
  color: #fa0202;
  cursor: pointer;
  z-index: 1100;
  display: none;
}

#iconeNotificacaoSuporte {
  position: absolute;
  top: calc(50% + env(safe-area-inset-top) / 2);
  right: 16px;
  transform: translateY(-50%);
  font-size: 22px;
  cursor: pointer;
  z-index: 1001;
}




/* RESPONSIVO */
@media (max-width: 600px) {
  .container {
    margin: 10px;
    padding: 16px;
  }

  #adminLogoutBtn {
    font-size: 12px;
    padding: 6px 10px;
  }

  .input-area textarea {
    font-size: 13px;
  }

  .input-area button {
    font-size: 13px;
  }

  .mensagem-chat .cabecalho {
    font-size: 14px;
  }
}

header.barra-fixa {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffcc00;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  z-index: 1000;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top);
  height: calc(60px + env(safe-area-inset-top));
}


/* Logo dentro do header */
.logo-header {
  height: 36px;
  object-fit: contain;
}

/* Botão 3 riscos ☰ — centralizado verticalmente à esquerda da barra */
.menu-hamburguer {
  position: absolute;
  top: calc(30px + env(safe-area-inset-top)); /* 30px é metade da altura base do header (60px) */
  left: 16px;
  transform: translateY(-50%);
  font-size: 28px;
  cursor: pointer;
  color: #333;
  z-index: 1001;
}


/* Overlay escuro ao fundo */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 1000;
}

.menu-lateral {
  position: fixed;
  top: calc(60px + env(safe-area-inset-top));
  left: -260px;
  width: 260px;
  height: calc(100vh - 60px - env(safe-area-inset-top));
  background: linear-gradient(rgba(255, 255, 255, 0.121), rgba(255, 255, 255, 0.8)),
              url('../img/backgroundmenu.png') no-repeat center center;
  color: white;
  background-size: cover;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
  padding: 20px;
  z-index: 1002;
  transition: left 0.3s ease;
}




/* Cabeçalho do menu */
.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.menu-fechar {
  cursor: pointer;
  font-size: 22px;
}

/* Linha divisória */
.menu-divisor {
  border: none;
  border-top: 1px solid #ccc;
  margin: 10px 0 20px;
}

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

.menu-lista li {
  margin: 0;
  padding: 0;
}

.menu-lista li a {
  display: block;
  padding: 6px 0;
  font-size: 16px;
  line-height: 1.3;
  color: #000000;
  text-decoration: none;
  transition: color 0.2s ease;
}

.menu-lista li a:hover {
  color: #ff9800;
}


/* Ativo: quando o menu estiver aberto */
.menu-aberto {
  left: 0 !important;
}

.menu-overlay-ativo {
  display: block !important;
}

/*botoes do menu*/
.menu-item-estilizado {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ccc;
  padding: 10px 14px;
  border-radius: 30px;
  margin: 10px 0;
  background-color: #fff;
  text-decoration: none;
  color: #333;
  font-size: 16px;
  transition: background-color 0.3s, border-color 0.3s;
}

.menu-item-estilizado:hover {
  background-color: #f0f0f0;
  border-color: #999;
}


/* Saudação no topo do menu (duas linhas) */
.menu-usuario {
  display: none;                 /* aparece via JS quando houver usuário */
  color: #fff;
  text-align: left;
  font-size: 14px;
  line-height: 1.3;
  padding: 8px 10px;
  margin: 0 10px 4px;            /* sem margem superior, só 4px embaixo */
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px;
}
.menu-usuario .linha1 {
  font-weight: 600;
  opacity: 0.95;
  margin-bottom: 2px;
}
.menu-usuario .linha2 {
  font-weight: 700;
  font-size: 15px;               /* nome ligeiramente maior */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Aproxima o título "Menu" da saudação */
.menu-lateral .menu-header {
  margin-top: 0px;
}

/* Encosta um pouco mais o conteúdo no topo do drawer */
.menu-lateral {
  padding-top: 12px !important;  /* antes estava 20px */
}



/* ===== Accordion de categorias (serviços) — sem contador, amarelo ===== */
#servicosContainer .categoria{
  margin-top:10px;
  border-radius:8px;
  overflow:hidden;
}

/* cabeçalho clicável amarelo */
#servicosContainer .categoria > summary{
  list-style:none; cursor:pointer;
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 12px;
  font-weight:700; color:#333;
  background:#ffeb3b;                 /* amarelo principal */
  border:1px solid #f3d132;           /* contorno amarelo */
  border-radius:8px;                   /* arredonda o summary todo */
}
#servicosContainer .categoria > summary::-webkit-details-marker{ display:none; }

/* seta (caret) */
#servicosContainer .caret{
  width:16px; height:16px; transition:transform .2s ease;
  fill:#555;
}
#servicosContainer .categoria[open] .caret{ transform:rotate(90deg); }

/* lista interna */
#servicosContainer .categoria-lista{
  background:#fff;                     /* conteúdo branco p/ legibilidade */
  border:1px solid #f3d132;            /* mantém contorno amarelo */
  border-top:none; border-radius:0 0 8px 8px;
  padding:4px 0;
}
#servicosContainer .categoria-lista label{
  padding:8px 12px; border-bottom:1px solid #f2f2f2;
}
