
/* Geral */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: Verdana;
  color: #333;
}

body {
  background-image: url("../img/fundo2.jpg");
  background-position: center;
  background-size: cover;
}

/* Botões */
button {
  background-color: whitesmoke;
  color: #102f5e;
  border: 2px solid #102f5e;
  padding: 0.3rem 0.6rem;
  font-size: 1rem;
  cursor: pointer;

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

  transition: 0.4s;
}

button:hover {
  background-color: #102f5e;
}

button:hover > i {
  color: #fff;
}

button i {
  pointer-events: none;
  color: #102f5e;
  font-weight: bold;
  display: flex;
  align-items: center;
}

/* Inputs */
input,
select {
  padding: 0.4rem;
}

textarea {
  resize: none;
  width: 100%;
  border-radius: 5px;
  border: 2px solid black;
  margin-top: 10px;
  padding: 8px;
}

.hide {
  display: none !important;
}

#mensagem-vazia {
  text-align: center;
  padding: 20px;
  color: #888;
  font-style: italic;
  font-weight: bold;
}

/* Container principal */
.todo-container {
  max-width: 95vw;
  margin: 3rem auto;
  width: fit-content;
  background-color: #fdfdfd;
  padding: 2rem;
  border-radius: 15px;
  display: block;
  min-width: 600px;



}

/* Header */
.todo-container header {
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ccc;
}

/* Formulários */
#todo-form,
#edit-form {
  padding: 1rem 0;
  border-bottom: 1px solid #ccc;
}

#todo-form p,
#edit-form p {
  margin-bottom: 0.5rem;
  font-weight: bold;
}

/* Inputs e alinhamento de botões */
.form-control {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.form-control input {
  flex: 1;
}

/* Campo descrição */
.campo {
  margin-top: 10px;
}

/* Botão cancelar */
#cancel-edit-btn {
  margin-top: 0.5rem;
  color: #444;
}

/* Toolbar */
#toolbar {
  padding: 1rem 0;
  border-bottom: 1px solid #ccc;
  display: flex;
  justify-content: space-between;
}

#toolbar h4 {
  margin-bottom: 0.5rem;
}

/* Busca */
#search {
  border-right: 1px solid #ddd;
  padding-right: 1rem;
  margin-right: 1rem;
  width: 65%;
  display: flex;
  flex-direction: column;
}

#search form {
  display: flex;
  gap: 10px;
}

#search input {
  width: 100%;
  margin-right: 0.3rem;
}

/* Filtro */
#filter {
  width: 35%;
  display: flex;
  flex-direction: column;
}

#filter select {
  flex: 1;
}
/* Tabela */
.listartarefas td {
  white-space: normal;
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
  word-break: break-all;
  padding: 10px;
}

.listartarefas td button {
  margin-right: 6px;
  width: auto;
}

.list-table {
 margin-top: 20px;
 width: 100%;
}

.listartarefas {
  width: 100%;
  border-collapse:collapse;
  min-width: 500px;
  white-space: normal;
  overflow: visible;
  table-layout: auto;
  margin-left: 0;
}

.listartarefas th,
.listartarefas td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
  margin: 2px;
  font-size: 0.8rem;
  padding: 8px 4px;
}

.listartarefas td:last-child {
  display: flex;
  white-space: nowrap !important;
  text-align: center;
  min-width: 150px;
  width: auto;
  vertical-align: middle;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.listartarefas th {
  background-color: #f4f4f4;
}

.listartarefas td button {
  display: inline-flex;
  margin-right: 6px;
  width: auto;
}

/* Status concluído */
.concluido {
  color: #888;
}

.concluido td{
  text-decoration: line-through !important; 
}

.footer {
  text-align: center;
  padding: 20px;
  width: 100%;
  font-style: italic;
  font-size: 0.9rem;
}

footer p{
color: white;
font-weight: bold;
}