@font-face {
  font-family: 'DIN Next Rounded';
  src: url('./fonts/din-next-rounded-lt-pro-medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;    
  background-color: #121318; /* Cor de fundo */
  color: white;
  overflow: hidden; /* Evita o scroll horizontal */
  font-family: 'DIN Next Rounded', Arial, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;        /* 100% da viewport */
}

/* Ajuste para a barra superior */
body.ios-pwa .top-info-bar {
  padding-top: calc(env(safe-area-inset-top, 10px) + 5px);
}

/* Ajuste para a barra inferior */
body.ios-pwa .bottom-nav {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.container {
  color: #FAF0E6;
  background-color: #121318;
  -webkit-backdrop-filter: blur(20px);
  border: #ffffff03 solid 2px;
  backdrop-filter: blur(20px);
  transition: all ease .2s;
  z-index: 1;
  width: 100vw;
  overflow-x: hidden; /* Evita o scroll horizontal */
}

.hidden {
  display: none;
}

.loja-grid, .inventario-grid {
    display: flex;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-items: center;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
}

.item-card {
  background: #363535;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 2px 5px rgb(0 0 0 / 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 150px;
  aspect-ratio: 160 / 255;
  box-sizing: border-box;
}

.LojaSection {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    padding: 50px 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.app-loja {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    align-content: center;
    margin: 0 5%;
    flex-wrap: nowrap;
    background-color: #1f1f1f;
    border: solid 1px #343434;
    border-radius: 10px;
}

@media (max-width: 1040px) {
  .app-loja {
      flex-direction: row;
      align-items: center;
      justify-content: center;
      align-content: center;
      margin: 0;
      background-color: #00000006;
      border: none;
      flex-wrap: wrap;
  }
  .LojaSection {
      display: flex;
      flex-direction: column;
      align-items: center;
      background-color: #1f1f1f;
      width: 90%;
      padding: 0px 1rem;
      border: solid 1px #343434;
      border-radius: 10px;
      margin-bottom: 1rem;
      padding-bottom: 3rem;
  }
}

.item-card:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px #0003;
}

.item-imagem {
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
  margin-bottom: 8px;
}

.item-nome {
  display: block;
  text-align: center;
  font-size: 1.1em;
  font-weight: bold;
  color: #fff;
  margin: 8px 0 4px 0;
  white-space: normal;
  word-break: break-word;
}

.item-preco {
  color: #ceec20;
  font-weight: 700;
  margin-bottom: 8px;
}

.btn-comprar {
  background-color: #00ff00;
  border: none;
  color: rgb(0, 0, 0);
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-comprar:hover {
  background-color: #c2bdbd;
}

/* Títulos das categorias da loja */
.loja-titulo {
  font-size: 1.5em;
  font-weight: bold;
  text-align: center;
  margin: 30px 0 10px 0;
  letter-spacing: 1px;
  padding-left: 0;
}

/* Cosméticos */
.loja-titulo-cosmeticos {
  color: #b388ff;
  text-shadow: 0 2px 8px #6c3bb3a0;
}

/* Armas */
.loja-titulo-armas {
  color: #4fc3f7;
  text-shadow: 0 2px 8px #1e88e5a0;
}

.loja-titulo-protecao {
  color: #ffd700;
  text-shadow: 0 2px 8px #bfa000a0;
}

/* Bônus */
.loja-titulo-bonus {
  color: #13e90c;
  text-shadow: 0 2px 8px #328c08a0;
}


.app {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#app-body {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 1rem;
  /* margin: 10px; */
}

#tarefas-periodico,
#tarefas-nao-periodico,
#tarefas-personalizado {
    width: 90%;
}

div#calendario-home {
    width: 100%;
}

.card {
  padding: 1rem;
  color: white;
  text-align: left;
  border-radius: 10px;
  font-size: 16px;
  font-weight: normal;
  margin: 0.5rem 0;
  background-color: #1f1f1f;
  border: 1px solid #343434;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: 
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease;
  margin: 10px;
}

#tarefas-proximas {
    flex: 1 1;
    width: 100%;
    max-height: 466px;
    min-height: 90%;
    overflow: auto;
    border: none;
    box-shadow: none;
    padding: 0px;
    margin-bottom: 0;
}

.tasks-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  box-sizing: border-box;
  padding: 0;
}

.tasks-container .task-rect {
  width: 80%;
  max-width: 420px;
  box-sizing: border-box;
  word-break: break-word;
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 600px) {
  .tasks-container .task-rect {
    width: 78vw;
    max-width: 85vw;
    min-width: 0;
  }
}

#lista-amigos {
    width: 100%;
    display: flex
;
    flex-direction: column;
    align-content: center;
    align-items: center;
}

.purple-card {
  background-color: #381e47;
  display: none;
}

.blue-card {
  background-color: #381e47;
  display: none;
}

.main-content {
  flex: 1 1 auto;
  min-height: 0;        /* <— ESSENCIAL para o scroll interno funcionar */
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
  height: 100%;
}


.main-content.show {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 20px 0;
}

.bottom-nav {
  flex: 0 0 auto;
  height: 60px; /* ou qualquer altura desejada */
  background: #121318;
  display: flex;
  justify-content: space-around;
  align-items: center;
  user-select: none;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE/Edge */
}

.bottom-nav-separator.active {
  background-color: #3835356c;
  padding: 1px;
  border: 3px solid #6b6b6b;
  border-radius: 15px;
  transition: all 2s ease;
}

.bottom-nav-separator {
  background-color: #30303017;
  padding: 3px;
  border: 3px solid #31313121;
  border-radius: 15px;
  display: flex;
  transition: all 1s ease, width 0.8s ease, height 0.8s ease;
}

#btn-tasks {
  margin: 0;
  transition: opacity 0.5s ease, transform 0.5s ease, width 0.3s ease;
}

#btn-tasks-nao-periodicas {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease, width 0.3s ease;
}

#btn-tasks-personalizadas {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease, width 0.3s ease;
}

.nav-separator-active #btn-tasks-nao-periodicas,
.nav-separator-active #btn-tasks-personalizadas {
  display: block;
  opacity: 1;
}

.top-info-bar {
  font-size: clamp(13px, 2vw, 18px);
  flex: 0 0 auto;
  height: 50px;
  background: #121318;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-around;
  /* flex-wrap: wrap;  REMOVA esta linha */
  min-width: 0;
  padding: 0 10px;
  overflow: hidden;
  gap: 8px;
}

.top-info-bar span,
.top-info-bar .next-event,
.top-info-bar .icons-info {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 120px; /* ajuste conforme necessário */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}


.next-event{
  color: #ffffff;
  text-align: center;
  margin: 0 5px;
  padding: 5px;
  border-radius: 3cap;
}

.top-info-bar span {
  margin: 0 5px;
  white-space: nowrap;
}

.ajuda-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 32px;
  border-radius: 0px 30px 30px 0px;
  background: #1f1f1f;
  color: #fff;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  border: 2px solid #343434;
  border-left: none;
  transition: border-color 0.2s, color 0.8s, transform 0.15s, height 0.15s, width 0.15s, border-radius 0.25s, right 0.15s;
  position: fixed;
  top: 74px;
  left: 0;
  margin: 0;
  z-index: 1000;
}

.ajuda-btn::before {
  content: "?";
  font-family: inherit;
  font-size: 1.2em;
  font-weight: bold;
  color: #fff;
  display: block;
  line-height: 1;
}

.ajuda-btn:hover, .ajuda-btn:focus {
  background: #1f1f1f;
  color: #232232;
  left: 10px;
  border: 1.5px solid #4fc3f7;
  height: 35px;
  width: 35px;
  border-radius: 30px; /* Apenas lado direito arredondado */
}

.ios #ajuda-btn {
  top: calc(env(safe-area-inset-top, 0px) + 72px) !important; /* fallback para iOS antigo */
}


/* ESTILOS NAO USADOS */

/* Estilos para caixas de entrada de texto */
input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.222);
  background-color: #22222280;
  color: #ccc;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box; /* Garante que o padding não aumente a largura total */
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); /* Sombra ao focar */
}


/* Estilos para caixas de seleção (checkbox) */
input[type="checkbox"] {
  appearance: none; /* Remove o estilo padrão do sistema operacional */
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.222);
  background-color: #27243e80;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  top: 2.5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); /* Sombra ao focar */
}

input[type="checkbox"]:checked {
  background-color: #4CAF50; /* Cor de fundo quando marcado */
  border: 1px solid #4CAF50;
}

