* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* TOPO */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.esquerda p {
  font-size: 16px;
  color: rgb(255, 72, 0);
  font-weight: bold;
  padding: 3px;
}

.direita {
  display: flex;
  align-items: center;
  gap: 10px;
}

#criar-tarefas {
  background: black;
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  padding: 12px 20px;
  transition: background 0.3s;
}

#criar-tarefas:hover {
  background-color: rgba(0, 0, 0, 0.582);
}

#pesquisar {
  padding: 10px;
  border-radius: 50px;
  border: 1px solid #ccc;
  width: 200px;
}

/* CENTRO */
main{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  text-align: center;
}

#sem-tarefas{
  font-size: 17px;
  color: #555;
  margin-top: 14%;
}

/* COLUNAS */
.colunas-container{
  display: none;
  justify-content: space-between;
  margin-top: 20px; 
  gap: 30px;
}

.coluna-header {
  flex-shrink: 0;
}

.coluna{
  padding: 10px;
  width: 350px;
  height: 450px;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.coluna-conteudo {
  flex: 1;
  overflow-y: auto;
  padding-right: 5px;
  scroll-behavior: smooth;
}

/* Barra de rolagem delicada */
.coluna-conteudo::-webkit-scrollbar {
  width: 4px;
}

.coluna-conteudo::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 6px;
}

.coluna h2{
  font-size: 18px;
  text-align: left;
  margin-bottom: 10px;
}

hr{
  margin: 8px 0 12px 0;
  border: 1px solid black;
}

/* CARDS */
.card{
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  display: flex;
  text-align: left;
  justify-content: space-between;
  align-items: flex-start;
  overflow-wrap: break-word; 
  position: relative;
  border-bottom: 1px solid #e0e0e0;
}

.card h3{
  font-size: 16px;
}

.card p{
  font-size: 15px;
  color: #555;
  margin-bottom: 8px;
  margin-top: 5px;
  line-height: 1.4;
}

.card small {
  font-size: 12px;
  color: #777;
  align-self: flex-end;
}

/* MENU NO CARD */
.menu-btn{
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: black;
}

.menu-opcoes{
  position: absolute;
  background: rgb(243, 69, 0);
  border-radius: 6px;
  top: 23px;
  right: 0;
  z-index: 10;
}

.menu-opcoes button{
  display: block;
  padding: 4px 10px;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  color: white;
}

.menu-opcoes button:hover {
  background-color: rgb(245, 122, 74);
  border-radius: 6px;
}

.menu-container{
  position: relative;
}

/* FORMULÁRIO DE TAREFAS */
.oculto{
  display: none;
}

#form-novatarefa .campo{
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

#form-novatarefa{
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  padding: 20px;
  z-index: 2;
  border-radius: 10px;
  position: fixed;
  top: 20%;
  left: 31%;
  height: 380px;
  width: 520px;
}

#form-novatarefa.erro {
  height: 410px;
}

#form-novatarefa input,
#form-novatarefa textarea{
  border-radius: 5px;
  padding: 5px;
  margin-bottom: 10px;
}

#data{
  width: 26%;
  border: 1px solid #ccc;
}

label{
  font-size: 13px;
  font-weight: bold;
}

#descricao{
  height: 150px;
  margin-top: 5px;
  width: 100%;
}

.botoes {
  display: flex;
  justify-content: space-between;
}

#cancelar{
  padding: 6px;
  border-radius: 5px;
  font-weight: bold;
  background-color: white;
  border: 1px solid #ccc;
}

#salvar{
  padding: 6px;
  border-radius: 5px;
  border: none;
  font-weight: bold;
  background-color: rgb(243, 69, 0);
  color: white;
}

#titulo{
  font-size: 22px;
  border: none;
  width: 100%;
}

/* Modal de leitura */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6); 
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.oculto {
  display: none;
}

.modal-conteudo {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 400px;
  max-width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-conteudo h3 {
  margin: 0;
  font-size: 18px;
}

.modal-conteudo p {
  white-space: pre-wrap; 
  word-break: break-word;
}

.modal-conteudo small {
  color: #555;
  font-size: 12px;
}

.modal-conteudo .fechar {
  background: red;
  width: 28px;
  border-radius: 5px;
  padding: 1px;
  border: none;
  font-size: 18px;
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  color: white;
}