/* 🌍 RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

/* 🌌 FUNDO */
body {
  height: 100vh;
  background: linear-gradient(270deg, #ff6a00, #ee0979, #00c9ff);
  background-size: 600% 600%;
  animation: fundoAnimado 10s ease infinite;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* 🎬 ANIMAÇÃO */
@keyframes fundoAnimado {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ====================================================== */
/* 📦 CONTAINER */
/* ====================================================== */

.container {

  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(255, 106, 0, 0.2);

  backdrop-filter: blur(12px);
  padding: 30px;
  border-radius: 24px;
  width: 500px;
  min-height: 400px;
  max-height: 95vh;
  overflow: hidden;
  animation: aparecer 1s ease;
  display: flex;
  flex-direction: column;
  transition: 0.4s;
}

/* 🎬 ENTRADA */
@keyframes aparecer {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====================================================== */
/* ✨ EFEITO HOVER CONTAINER */
/* ====================================================== */

.container:hover {

  transform: translateY(-5px);

  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(255, 106, 0, 0.35);
}

/* 🧠 CABEÇALHO */
.cabecalho h1 {
  color: #fff;
  text-align: center;
}

.cabecalho p {
  color: #ccc;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 12px;
}

/* 📝 ÁREA INPUT */
.area-input {
  display: flex;
  gap: 10px;
}

/* ====================================================== */
/* 🚀 LANDING PAGE */
/* ====================================================== */

.landing-page {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background:
    linear-gradient(
      135deg,
      rgba(0,0,0,0.9),
      rgba(15,15,15,0.95)
    );
  z-index: 9999;

}

/* ====================================================== */
/* ✨ CONTEÚDO */
/* ====================================================== */
.landing-conteudo {
  max-width: 700px;
  text-align: center;
  animation: aparecerLanding 1s ease;

}

/* 🚀 TÍTULO */
.landing-conteudo h1 {
  font-size: 60px;
  color: white;
  margin-bottom: 20px;
  text-shadow:
    0 0 20px rgba(255,106,0,0.5);
}

/* 📝 TEXO */
.landing-conteudo p {
  color: #ccc;
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* ====================================================== */
/* 🔥 TECNOLOGIAS */
/* ====================================================== */

.landing-tecnologias {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

/* TAGS */

.landing-tecnologias span {
  padding: 10px 18px;
  border-radius: 30px;
  background:
  linear-gradient(45deg, #ff6a00, #ee0979);
  color: white;
  font-size: 14px;
  font-weight: bold;
  box-shadow:
    0 0 15px rgba(255,106,0,0.3);
}

/* ====================================================== */
/* 🚀 BOTÃO ENTRAR */
/* ====================================================== */

#entrar-sistema {
  padding: 18px 35px;
  border: none;
  border-radius: 14px;
  background:
  linear-gradient(45deg, #ff6a00, #ee0979);
  color: white;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.4s;
}

/* ✨ HOVER */

#entrar-sistema:hover {
  transform: scale(1.08);
  box-shadow:
    0 0 25px rgba(255,106,0,0.5);
}

/* ====================================================== */
/* ❌ ESCONDIDO */
/* ====================================================== */

.escondido {
  display: none;
}

/* ====================================================== */
/* 🎬 ANIMAÇÃO */
/* ====================================================== */

@keyframes aparecerLanding {

  from {

    opacity: 0;
    transform: translateY(40px);

  }

  to {

    opacity: 1;
    transform: translateY(0);

  }

}

/* ====================================================== */
/* 🌙 BOTÃO TEMA */
/* ====================================================== */

#botao-tema {
  margin-bottom: 20px;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(45deg, #333, #555);
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

/* ✨ HOVER */

#botao-tema:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(255,255,255,0.2);
}

/* ====================================================== */
/* ☀️ LIGHT MODE */
/* ====================================================== */

.light-mode {
  background: linear-gradient(270deg, #f5f7fa, #dfe9f3, #ffffff);
}

.light-mode .container {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.1);
}

.light-mode .cabecalho h1,
.light-mode .cabecalho p,
.light-mode #texto-contador,
.light-mode #texto-concluidas,
.light-mode #texto-pendentes,
.light-mode #texto-porcentagem,

.light-mode #mensagem-vazia {
  color: #111;
}

.light-mode .item-tarefa {
  background: #f1f1f1;
  color: #111;
}

.light-mode .filtros button {
  background: #ddd;
  color: #111;
}

.light-mode #entrada-tarefa {
  background: #fff;
  color: #111;
  border: 1px solid #ccc;
}

.light-mode #entrada-tarefa::placeholder {
  color: #666;
}

/* ====================================================== */
/* ✍️ INPUT */
/* ====================================================== */

#entrada-tarefa {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  outline: none;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 15px;
  transition: 0.3s;
}

/* ====================================================== */
/* 💡 INPUT FOCUS */
/* ====================================================== */

#entrada-tarefa:focus {
  border: 1px solid #ff6a00;
  box-shadow:
    0 0 10px rgba(255, 106, 0, 0.5),
    0 0 20px rgba(255, 106, 0, 0.2);
}

/* ====================================================== */
/* ✍️ PLACEHOLDER */
/* ====================================================== */

#entrada-tarefa::placeholder {
  color: rgba(255,255,255,0.6);
}