input[type="checkbox"]:checked::after {
  content: '✔'; /* Marca de verificação */
  color: white;
  font-size: 16px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

input[type="checkbox"]:focus {
  border: 1px solid rgb(255, 255, 255);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5); /* Sombra ao focar */
  outline: none; /* Remove a borda de foco padrão */
}

/* Estilo quando o input está em foco */
input:focus {
  border: 1px solid rgb(255, 255, 255);
  box-shadow: 2px 2px 5px rgba(255, 255, 255, 0.3);
  outline: none; /* Remove a borda de foco padrão */
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5); /* Sombra ao focar */
}

/* Estilo para o dropdown do select */
select::-ms-expand {
  display: none; /* Esconde o ícone de dropdown no Internet Explorer */
  background-color: #3e2424;
}

select {
  /* Estilos gerais do select */
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  color: #ccc;
  text-align-last: center;
  border-radius: 4px;
  font-size: 16px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); /* Sombra ao focar */
  border: 1px solid rgba(255, 255, 255, 0.222);
  background-color: #2b2c33;
  appearance: none; /* Remove o estilo padrão do sistema operacional */
  cursor: pointer; /* Altera o cursor ao passar o mouse */
  box-sizing: border-box; /* Garante que o padding não aumente a largura total */
}

/* Estilo para a lista suspensa das opções */
select option {
  border: 1px solid rgba(255, 255, 255, 0.222);
  background-color: #28243e80;
  color: #ccc;
}

/* Estilo quando o mouse passa por cima de uma opção */
select option:hover {
  background-color: #f0f0f0; /* Cor de fundo ao passar o mouse */
  color: #000; /* Cor do texto ao passar o mouse */
}

/* Estilo quando o select está em foco */
select:focus {
  border: 1px solid rgba(250, 243, 243, 0.923);
  background-color: #27243e;
  outline: none; /* Remove a borda de foco padrão */
  box-shadow: 0 0 5px rgba(240, 237, 237, 0.5); /* Sombra ao focar */
}

/* Estilo para o dropdown aberto */
select:focus option:checked {
  background-color: #07101a94; /* Cor de fundo das opções selecionadas ao focar */
  color: #fff; /* Cor do texto das opções selecionadas ao focar */
}

.nav-button.disable-hover:hover {
  transform: none !important;
  border-color: transparent !important;
  opacity: 0.6 !important;
}

/* style.css */
.tab-content { display: none; padding: 1rem; }
.tab-content.active { 
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
  }

h1,h2,h3{
  color: #ccc;
  align-items: center;
  text-align: center;
  justify-content: center;
}

#tab-settings > div {display: flex;flex-direction: column;align-items: center;background-color: #1f1f1f;color: white;padding: 10px 1rem;border-radius: 10px;border: 1px solid #343434;margin: 10px 0;box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);justify-content: center;align-content: center;flex-wrap: wrap;width: 90%;}

.nav-button {
  background: none; border: none; font-size: 1.5rem;
  opacity: .6; transition: opacity .2s;
}

.nav-button.active{
  opacity: 1;
  margin: 5px !important;
}

/* estilo comum */
.nav-button {
  background: none;
  border: 3px solid transparent;
  color: white;
  font-size: 14px;
  padding: 1px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  user-select: none;
  margin: 5px;
}

/* hover e active iguais */

.nav-button.active {
  transform: scale(1.2);
  border-color: #595959;
}


 
@media (min-width: 1050px) {
  .nav-button:hover {
    transform: scale(1.2);
    border-color: #ccc;
  }

}


.content, .subcontent {
  border: 1px solid #bebdca6b;
  text-align: center;
  padding: 20px;
  display: none;
}

.content.active, .subcontent.active {
  display: block;
}

.status-info {
  display: block;
  justify-content: space-between;
}

.status-column {
  flex: 1;
  text-align: center;
  padding: 10px;
}

.status-item {
  margin: 10px;
}

.status-info2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.status-column2 {
  flex: 1;
  text-align: center;
  padding: 10px;
}

button {
  margin: 10px 10px;
  padding: 10px 20px;
  color: #ccc;
  background-color: #9690b300;
  border: 1px solid #ebe0e0;
  border-radius: 0.5rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.4s ease, transform 0.4s ease;
  user-select: none;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE/Edge */
}

/* Pseudo-elemento para o efeito ripple */
button::after {
  content: "";
  position: absolute;
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.166) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
}

@media (min-width: 1050px) {
  button:hover {
    background-color: #9390b327;
    transform: scale(1.05);
    
    user-select: none;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE/Edge */
  }
  
  button:hover::after {
    width: 300%;
    height: 300%;
    opacity: 1;
  }

  /* Efeito de clique: encolher um pouco */
  button:active {
    transform: scale(0.95);
  }
}



.dialog-container {
  border: 1px solid #999999;
  border-radius: 0.5rem;
  color: #c9c9da;
  box-shadow: 2px 2px 5px rgba(255, 255, 255, 0.3);
  padding: 20px;
  background-color: rgba(37, 50, 64, 0.167); /* Opacidade ajustada para 80% */
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transition: all ease 0.5s;
  width: 80vw; /* Largura igual a 80% da largura da tela */
  max-width: 600px; /* Largura máxima para manter o tamanho controlado */
  height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed; /* Fixa o container na tela */
  top: 65%; /* Ajusta a distância do topo para 70% da altura da tela */
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000; /* Garante que o diálogo fique acima de outros elementos */
  overflow: hidden; /* Garante que a rolagem é controlada pela mensagem e não pelo container */
}

.dialog-message {
  margin-bottom: 20px;
  text-align: center;
  overflow-y: auto; /* Permite rolagem vertical se o texto ultrapassar o limite */
  max-height: 110px; /* Define uma altura máxima para a área de texto */
  width: 100%; /* Garante que o texto use toda a largura disponível */
  padding: 5px; /* Adiciona algum preenchimento interno */
  box-sizing: border-box; /* Inclui o padding e border no cálculo da largura e altura */
}

.dialog-buttons button {
  margin: 5px 5px;
  color: #24263e;
  background-color: #9095b3;
  border: 1px solid #e1e0eb;
  border-radius: 0.5rem;
  padding: 10px 20px;
  user-select: none;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE/Edge */
}

.dialog-buttons button:hover {
  background-color: #9390b3;
}

#blur-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(10px); /* Efeito de blur */
  z-index: 999; /* Z-index menor que o diálogo para que fique atrás dele */
  display: none; /* Inicialmente oculto */
}

/* Estilos para áreas de texto */
textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.222);
  background-color: #26243e80;
  color: #ccc;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box; /* Garante que o padding não aumente a largura total */
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); /* Sombra ao focar */
  resize: vertical; /* Permite redimensionar verticalmente */
  height: auto; /* Altura inicial */
  max-height: 550px; /* Altura máxima */
  min-height: 42.5px;
  overflow-y: auto; /* Adiciona barra de rolagem vertical quando necessário */
}

#descricaoTarefa, textarea#descricaoTarefa {
  width: 100%;
  min-height: 50px;
  max-width: 100%;
  box-sizing: border-box;
  resize: vertical;
  padding: 8px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #333;
  background: #2b2c33;
  color: #faf0e6;
  margin-bottom: 10px;
}

/* Estilo quando a área de texto está em foco */
textarea:focus {
  border: 1px solid rgb(255, 255, 255);
  box-shadow: 2px 2px 5px rgba(255, 255, 255, 0.3);
  outline: none; /* Remove a borda de foco padrão */
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5); /* Sombra ao focar */
}

/* Estilos para a aba de informações essenciais */
#essential-info {
  left: 6%; /* Centraliza horizontalmente */
  transform: translate(-50%, -50%); /* Ajusta para centralizar corretamente */
  position: fixed;
  top: 50%; /* Posição inicial no meio da tela */
  padding: 20px;
  overflow-y: auto;
  z-index: 998;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.222);
  color: #c9c9da;
  box-shadow: 2px 2px 5px rgba(255, 255, 255, 0.3);
  background-color: #32313b;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transition: top 0.5s ease; /* Adiciona uma transição suave para a propriedade 'top' */
  max-width: 200px;
  width: 50%;
  margin: 20px;
} 

