/* Reset e corpo */
body {
  font-family: Arial, sans-serif;
  margin: 20px;
  background: #180142;
  padding: 60px;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: white; /* ou a cor do seu fundo */
  z-index: -1; /* pra ficar na frente */
  padding: 10px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* opcional, sombra para destacar */
  text-align: center;
}

h1 {
  color: #fcfbfb;
  font-size: 150%;
  margin-bottom: 20px;
}

/* Container para formulários e filtros */
.form-container, .filters {
  background: #fff;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

/* Labels e inputs */
label {
  margin-right: 8px;
  font-weight: bold;
}

input[type="text"],
input[type="date"],
select {
  padding: 6px;
  margin-right: 15px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  min-width: 120px;
  box-sizing: border-box;
}

/* Botão */
button {
  padding: 8px 15px;
  background-color: #2d89ef;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #1b5fbd;
}

/* Tabela padrão (desktop) */
table {
  width: 100%;
  border-collapse: collapse;
  background: white; /* fundo branco no desktop */
  box-shadow: 0 0 8px #180142;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 20px;
}

/* Tabela em modo mobile */
@media (max-width: 600px) {
  table {
    background: #180142; /* fundo azul no mobile */
  }

  tbody tr {
    background: #180142; /* fundo azul para os blocos da tabela */
  }

  tbody tr td {
    color: rgb(5, 0, 0); /* deixa o texto branco para contraste */
  }

  /* Labels antes das células */
  tbody tr td::before {
    color: #180142;
    font-weight: bold;
  }
}


th, td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #2d89ef;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1;
}

/* Checkbox maior */
table td input[type="checkbox"] {
  transform: scale(1.5);
  cursor: pointer;
}

/* Gráfico */
#progressChart {
  width: 100% !important;
  max-width: 500px;
  height: 300px !important;
  margin: 30px auto;
  display: block;
}

/* Responsividade tabela para mobile */
@media (max-width: 600px) {
  table, thead, tbody {
    display: block;
    width: 100%;
  }

  thead {
    display: none; /* Oculta o cabeçalho */
  }

  tbody tr {
    display: flex;               /* linha flexível */
    flex-wrap: wrap;            /* se precisar, quebra linha */
    background: #fff;
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 0 8px #180142;
    border: 1px solid #180142;
  }

  tbody tr:hover {
    box-shadow: 0 0 12px #180142;
  }

  tbody tr td {
    flex: 1 1 18%;               /* ocupa 18% do espaço (5 colunas + espaço) */
    padding: 6px 8px;
    text-align: left;
    border: none;
    position: relative;
    min-width: 100px;
    box-sizing: border-box;
  }

  /* Labels (nomes das colunas) antes do conteúdo das células */
  tbody tr td:nth-of-type(1)::before { content: "Data: "; font-weight: bold; }
  tbody tr td:nth-of-type(2)::before { content: "Dia: "; font-weight: bold; }
  tbody tr td:nth-of-type(3)::before { content: "Matéria: "; font-weight: bold; }
  tbody tr td:nth-of-type(4)::before { content: "Horário: "; font-weight: bold; }
  tbody tr td:nth-of-type(5)::before { content: "Concluído: "; font-weight: bold; }

  /* Checkbox centralizado verticalmente */
  tbody tr td:nth-of-type(5) {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Checkbox maior */
  tbody tr td:nth-of-type(5) input[type="checkbox"] {
    transform: scale(1.5);
    cursor: pointer;
  }
}

#noteContainer {
  margin-top: 20px;
}

.note-btn {
  background-color: #4caf50;
  color: white;
  padding: 4px 8px;
  margin-right: 5px;
  border: none;
  cursor: pointer;
}

#backButton {
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #2196f3;
  color: white;
  border: none;
  cursor: pointer;
}

.delete-btn {
  background-color: #e74c3c;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-weight: bold;
  line-height: 0;
  font-size: 18px;
  margin-left: 6px;
  cursor: pointer;
  padding: 0;
  border: none;
}

.delete-btn:hover {
  background-color: #c0392b;
}

#deleteModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: white;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.modal-content p {
  margin-bottom: 20px;
  font-weight: bold;
}

.modal-content button {
  margin: 0 10px;
}

.delete-icon {
  background-color: #f7f2f1;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  margin-left: 8px;
  margin-right: 8px;
  cursor: pointer;
}

.delete-icon:hover {
  background-color: #ff1d04f5;
}