/* ➕ BOTÃO */
#botao-adicionar {
  padding: 10px 15px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: linear-gradient(45deg, #ff6a00, #ee0979);
  color: white;

  transition: 0.3s;
}

/* 🔥 HOVER */
#botao-adicionar:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px #ff6a00;
}

/* 📊 CONTADOR DE TAREFAS */
.contador-tarefas {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

#texto-contador {
  color: #ffffff;
  font-size: 14px;
  opacity: 0.8;
  text-align: center;
}

/* ✏ EDITAR: ESTA DECLARADA NO JS */
.botao-editar {
  background: #ff9800;
  color: white;
}

.botao-editar:hover {
  transform: scale(1.2);
}

#texto-concluidas {
  color: #bdc3c0;
  font-size: 14px;
  text-align: center;
}

/* ====================================================== */
/* 📈 ESTATÍSTICAS */
/* ====================================================== */

.estatisticas {
  margin-top: 20px;
}

/* 📝 TEXTOS */
.estatisticas p {
  color: white;
  font-size: 14px;
  margin-bottom: 10px;
  text-align: center;
}

/* ====================================================== */
/* 📊 BARRA DE PROGRESSO */
/* ====================================================== */

.barra-progresso {
  width: 100%;
  height: 14px;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  overflow: hidden;
}

/* 🚀 PROGRESSO */
#progresso {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00c853, #69f0ae);
  transition: 0.4s;
  box-shadow: 0 0 10px #00e676;
}

/* ====================================================== */
/* 🔍 FILTROS */
/* ====================================================== */


.filtros { /* filtros:cria alinhamento horizontal e espaço entre botões  */
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.filtros button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 10px;
  cursor: pointer;

  background: #222;
  color: white;

  transition: 0.3s;
}

/* ✨ HOVER */
.filtros button:hover {
  background: #ff6a00;
  transform: translateY(-2px);
}

/* 📋 LISTA */
.lista-tarefas {
  list-style: none;
  margin-top: 20px;
  overflow-y: auto;
  flex: 1;
  padding-right: 5px;
}

/* ========================================= */
/* 📝 MENSAGEM LISTA VAZIA */
/* ========================================= */

#mensagem-vazia {
  color: #ccc;
  text-align: center;
  margin-top: 20px;
  opacity: 0.7;

  display: block;

  animation: aparecer 0.5s ease;
}

/* 🎨 ESTILO DO SCROLLBAR */
.lista-tarefas::-webkit-scrollbar {
  width: 6px;
}

.lista-tarefas::-webkit-scrollbar-thumb {
  background: #ff6a00;
  border-radius: 10px;
}

/* 📌 ITEM */
.item-tarefa {
  background: #111;
  color: white;
  padding: 12px;
  border-radius: 10px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  transition: 0.3s;
}