/* Estilos para a aba de informações essenciais */
#essential-info2 {
  left: 71.5%; /* Centraliza horizontalmente */
  text-align: center;
  transform: translate(-50%, -50%); /* Ajusta para centralizar corretamente */
  position: fixed;
  top: 50%; /* Posição inicial no meio da tela */
  padding: 20px;
  overflow-y: auto;
  z-index: 998;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.222);
  color: #c9c9da;
  box-shadow: 2px 2px 5px rgba(255, 255, 255, 0.3);
  background-color: #32313b;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transition: top 0.5s ease; /* Adiciona uma transição suave para a propriedade 'top' */
  max-width: 350px;
  width: 50%;
  margin: 20px;
}

#status-img {
  height: 100%; /* Ajusta a altura da imagem para 100% do contêiner pai */
  width: 100%; /* Mantém a proporção da largura */
}

#essential-info.scrolled {
  top: 50px; /* Ajuste a posição vertical conforme necessário */
}

#essential-info2.scrolled {
  top: 50px; /* Ajuste a posição vertical conforme necessário */
}

#essential-info.hidden {
  display: none;
}

#essential-info2.hidden {
  display: none;
}

#pull-up-indicator {
  position: fixed;
  top: 50%;              /* centraliza verticalmente */
  left: 0;               /* encostado na borda esquerda */
  transform: translateY(-50%) scale(0.8); /* ajuste inicial */
  width: 30px;
  height: 30px;
  border: #24243e solid 2px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.4);
  z-index: 9999;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  transform-origin: left center; /* escala a partir da borda esquerda */
}

/* durante o drag (aplique dinamicamente inline pelo JS) */
/* exemplo de estilo final quando ativo: */
#pull-up-indicator.active {
  opacity: 1;
  transform: translateY(-50%) translateX(20px) scale(1.1);
}


#black-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.518); /* preto semi-transparente */
  backdrop-filter: blur(8px); /* aplica o desfoque */
  -webkit-backdrop-filter: blur(8px); /* suporte para Safari */
  z-index: 998;
  display: none;
}


.item-icon {
  width: 50px;
  height: 50px;
  object-fit: cover; /* Garante que a imagem preencha o espaço sem distorcer */
}
 
/* Estilos para o toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

/* Esconde o checkbox padrão */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Estilo do slider inspirado na checkbox */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #27243e80; /* Mesmo fundo da checkbox */
  border: 1px solid rgba(255, 255, 255, 0.222); /* Mesma borda */
  border-radius: 4px; /* Mesma borda arredondada */
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); /* Sombra semelhante */
  transition: 0.4s;
}

/* Círculo interno (knob) */
.slider:before {
  content: "";
  position: absolute;
  height: 20px; /* Tamanho similar ao da checkbox */
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

/* Quando marcado, utiliza a cor da checkbox marcada */
.switch input:checked + .slider {
  background-color: #4CAF50;
  border: 1px solid #4CAF50;
}

/* Move o knob para a direita quando marcado */
.switch input:checked + .slider:before {
  transform: translateX(26px); /* Ajuste: 50px (largura total) - 20px (knob) - 4px (margens) */
}

/* Efeito de foco, utilizando a mesma lógica da checkbox */
.switch input:focus + .slider {
  border: 1px solid rgb(255, 255, 255);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  outline: none;
}

/* Estilo para a label do toggle */
.toggle-label {
  font-family: sans-serif;
  font-size: 14px;
  color: #ffffff;
}

.slider-container .inventory-item {
  flex: 0 0 auto;
  width: 80px;
  text-align: center;
  cursor: pointer;
  border: 1px solid #dbdbeb7f;
  border-radius: 4px;
  padding: 5px;
  background-color: #31356340;
}

.slider-container .inventory-item img {
  max-width: 100%;
  height: auto;
  margin-bottom: 5px;
}

.slider-container .inventory-item p {
  font-size: 12px;
  margin: 0;
}

.slider-container .inventory-item.selected {
  border: 2px solid #4CAF50;
  background-color: #e6ffe6;
}


/* Custom scrollbar styles */
.slider-container::-webkit-scrollbar {
  height: 12px;
}

.slider-container::-webkit-scrollbar-track {
  background: #aaaaba;
  border-radius: 4px;
}

.slider-container::-webkit-scrollbar-thumb {
  background: #7e7b96;
  border-radius: 4px;
}

.slider-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

#popup-alert {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(37, 50, 64, 0.75); /* Ajuste da opacidade */
  border: 1px solid #999999;
  border-radius: 0.5rem;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transition: top 0.5s ease, opacity 0.5s ease, box-shadow 0.3s ease;
  color: #c9c9da;
  box-shadow: 2px 2px 5px rgba(255, 255, 255, 0.5);
  padding: 10px;
  padding-left: 20px;
  padding-right: 20px;
  opacity: 0;
  z-index: 1100;
}

/* Classe para mostrar o popup */
#popup-alert.show {
  top: 10px;  /* Desce até 10px do topo */
  opacity: 1;
  box-shadow: 2px 2px 15px rgba(255, 255, 255, 0.8); /* Suaviza o sombreamento */
}

/* Classe para esconder o popup (fade out) */
#popup-alert.hide {
  opacity: 0;
}

#login-button {
  background: #4285f4;
  color: white;
  padding: 10px 15px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#login-container {
  display: flex;
  position: fixed;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100vw;
  background-color: #121318; /* Cor de fundo */
  color: #FAF0E6; /* Cor do texto */
  z-index: 100000;
  user-select: none;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE/Edge */
}

.blue-card p{
  color: #FAF0E6; /* Cor do texto */
  text-align: center;
  border: #ccc solid 2px;
  border-radius: 3rem;
  border-radius: 1rem;
  padding: 10px;
  user-select: none;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE/Edge */
}

.purple-card p{
  color: #FAF0E6; /* Cor do texto */
  text-align: center;
  border: #ccc solid 2px;
  border-radius: 1rem;
  padding: 10px;
  user-select: none;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE/Edge */
}

/* Cores padrão */
.purple-card {background-color: #525252;display: none;}
.blue-card {background-color: #414141;display: none;}

/* Aba Home */
.tab-home-active .purple-card { background-color: #381e47; }
.tab-home-active .blue-card { background-color: #2d3559; }

/* Aba Periódicas */
.tab-tasks-active .purple-card {
    background-color: #2a3f6b;
    border-color: #5390d9;
    color: #cfe3ff;
}
.tab-tasks-active .blue-card {
    background-color: #2a3f6b;
    border-color: #5390d9;
    color: #cfe3ff;
}

/* Aba Não Periódicas */
.tab-tasks-nao-periodicas-active .purple-card {
    background-color: #6b3f2a;
    border-color: #d99453;
    color: #ffe6c9;
}
.tab-tasks-nao-periodicas-active .blue-card {
    background-color: #6b3f2a;
    border-color: #d99453;
    color: #ffe6c9;
}

/* Aba Personalizadas */
.tab-tasks-personalizadas-active .purple-card {
    background-color: #3f6b2a;
    border-color: #94d953;
    color: #e6ffcf;
}
.tab-tasks-personalizadas-active .blue-card {
    background-color: #3f6b2a;
    border-color: #94d953;
    color: #e6ffcf;
}

.modal {
  overflow-y: auto;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%; /* 90% da largura da tela */
  height: 100%;
  backdrop-filter: blur(5px);
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-content {
  margin: 35px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  background-color: #1e1f25;
  color: white;
  border-radius: 12px;
  width: 100%;
  max-width: 98vw;
  max-height: none; /* Remova a limitação */
  height: auto;     /* Permite crescer conforme o conteúdo */
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  position: relative;
  overflow-y: auto;
  overflow-x: auto;
  max-height: 85%;
  box-sizing: border-box;
}


.modal-content input {
  margin-bottom: 10px;
  width: 100%;
  margin: 10px 0;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #2b2c33;
  color: white;
}

.modal-content button {
  width: 100%;
  display: flex;
  padding: 10px;
  color: #ccc;
  text-align: last;
  border-radius: 4px;
  font-size: 16px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.222);
  background-color: #252739;
  appearance: none;
  cursor: pointer;
  box-sizing: border-box;
  margin: 0;
  margin-bottom: 10px;
  padding: 20px;
  justify-content: center;
  align-items: center;
}

.close-button {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
}

.task-rect {
  position: relative;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1rem;
  margin: 0.5rem 0;
  cursor: pointer;
  background-color: #222; /* Fundo padrão escuro */
  transition: 
    background-color .3s ease,
    box-shadow .3s ease,
    transform .2s ease;
}

/* Fundo e borda para cada tipo, cores vivas e distintas */
.task-rect[data-tipo="periodico"] {
  background-color: #2a3f6b; /* Azul escuro */
  border-color: #5390d9;     /* Azul claro */
  color: #cfe3ff;            /* Texto claro */
}

.task-rect[data-tipo="nao-periodico"] {
  background-color: #6b3f2a; /* Marrom escuro */
  border-color: #d99453;     /* Marrom claro */
  color: #ffe6c9;            /* Texto claro */
}

.task-rect[data-tipo="personalizado"] {
  background-color: #3f6b2a; /* Verde escuro */
  border-color: #94d953;     /* Verde claro */
  color: #e6ffcf;            /* Texto claro */
}

/* Hover com fundo claro e texto escuro */
.task-rect:hover {
  background-color: #f0f0f0;
  color: #222;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

/* Paleta suave por tipo */
.task-rect[data-tipo="periodico"] .tipo-badge {
  background-color: #4fc3f7;
  color: #0d47a1;
}
.task-rect[data-tipo="nao-periodico"] .tipo-badge {
  background-color: #ffa726;
  color: #4e2600;
}
.task-rect[data-tipo="personalizado"] .tipo-badge {
  background-color: #66bb6a;
  color: #1b5e20;
}

.task-rect:hover { /* Cor quando o mouse passa por cima */
  background-color: #fefefe;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

/* Badge que aparece no hover */
.task-rect .tipo-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: .2rem .6rem;
  border-radius: 0.5rem;
  font-size: .75rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-10%);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

/* Mostrar badge no hover */
.task-rect:hover .tipo-badge {
  opacity: 1;
  transform: translateY(0);
}

.tag-list-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.tag {
  padding: 0.3rem 0.6rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Nível 1: Tipo principal */
.tag-nivel-1 {
  background-color: #e0f7fa;
  border: 1px solid #00acc1;
  color: #006064;
}

/* Nível 2: Subtipo */
.tag-nivel-2 {
  background-color: #fff3e0;
  border: 1px solid #ffb74d;
  color: #e65100;
}

/* Tags adicionadas manualmente pelo usuário */
.tag-personalizada {
  background-color: #f3e5f5;
  border: 1px solid #ab47bc;
  color: #6a1b9a;
}




#tipo-tarefa {
  /* LAYOUT */
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  margin: 0.5rem 0 1rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 1rem;
  color: #333;
  background-color: #fff;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2210%22%20height%3D%227%22%20viewBox%3D%220%200%2010%207%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M0%200l5%207%205-7z%22%20fill%3D%22%23333%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 0.65rem auto;
  
  /* Transição suave ao focar */
  transition: border-color 0.2s, box-shadow 0.2s;
}

#tipo-tarefa:focus {
  outline: none;
  border-color: #667eea;        /* ex.: um lilás suave */
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.top-info-character {
    display: flex;
    flex: 0 0 auto;
    min-height: 0;
    justify-content: center;
    padding: 1rem;
    padding-top: 0;
    padding-bottom: 0;
}

.character-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    background-color: #1f1f1f;
    color: white;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #343434;
    margin: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    width: 90%;
    max-width: 1050px;
}

.character-box-modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    background-color: #1f1f1f;
    color: white;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #343434;
    margin: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    justify-content: center;
    align-content: center;
    flex-wrap: nowrap;
    width: 90%;
}

.xp-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3%;
  width: 100%;
  font-size: clamp(0.1rem, 3.5vw, 17px);
}

.xp-bar {
  height: 6px;
  width: 100%;
  background: #444;
  border-radius: 4px;
  margin: 4px 0;
  overflow: hidden;
}

.xp-fill {
  height: 100%;
  background: #32cd32;
  width: 0%;
  transition: width 0.4s ease-in-out;
}

.checkbox-tarefa {
  margin-right: 8px;
  transform: scale(1.2);
  cursor: pointer;
}
.ordenar-buttons {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 20px 0px;
  flex-wrap: wrap; /* útil em telas pequenas */
}

.ordenar-buttons button {
    padding: 6px 12px;
    background: #444;
    color: white;
    border: 1px solid #999;
    border-radius: 6px;
    cursor: pointer;
    width: 90%;
}
.ordenar-buttons button:hover {
  background: #666;
}


.tab-content {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.25s ease;
}

.tab-enter {
  opacity: 0;
  transform: translateX(20px);
}

.tab-exit {
  opacity: 0;
  transform: translateX(-20px);
}


#lista-tarefas-organizada {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    flex-direction: column;
    width: 90%;
    align-self: center;
}

.grupo-tipo {
  flex: 1 1 200px;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 0.75rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  color:#1e1f24;
}

.grupo-tipo-titulo {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: #333;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.25rem;
}

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

.grupo-tipo-lista li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.grupo-tipo-lista li small {
  color: #666;
}

#classe-selector {
  margin-top: 0.5rem;
  font-size: 1rem;
}

.anotacao {
  word-break: break-word;
  overflow-wrap: break-word;
  display: block;
  max-width: 100%;
  white-space: normal; /* <-- Corrige o "enter" extra */
}

.titulo-tarefa {
  display: flex;
  align-items: center;
  gap: 8px; /* Espaço entre checkbox e nome */
  margin-bottom: 4px;
}

.titulo-tarefa strong {
  font-size: 1.3rem;
  font-weight: bold;
  color: #f5e6d6;
}

#modal-criar-tarefa label {
  margin-bottom: 6px;
  margin-top: 5px; /* Espaço acima de todos os labels */
  display: block;
}

.popup-personagem {
  position: fixed;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  background-color: rgba(25, 25, 25, 0.8);
  border-radius: 12px;
  padding: 12px 16px;
  color: #e0e0ff;
  font-size: 14px;
  max-width: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1200;
  pointer-events: none;
}

span.class-name.icons-info,
span.next-event.icons-info {
    cursor: pointer;
}

.popup-personagem.show {
  opacity: 1;
}

.popup-personagem.hide {
  opacity: 0;
}

.popup-personagem img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  border-radius: 50%;
  border: 2px solid #555;
}

.popup-personagem em {
  font-style: italic;
}

/* Layout principal lado a lado */
.home-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-direction: column;
    flex-wrap: wrap;
    width: 90%;
    padding: 1rem;
    padding-top: 0px;
}

/* Tarefas fixadas */
#tarefas-fixadas {
    flex: 1 1;
    width: 100%;
    max-height: 466px;
    min-height: 90%;
    overflow: auto;
    border: none;
    box-shadow: none;
    padding: 0px;
    margin-bottom: 0;
}

.tarefas-slider-divider {
  width: 2px;
  background: #343434;
  margin: 82px 12px;
  border-radius: 2px;
  min-height: 120px;
  align-self: stretch;

}

/* Coluna de gráficos */
.grafico-coluna {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 1rem;
  background-color: #1f1f1f;
  border-radius: 10px;
  border: 1px solid #343434;
  padding-bottom: 0px;
}

/* Grade dos gráficos */
.grafico-grid {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex-wrap: wrap;
  align-content: stretch;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.grafico-card {
  background-color: #1f1f1f;
  border: 1px solid #343434;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  flex: 1 1 0;
  min-width: 0;
  max-width: calc(33.333% - 14px); /* 3 por linha, considerando o gap */
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

/* 🔁 Quando empilhar (telas pequenas), aumentar os gráficos */

@media (max-width: 1040px) {
  .grafico-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    padding-bottom: 16px;
    background: none;
    border: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100vw;
    min-width: 100vw;
    max-width: 100vw;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
  }
  .grafico-grid::-webkit-scrollbar {
    display: none;
  }
  .grafico-card {
    min-width: 85vw;      /* Mostra só um por vez, mas não tela cheia */
    max-width: 85vw;
    flex: 0 0 85vw;
    margin: 0 8vw;        /* Espaço nas laterais */
    scroll-snap-align: center;
    aspect-ratio: 1;
    width: 85vw;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    display: flex;
    padding-bottom: 1rem;
    border: none;
    box-shadow: none;
    overflow: hidden;
    position: relative;
  }
}

.grafico-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
  width: 90%;
}

.grafico-titulo {
  margin: 0 8px;
  font-size: 1.2em;
  font-weight: bold;
  color: #faf0e6;
  text-align: center;
  flex: 1 1 auto;
}

.grafico-nav-btn {
  color: #faf0e6;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.5em;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.grafico-nav-btn:active {
  background: #3a3b5a;
  transform: scale(0.92);
}
.grafico-nav-btn:disabled {
  opacity: 0.07;
  cursor: not-allowed;
}