/* 💡 HOVER ITEM */
.item-tarefa:hover {
  transform: translateX(5px);
  background: #1c1c1c;
}

/* ✔ TEXTO */
.texto-tarefa {
  flex: 1;
}

/* 🎮 AÇÕES */
.acoes button {
  margin-left: 5px;
  border: none;
  padding: 5px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

/* ✔ CONCLUIR */
.botao-concluir {
  background: #00c853;
  color: white;
}

.botao-concluir:hover {
  transform: scale(1.2);
}

/* ❌ DELETAR */
.botao-deletar {
  background: #ff1744;
  color: white;
}

.botao-deletar:hover {
  transform: scale(1.2);
}

/* ========================================= */
/* ✅ TAREFA CONCLUÍDA */
/* ========================================= */

.concluida {
  text-decoration: line-through;
  opacity: 0.7;
  color: #00e676;
  transition: 0.4s;
  text-shadow: 0 0 8px #00e676;
  transform: scale(0.98);
}

/* ====================================================== */
/* ✨ ANIMAÇÃO AO CRIAR TAREFA */
/* ====================================================== */

.item-tarefa {
  animation: aparecer 0.8s ease;
}

/* 🎬 ANIMAÇÃO */
@keyframes aparecer {

  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

}

/* ====================================================== */
/* ❌ ANIMAÇÃO AO DELETAR */
/* ====================================================== */

.remover-tarefa {
  animation: remover 0.4s ease forwards;
}


/* 🎬 KEYFRAMES */
@keyframes remover {

  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateX(100px) scale(0.8);
  }

}

/* ====================================================== */
/* 🔥 FILTRO ATIVO / será adicionada VIA JAVASCRIPT no botão clicado */ 
/* ====================================================== */

.filtro-ativo {
  background: linear-gradient(45deg, #ff6a00, #ee0979) !important;
  transform: scale(1.05);
  box-shadow: 0 0 10px #ff6a00;
}

/* ====================================================== */
/* 📱 RESPONSIVIDADE MOBILE */
/* ====================================================== */

@media (max-width: 600px) {

  /* 🌍 BODY */
  body {
    padding: 15px;
    align-items: flex-start;
  }

  /* 📦 CONTAINER */
 .container {
  width: 100%;
  padding: 20px;
  margin-top: 20px;
  min-height: auto;
  max-height: 95vh;
}

  /* 🧠 TÍTULO */
  .cabecalho h1 {
    font-size: 24px;
  }

  /* 📝 TEXTO */
  .cabecalho p {
    font-size: 14px;
  }

  /* ✍️ ÁREA INPUT */
  .area-input {
    flex-direction: column;
  }

  /* ✍️ INPUT */
  #entrada-tarefa {
    width: 100%;
  }

  /* ➕ BOTÃO */
  #botao-adicionar {
    width: 100%;
  }

  /* 🔍 FILTROS */
  .filtros {
    flex-direction: column;
  }

  /* 📋 ITEM DA LISTA */
  .item-tarefa {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* 🎮 ÁREA DOS BOTÕES */
  .acoes {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }

}

/* ====================================================== */
/* 🕒 DATA DA TAREFA */
/* ====================================================== */

.conteudo-tarefa {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.data-tarefa {
  font-size: 12px;
  opacity: 0.7;
  color: #ccc;
}

/* ====================================================== */
/* 🔔 NOTIFICAÇÃO */
/* ====================================================== */

#notificacao {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #111;
  color: white;
  padding: 14px 20px;
  border-left: 5px solid #ff6a00;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateX(100px);
  transition: 0.4s;
  z-index: 999;
}

/* 🔥 NOTIFICAÇÃO ATIVA */

#notificacao.mostrar {
  opacity: 1;
  transform: translateX(0);
}

/* ====================================================== */
/* 🗑️ BOTÃO LIMPAR CONCLUÍDAS */
/* ====================================================== */

#botao-limpar {
  margin-top: 15px;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(45deg, #ff1744, #ff5252);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

/* ✨ HOVER */

#botao-limpar:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(255, 23, 68, 0.5);
}