.grafico-indicadores {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.grafico-indicador {
  width: 0.5rem;
  aspect-ratio: 1;
  background: #444;
  border-radius: 50%;
  display: inline-block;
  transition: background 0.2s, transform 0.2s;
  opacity: 0.5;
}
.grafico-indicador.ativo {
  background: #ffffff;
  opacity: 1;
  transform: scale(1.2);
}

@media (min-width: 1041px) {
  .grafico-nav-btn,
  .grafico-indicadores {
    display: none !important;
  }
}

#fixarNaHome {
  width: 29px;
  height: 29px;
  cursor: pointer;
}

.fixar-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  font-size: 1rem;
  color: #faf0e6;
}

#fixarNaHomeEditar {
  width: 29px;
  height: 29px;
  cursor: pointer;
}

#modal-visualizacao-anexo.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
#modal-visualizacao-anexo .modal-content img {
  max-width: 80vw;
  max-height: 60vh;
  display: block;
  margin: 0 auto;
}
#modal-visualizacao-anexo .modal-content pre {
  background: #181818;
  color: #faf0e6;
  padding: 16px;
  border-radius: 8px;
  max-width: 80vw;
  max-height: 60vh;
  overflow: auto;
  font-size: 1rem;
}

#modal-visualizacao-anexo .modal-content iframe {
  width: 80vw;
  height: 70vh;
  background: #222;
  border: none;
  display: block;
  margin: 0 auto;
}

.anexo-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #3d2b1f;
  color: #7ecbff;
  padding: 6px 14px;
  border-radius: 18px;
  font-weight: 500;
  text-decoration: none;
  margin-top: 8px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  font-size: 1rem;
  pointer-events: auto;
}
.anexo-link:hover {
  background: #7ecbff;
  color: #3d2b1f;
  text-decoration: underline;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.anexo-link .icon-clip svg {
  display: block;
}

.inventario-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.item-card-inventario {
  width: 120px;
  padding: 10px;
  border: 2px solid #ccc;
  border-radius: 10px;
  text-align: center;
  background: #f5f5f5;
  cursor: pointer;
}

.item-card-inventario.ativo {
  border-color: green;
  background: #d7ffd7;
}


div#app-header {width: 100%;}

div#appbody-container {width: 90%;display: flex;flex-direction: column;align-items: stretch;justify-content: center;align-content: center;flex-wrap: nowrap;border-radius: 10px;border: 1px solid #343434;background-color: #1f1f1f;padding: 1rem;}

div#config-buttosn-container {
    display: flex;
    flex-direction: column;
}
#calendario-container {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  padding: 10px;
}

.dia {
  position: relative;
  border: 1px solid #ccc;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: background 0.2s;
  aspect-ratio: 1;
}

.dia.com-tarefa {
  background-color: #4caf50;
  color: white;
  font-weight: bold;
}

.dia.concluida {
  background-color: #c8e6c9; /* Verde claro */
  color: #2e7d32;
}

.dia.expirada {
  background-color: #ffcdd2; /* Vermelho claro */
  color: #b71c1c;
}


#mes-anterior,
#mes-seguinte {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}
.modal-tarefas-custom {
  display: none; /* Oculto inicialmente */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5); /* fundo escuro */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-tarefas-custom .modal-content {
  background: rgb(44, 40, 40);
  padding: 20px;
  border-radius: 8px;
  width: 300px;
  max-height: 80%;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  margin: auto;
}

.btn-fechar {
  margin-top: 15px;
  background: #d32f2f;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.itens-ativos-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    height: 100%;
    max-height: 25px;
    align-items: flex-end;
    justify-content: flex-start;
    align-content: flex-end;
    overflow-x: auto;
    scrollbar-width: none;
}

.item-ativo-card {
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #221d1d;
  text-align: center;
  height: 80%;
  width: 13%;
  max-width: 35px;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  display: flex;
}

.item-ativo-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

.btn-wrapper {
  position: relative;
  display: inline-block;
  margin-top: 8px;
}

.btn-acoes {
  background-color: #2e7d32;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.dropdown-acoes {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: auto;
  min-width: 180px;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
  z-index: 10;
  border-radius: 10px;
  border: 1px solid #343434;
  overflow: hidden;
  background-color: rgb(17, 16, 16);
  margin-top: 8px;
}

.dropdown-acoes.para-cima {
  bottom: 100%;
  top: auto !important;
  margin-bottom: 8px;
  margin-top: 0;
}

.dropdown-acoes.visivel {
  display: block;
}

.dropdown-item {
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 500;
}

.dropdown-item:hover {
  background-color: #5f5a5a;
}

.checkbox-alinhada {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1em;
  margin-bottom: 12px;
}

.checkbox-alinhada input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #7ecbff; /* cor da checkbox */
}

.dia.periodico {
  background-color: #4fc3f7;
  color: #0d47a1;
}
.dia.nao-periodico {
  background-color: #ffa726;
  color: #4e2600;
}
.dia.personalizado {
  background-color: #66bb6a;
  color: #1b5e20;
}

/* Concluídas (apagadas) */
.dia.expirada-periodico   { background: #b0bec5 !important; color: #263238 !important; }   /* azul morto */
.dia.expirada-nao-periodico { background: #ffe9c6 !important; color: #7c5a2a !important; } /* laranja morto */
.dia.expirada-personalizado { background: #d0e8d0 !important; color: #355c3a !important; } /* verde morto */
.dia.expirada { background: #ffb3b3 !important; color: #b71c1c !important; } /* vermelho apagado */
.checkbox-container label {
  display: inline-block;
  margin: 5px 8px;
  position: relative;
  cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
  display: none;
}

.custom-checkbox {
  display: inline-block;
  padding: 8px 16px;
  border: 2px solid #4a90e2;
  border-radius: 20px;
  background-color: white;
  color: #4a90e2;
  font-weight: 500;
  transition: all 0.2s ease;
}

.checkbox-container input[type="checkbox"]:checked + .custom-checkbox {
  background-color: #4a90e2;
  color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.custom-checkbox:hover {
  background-color: #e6f0fa;
}
.refresh-button {
  display: none;
  font-family: 'Times New Roman', Times, serif;
  position: fixed;
  bottom: 80px; /* acima da bottom-nav */
  right: 20px;
  padding: 10px 15px;
  background-color: #254d79;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 1000;
  transition: background-color 0.2s;
}

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

div#console-log {
    width: 95%;
    border: 1px solid #343434;
    border-radius: 10px;
}

div#ios-notif-info {
    display: flex
;
    justify-content: center;
    align-items: center;
}

.ios-button {
  background-color: #007aff; /* Azul padrão do iOS */
  color: white;
  padding: 5px 25px !important;
  font-size: 16px !important;
  border: none;
  border-radius: 5px !important;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: auto !important;
}

#ios-notification-modal > div > label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: #ffffff;
  text-align: center;
  margin: 0;
}

#ios-notification-modal > div > h2 {
  margin: 15px;
}

.select-task {
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 4px;
  border: 2px solid #ffffff18;
  font-weight: 600;
  cursor: pointer;
  /* cor de fundo e borda base, que podem mudar conforme a aba/tipo */
  background-color: var(--btn-bg, #6a6a6a3c);
  color: var(--btn-color, #ccc);
  transition: border-color 0.3s ease;
}

.select-task:hover {
  border-color: var(--btn-border, #00000042);
  color: #000;
}

/* Centraliza e limita o tamanho do modal de função do item */
#modal-funcao-item .modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92vw;
  max-width: 320px;
  box-sizing: border-box;
  padding: 20px 10px;
  z-index: 9999;
  text-align: center;
  margin: 0; /* Remova qualquer margin */
}

/* Responsivo para telas muito pequenas */
@media (max-width: 400px) {
  #modal-funcao-item .modal-content {
    width: 98vw;
    max-width: 98vw;
    padding: 12px 4px;
  }

  .item-card{
    width: 40%;
  }
}

/* ...existing code... */
.tarefas-slider-coluna {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 1rem;
  background-color: #1f1f1f;
  border-radius: 10px;
  border: 1px solid #343434;
  margin-bottom: 1rem;
}
.tarefas-slider-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
  width: 90%;
}
.tarefas-slider-titulo {
  margin: 0 8px;
  font-size: 1.2em;
  font-weight: bold;
  color: #faf0e6;
  text-align: center;
  flex: 1 1 auto;
}
.tarefas-slider-nav-btn {
  color: #faf0e6;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.5em;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.tarefas-slider-nav-btn:active {
  background: #3a3b5a;
  transform: scale(0.92);
}
.tarefas-slider-nav-btn:disabled {
  opacity: 0.07;
  cursor: not-allowed;
}
.tarefas-slider-indicadores {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.tarefas-slider-indicador {
  width: 0.5rem;
  aspect-ratio: 1;
  background: #444;
  border-radius: 50%;
  display: inline-block;
  transition: background 0.2s, transform 0.2s;
  opacity: 0.5;
}
.tarefas-slider-indicador.ativo {
  background: #ffffff;
  opacity: 1;
  transform: scale(1.2);
}
.tarefas-slider-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: stretch;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.tarefas-slider-card {
  min-width: 85vw;
  max-width: 85vw;
  flex: 0 0 85vw;
  margin: 0 8vw;
  scroll-snap-align: center;
  width: 85vw;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  display: flex;
}

@media (min-width: 1041px) {
  .tarefas-slider-nav-btn,
  .tarefas-slider-indicadores {
    display: none !important;
  }
  .tarefas-slider-grid {
    flex-direction: row;
    gap: 20px;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
  }
  .tarefas-slider-card {
    min-width: 350px;
    max-width: 450px;
    flex: 1 1 0;
    margin: 0 10px;
    aspect-ratio: unset;
    width: 100%;
  }
}
@media (max-width: 1040px) {
  .tarefas-slider-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    background: none;
    border: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100vw;
    min-width: 100vw;
    max-width: 100vw;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
  }
  .tarefas-slider-grid::-webkit-scrollbar {
    display: none;
  }
  .tarefas-slider-card {
    min-width: 85vw;
    max-width: 85vw;
    flex: 0 0 85vw;
    margin: 0 8vw;
    scroll-snap-align: center;
    width: 85vw;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    display: flex;
  }
}

#status-id p {
  /* font-size: 6vw; */
  margin: 0;
}

#id-atual {
  font-weight: 700;
  color: #2563eb; /* Azul forte para destacar o ID */
}

#msg-mudanca {
  font-style: italic;
  color: #64748b; /* Cinza azulado para a mensagem */
}

#id-atual-config {
  font-weight: 700;
  color: #2563eb; /* Azul forte para destacar o ID */
}

#msg-mudanca-config {
  font-style: italic;
  color: #64748b; /* Cinza azulado para a mensagem */
}

/* ...existing code... */

/* Spinner animado */
.spinner {
  border: 6px solid #eee;
  border-top: 6px solid #be6ef6;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

#app-loader {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #121318c0;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    flex-direction: column;
    align-content: center;
}

#loader-warning {
  display: none;
  color: #fbc9ff;
  background: #4a1f69;
  border: 1.5px solid #be6ef6;
  border-radius: 12px;
  margin-top: 28px;
  text-align: center;
  font-size: 1.08em;
  font-weight: 500;
  padding: 18px 22px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 340px;
  width: 60%;
  letter-spacing: 0.01em;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

/* ...existing code... */


/* Firefox */
@media (pointer: fine) {
  * {
    scrollbar-width: thin;
    scrollbar-color: #343434 #bd6ef600;
  }
}

/* Barra de scroll personalizada para desktop */
@media (pointer: fine) {
  ::-webkit-scrollbar {
    width: 10px;
    background: #bd6ef600;
  }
  ::-webkit-scrollbar-thumb {
    background: #6b3f2a;
    border-radius: 8px;
    border: 2px solid #bd6ef618;
    min-height: 40px;
    transition: background 0.3s;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #bd6ef600;
  }
  ::-webkit-scrollbar-track {
    background: #bd6ef600;
    border-radius: 8px;
  }
  ::-webkit-scrollbar-corner {
    background: #bd6ef600;
  }
}

#adicionar-amigo-bloco {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 90% !important;
  border: 1px solid #343434;
  background-color: #1f1f1f;
  padding: 10px 1rem;
  border-radius: 10px;
}

#friend-request-container {
  width: 100%;
  display: flex;
  gap: 8px;
  align-items: center;
}

#friend-request-container input {
  flex: 1;
  min-width: 0;
  padding: 10px;
  border: 2px solid #94a3b8;
  border-radius: 6px;
  font-size: 16px;
}

#friend-request-container button {
  padding: 8px 18px;
  background-color: #22c55e;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 0px;
}

#friend-request-container button:hover {
  background-color: #16a34a;
}

#btn-pedidos-amizade {
  background: #1976d2;
  color: white;
  width: 100%;
  margin-top: 6px;
  border-radius: 6px;
  padding: 8px 0;
  font-size: 1em;
}

#amigos-container li {
  padding: 10px 16px;
  margin: 10px auto;
  border: 2px solid #4fc3f7;
  border-radius: 18px;
  background: #292940;
  color: #4fc3f7;
  width: 90%;
  min-width: 180px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}
#amigos-container li:hover {
  background: #b396e5;
}
.amigo-nome {
  font-weight: bold;
  margin-right: 8px;
}

#amigos-container li span {
  font-weight: bold;
  color: #4fc3f7;
}

#amigos-container small {
  color: #ccc;
  font-size: 0.8em;
}

/* Animação de saída para a esquerda */
.main-content.slide-out-left {
  animation: slideOutLeft 0.3s forwards;
}
/* Animação de entrada da direita */
.main-content.slide-in-right {
  animation: slideInRight 0.3s forwards;
}
/* Animação de saída para a direita */
.main-content.slide-out-right {
  animation: slideOutRight 0.3s forwards;
}
/* Animação de entrada da esquerda */
.main-content.slide-in-left {
  animation: slideInLeft 0.3s forwards;
}

@keyframes slideOutLeft {
  to { transform: translateX(-100vw); opacity: 0; }
}
@keyframes slideInRight {
  from { transform: translateX(100vw); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutRight {
  to { transform: translateX(100vw); opacity: 0; }
}
@keyframes slideInLeft {
  from { transform: translateX(-100vw); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

ul#amigos-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #1f1f1f;
    color: white;
    padding: 10px 1rem;
    border-radius: 10px;
    border: 1px solid #343434;
    margin: 0px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    width: 90%;
}

body > div.main-content > div.top-info-character > div{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-direction: column;
    align-content: center;
}

#status-id{
  background-color: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0;
  border: none;
  font-weight: 900;
  color: #ccc;
  font-size: clamp(0.1rem, 6vw, 28px);
}

.status-id-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90% !important;
  padding: 1rem !important;
  background-color: #3b3b3b !important;
  border-radius: 10px;
  border: 1px solid #343434 !important;
  font-size: medium !important;
  gap: 10px;
  margin: 10px !important;
}

#status-id-modal {
  background-color: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0;
  border: none;
  font-weight: 900;
  color: #ccc;
  font-size: clamp(0.1rem, 6vw, 28px);
}

#status-id-modal p {
  margin: 0;
}

.character-header {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: flex-start;
    width: 100%;
    justify-content: flex-start;
}

.character-box img {
    align-self: center;
    height: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
}

.character-box-modal img {
    align-self: center;
    width: 50%;
    aspect-ratio: 1;
    border-radius: 10px;
}

body > div.main-content > div.top-info-character > div {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    margin-top: 0;
    flex-direction: row;
    align-content: center;
    flex-wrap: nowrap;
    max-height: 100px;
}

.item-ativo-card span{
  display: none;
}

#itens-ativos-container > img {
  width: 20%;
}

div#char-sider {
    width: 30%;
    max-width: 100px;
    max-height: 150px;
    height: 100%;
    aspect-ratio: 1;
}

body > div.main-content > div.top-info-character > div > div.character-info > div.character-header > div {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
}

.character-info {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-left: 7px;
    overflow: hidden;
}

.classe-info {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: clamp(0.1rem, 3.8vw, 17px);
}

.missoes-diarias-bloco {
  background: #1f1f1f;
  border-radius: 10px;
  padding: 1rem;
  color: #fff;
  box-shadow: 0 2px 12px #0002;
  width: 100%;
  border: 1px solid #343434;
}

@media (min-width: 600px) {
  .missoes-diarias-bloco {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
  }
}

.missoes-diarias-bloco h3 {
  text-align: center;
  font-size: 1.5em;
  margin-bottom: 18px;
  color: #e0e0e0;
  letter-spacing: 1px;
}

.missao-diaria {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: #292940;
  border-radius: 8px;
  margin: 10px 0;
  padding: 10px 16px;
  font-size: 1.08em;
  transition: background 0.2s;
  border-left: 5px solid #4fc3f7;
  position: relative;
}

.missao-diaria.concluida {
  background: linear-gradient(90deg, #2e7d32 60%, #43a047 100%);
  color: #fff;
  border-left: 5px solid #ffd600;
  opacity: 0.92;
}

.missao-diaria .missao-desc {
  flex: 1 1 100px;
  font-weight: 500;
  word-break: break-word;
  white-space: normal;
  line-height: 1.3;
  margin-right: 8px;
}

.missao-info-lateral {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 70px;
  gap: 2px;
}

.missao-info-lateral .missao-progresso {
  font-size: 1.05em;
  font-weight: 600;
  color: #90caf9;
}

.missao-info-lateral .missao-xp {
  color: #ffd600;
  font-weight: bold;
  font-size: 1em;
  display: flex;
  align-items: center;
}

.missao-info-lateral .missao-check {
  font-size: 1.2em;
  color: #ffd600;
  font-weight: bold;
  filter: drop-shadow(0 0 2px #fff8);
  margin-left: 4px;
}

.missao-check,
.missao-tempo,
.estrela-xp {
  font-size: 1em;          
  width: 1em;
  height: 1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-right: 4px;
  /* Ajuste de cor já existente */
}

.missao-progresso {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.15em;
}

.missao-xp {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 1.08em;
    font-size: clamp(0.1rem, 3vw, 18px);
}

.top-info-char-modal {
  display: flex;
  align-items: center;
  gap: 16px; /* Espaço entre imagem e textos */
  width: 100%;
}

.top-info-char-modal img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  background: #222;
}

.char-modal-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: flex-start;
    align-content: stretch;
    align-items: flex-start;
    height: 100%;
}

#itens-ativos-container-modal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: stretch; /* <-- faz todos os filhos terem a mesma altura */
  width: 100% !important;
  max-height: none;
  flex-direction: row;
  align-content: flex-start;
}

#itens-ativos-container-modal > div {
    flex: 1 1 120px;
    min-width: 13vw;
    display: flex;
    flex-direction: column;
    height: 27vw;
    padding: 5px 5px;
    box-sizing: border-box;
}

#itens-ativos-container-modal > div span{
  font-size: clamp(0.1rem, 2.3vw, 28px);
  display: block;
}

.main-content.show.bg-inimigo-sombrio {
  background-image: url('img/bk/Dark.jpg');
  background-size: cover;
  background-position: center;
}

.main-content.show.bg-inimigo-selvagem {
  background-image: url('img/bk/Selva.jpg');
  background-size: cover;
  background-position: center;
}

.main-content.show.bg-inimigo-magico,
.main-content.show.bg-inimigo-lendario {
  background-image: url('img/bk/Vulcao.png');
  background-size: cover;
  background-position: center;
}

.tabs {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow:hidden
}

div#tab-enemy {
    min-height: 100%;
    padding-top: 0px;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 0px;
    flex-direction: column;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

/* Garante que o inimigo nunca extrapole o tab-enemy */
#inimigo-container {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    box-sizing: border-box;
    margin: 0 auto;
}

#inimigo-img {
    width: min(80vw, 80vh, 500px);
    height: min(80vw, 80vh, 500px);
    aspect-ratio: 1 / 1;
    display: flex;
    position: relative;
    z-index: 1;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    box-sizing: border-box;
    max-width: 100vw;
    max-height: 100vh;
}

/* Garante que a imagem dentro também respeite o quadrado */
#inimigo-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  aspect-ratio: 1 / 1;
}

#inimigo-img .inimigo-sombra {
    position: absolute;
    left: -49px;
    bottom: -59%;
    width: 100%;
    height: 100%;
    z-index: 0;
    filter: blur(4px) brightness(0.22) grayscale(1) opacity(0.8);
    transform: scaleY(-0.38) scaleX(1.18) skewX(13deg);
    pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent 10%, black 90%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 10%, black 90%);
    overflow: visible;
}

#inimigo-img img:not(.inimigo-sombra) {
  position: relative;
  z-index: 2;
}

.enemy-actions {
    display: flex;
    z-index: 1;
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
    background-color: #1f1f1f;
    color: white;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #343434;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    align-content: stretch;
    flex-wrap: nowrap;
    width: 90%;
    max-width: 1050px;
    justify-content: space-evenly;
}

.enemy-actions button:first-child {
    flex: 2 1 0;
    min-width: 0;
    margin: 0;
}

.enemy-actions button:last-child {
    flex: 8 1 0;
    min-width: 0;
    margin: 0;
}

div#simpleid-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90% !important;
    padding: 1rem !important;
    background-color: #3b3b3b !important;
    border-radius: 10px;
    border: 1px solid #343434 !important;
    font-size: medium !important;
    gap: 10px;
    margin: 10px !important;
}

button#btn-salvar-id{
  background-color: #1f691f; 
  color:  #cbffc9; 
  border-color: #73f66e;
  width: 100%;
}

button#logout-button {
    max-width: 186px;
    width: 85%;
}

#simpleid-container,
#friend-request-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

#simpleid-container button,
#friend-request-container button {
  text-align: center;
  display: block;
}

body.tab-home-active .top-info-character,
body.tab-settings-active .top-info-character {
  display: none !important;
}

body.tab-home-active #modal-personagem > div > div,
body.tab-settings-active #modal-personagem > div > div {
  display: flex !important;
}

div#tab-home {
    padding-top: 0px;
}

/* Animação de ataque especial do inimigo */
.inimigo-anim-ataque {
  animation: inimigoAtaqueAnim 0.4s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes inimigoAtaqueAnim {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-8px); }
  40%, 60% { transform: translateX(8px); }
  100% { transform: translateX(0); }
}

/* Adicione ao seu style.css */
#enemy-attack-canvas {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  height: 90vw;
  z-index: 1010;
  pointer-events: none;
  display: none;
}

.task-loading-spinner {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;  
  border-radius: #ccc;
  border-top-color: #000000;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
}
.task-loading-spinner .spinner {
  width: 200%;
  height: 200%;
  aspect-ratio: 1 / 1;
  border-width: 8px;
  border-style: solid;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-sizing: border-box;
  background: none;
  display: block;
  margin: 0 auto;
}
.task-rect.loading .task-content {
  opacity: 0.2;
  filter: blur(1.15px);
}
.task-rect.loading {
  /* Remova opacity e blur daqui! */
  pointer-events: none;
}
/* ...existing code... */

/* Spinner animado - cor dinâmica por tipo de tarefa */
.task-rect[data-tipo="periodico"] .task-loading-spinner .spinner {
  border-color: #cfe3ff;
  border-top-color: #5390d9;
}
.task-rect[data-tipo="nao-periodico"] .task-loading-spinner .spinner {
  border-color: #ffe6c9;
  border-top-color: #d99453;
}
.task-rect[data-tipo="personalizado"] .task-loading-spinner .spinner {
  border-color: #e6ffcf;
  border-top-color: #94d953;
}

#especial-inimigo {
  position: relative;
  overflow: hidden;
}

#especial-inimigo .especial-progress-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, #ff00dd 0%, #b700ff 100%);
  opacity: 0.25;
  z-index: 0;
  transition: width 0.3s;
  border-radius: 0.5rem;
}

#especial-inimigo .especial-label,
#especial-inimigo .especial-progress-text {
  position: relative;
  z-index: 1;
}

#especial-inimigo .especial-progress-text {
  margin-left: 8px;
  font-weight: bold;
  font-size: 1em;
}

#especial-inimigo.carregado {
  animation: especialPulse 1s infinite alternate, especialGlow 1.2s infinite alternate;
  box-shadow: 0 0 16px 4px #ff00dd88, 0 0 32px 8px #b700ff44;
  border: 2px solid #ff00dd;
  background: linear-gradient(90deg, #ff00dd33 0%, #b700ff33 100%);
}

@keyframes especialPulse {
  0% { transform: scale(1);}
  100% { transform: scale(1.08);}
}

@keyframes especialGlow {
  0% { box-shadow: 0 0 16px 4px #ff00dd88, 0 0 32px 8px #b700ff44;}
  100% { box-shadow: 0 0 32px 8px #ff00ddcc, 0 0 48px 16px #b700ff88;}
}

#especial-attack-canvas {
  position: fixed;
  display: flex;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  height: 90vw;
  z-index: 1020;
  pointer-events: none;
}

.inimigo-anim-especial {
  animation: inimigoEspecialAnim 0.6s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes inimigoEspecialAnim {
  0%   { transform: scale(1) rotate(0deg);}
  10%  { transform: scale(1.08) rotate(-8deg);}
  20%  { transform: scale(1.12) rotate(8deg);}
  30%  { transform: scale(1.15) rotate(-12deg);}
  40%  { transform: scale(1.18) rotate(12deg);}
  50%  { transform: scale(1.22) rotate(-16deg);}
  60%  { transform: scale(1.18) rotate(12deg);}
  70%  { transform: scale(1.15) rotate(-8deg);}
  80%  { transform: scale(1.08) rotate(4deg);}
  90%  { transform: scale(1.02) rotate(-2deg);}
  100% { transform: scale(1) rotate(0deg);}
}

#classe-ativa small {
  color: #4ce00de3;
  font-size: 0.85rem;
  font-style: normal;
}

/* Modal de Ajuda */
#modal-ajuda.modal {
  background: rgba(18, 19, 24, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 3000;
}

#modal-ajuda .modal-content {
  background: #1f1f1f;
  color: #faf0e6;
  border-radius: 18px;
  box-shadow: 0 8px 32px #0008;
  padding: 32px 24px 24px 24px;
  max-width: 420px;
  width: 92vw;
  max-height: 80vh;
  overflow-y: auto;
  border: 1.5px solid #4fc3f7;
  position: relative;
  animation: modalAjudaFadeIn 0.25s;
}

#modal-ajuda .nao-mostrar-novamente-btn {
  display: block;
  margin: 28px auto 0 auto;
  padding: 10px 22px;
  background: #292940;
  color: #faf0e6;
  border: 1.5px solid #4fc3f7;
  border-radius: 8px;
  font-size: 1.08em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  box-shadow: 0 2px 8px #0002;
}

#modal-ajuda .nao-mostrar-novamente-btn:hover {
  background: #4fc3f7;
  color: #232232;
  border-color: #ffd600;
  transform: scale(1.04);
}

@keyframes modalAjudaFadeIn {
  from { opacity: 0; transform: translateY(30px) scale(0.98);}
  to   { opacity: 1; transform: translateY(0) scale(1);}
}

#modal-ajuda h2 {
  color: #a87ef0;
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 10px;
  text-align: center;
  letter-spacing: 1px;
}

#modal-ajuda h3 {
  color: #4fc3f7;
  font-size: 1.15em;
  margin-top: 18px;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  text-align: center;
}

#modal-ajuda ul {
  margin: 0 0 10px 0;
  padding-left: 18px;
}

#modal-ajuda ul li {
  margin-bottom: 6px;
  font-size: 1em;
  color: #faf0e6;
  line-height: 1.5;
  list-style: disc inside;
}

#modal-ajuda .close-button {
  position: absolute;
  right: 18px;
  top: 12px;
  font-size: 1.5em;
  color: #a87ef0;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  z-index: 10;
}
#modal-ajuda .close-button:hover {
  color: #4fc3f7;
  transform: scale(1.15) rotate(8deg);
}

#conteudo-ajuda {
  font-size: 1.08em;
  color: #faf0e6;
  text-align: left;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #4fc3f7 #232232;
}
#conteudo-ajuda::-webkit-scrollbar {
  width: 7px;
}
#conteudo-ajuda::-webkit-scrollbar-thumb {
  background: #4fc3f7;
  border-radius: 8px;
}
#conteudo-ajuda::-webkit-scrollbar-track {
  background: #232232;
}

#modal-trocar-missao.modal {
  background: rgba(18, 19, 24, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 3000;
}

#modal-trocar-missao .modal-content {
  background: linear-gradient(135deg, #232232 80%, #292940 100%);
  color: #faf0e6;
  border-radius: 18px;
  box-shadow: 0 8px 32px #0008;
  padding: 38px 28px 28px 28px;
  max-width: 400px;
  width: 96vw;
  max-height: 80vh;
  overflow-y: auto;
  border: 1.5px solid #4fc3f7;
  position: relative;
  animation: modalAjudaFadeIn 0.25s;
}

#modal-trocar-missao h3 {
  color: #a87ef0;
  font-size: 1.25em;
  margin-top: 0;
  margin-bottom: 18px;
  text-align: center;
  letter-spacing: 1px;
  font-weight: bold;
  text-shadow: 0 2px 8px #23223280;
}

#modal-trocar-missao p,
#texto-troca-missao {
  color: #ffffff !important;
  font-size: 1.12em;
  text-align: center;
  margin-bottom: 18px;
  margin-top: 0;
  font-weight: 600;
}

#modal-trocar-missao .close-button {
  position: absolute;
  right: 18px;
  top: 12px;
  font-size: 1.5em;
  color: #a87ef0;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  z-index: 10;
}
#modal-trocar-missao .close-button:hover {
  color: #4fc3f7;
  transform: scale(1.15) rotate(8deg);
}

#btn-trocar-missao-modal {
  width: 100%;
  padding: 14px 0;
  background: #232232;
  color: #a87ef0;
  border: 1.5px solid #4fc3f7;
  border-radius: 10px;
  font-size: 1.08em;
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  box-shadow: 0 2px 8px #0002;
  cursor: pointer;
}

#btn-trocar-missao-modal:disabled {
  background: #232232;
  color: #888;
  border-color: #444;
  cursor: not-allowed;
  opacity: 0.7;
}

#btn-trocar-missao-modal:not(:disabled):hover {
  background: #4fc3f7;
  color: #232232;
  border-color: #ffd600;
  transform: scale(1.04);
}

@media (max-width: 600px) {
  .modal-content {
    max-width: 99vw;
    padding: 8px;
  }
  .tasks-container .task-rect,
  .grafico-card {
    width: 99vw;
    max-width: 99vw;
    min-width: 0;
  }
}

/* Garante que o conteúdo interno nunca ultrapasse o modal */
.tasks-container,
.grafico-card,
#lista-tarefas-organizada,
#calendario-container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
}

/* Cards de tarefa nunca maiores que o modal */
.tasks-container .task-rect {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-left: 0;
  margin-right: 0;
  word-break: break-word;
}

#modal-criar-tarefa .modal-content {
  background: #1f1f1f;
  color: #faf0e6;
  border-radius: 18px;
  box-shadow: 0 8px 32px #0008;
  padding: 36px 28px 28px 28px;
  max-width: 420px;
  width: 96vw;
  max-height: 85vh;
  overflow-y: auto;
  border: 1.5px solid #4fc3f7;
  position: relative;
  animation: modalAjudaFadeIn 0.25s;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#modal-criar-tarefa .close-button {
  position: absolute;
  right: 18px;
  top: 12px;
  font-size: 1.5em;
  color: #a87ef0;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  z-index: 10;
}
#modal-criar-tarefa .close-button:hover {
  color: #4fc3f7;
  transform: scale(1.15) rotate(8deg);
}

#modal-criar-tarefa h2, #modal-criar-tarefa h3 {
  color: #a87ef0;
  text-align: center;
  margin-top: 0;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

#modal-criar-tarefa label {
  color: #4fc3f7;
  font-weight: 600;
  margin-bottom: 4px;
  margin-top: 12px;
  display: block;
  font-size: 1em;
}

#modal-criar-tarefa input,
#modal-criar-tarefa select,
#modal-criar-tarefa textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1.5px solid #343434;
  background: #232232;
  color: #faf0e6;
  font-size: 1em;
  margin-bottom: 10px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#modal-criar-tarefa input:focus,
#modal-criar-tarefa select:focus,
#modal-criar-tarefa textarea:focus {
  border-color: #4fc3f7;
  outline: none;
  box-shadow: 0 0 0 2px #4fc3f799;
}

#modal-criar-tarefa button[type="submit"] {
  width: 100%;
  padding: 14px 0;
  background: #4fc3f7;
  color: #232232;
  border: none;
  border-radius: 10px;
  font-size: 1.08em;
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 0;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  box-shadow: 0 2px 8px #0002;
  cursor: pointer;
}

#modal-criar-tarefa button[type="submit"]:hover {
  background: #ffd600;
  color: #232232;
  transform: scale(1.04);
}

@media (max-width: 600px) {
  #modal-criar-tarefa .modal-content {
    max-width: 99vw;
    padding: 12px 4vw;
  }
}