/* Estilo geral */
body, .task-item span, select {
  font-family: 'Segoe UI', Tahoma, sans-serif;
}

.checklist-window {
  position: fixed;
  top: 50px;
  right: 50px;
  width: 280px;
  min-width: 250px;
  max-width: 90vw;

  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);

  display: flex;
  flex-direction: column;

  animation: floatIn 0.3s ease-out;

  overflow-x: auto;     /* apenas horizontal */
  overflow-y: hidden;
  resize: horizontal;   /* só largura */
  z-index: 1000;
}



/* Animação de entrada */
@keyframes floatIn {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Cabeçalho */
.header {
  cursor: move;
  background-color: #007bff;
  color: #fff;
  padding: 0.5rem;
  font-weight: bold;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Barra de progresso */
.progress-info {
  font-size: 0.9rem;
  color: #333;
  margin: 0.5rem;
  font-weight: 500;
}

.progress-info.hidden,
.task-content.hidden {
  display: none;
}

/* Lista de tarefas */
.task-content {
  padding: 0.5rem;
  overflow-y: auto;
  flex: 1;
}

.task-content::-webkit-scrollbar {
  width: 6px;
}
.task-content::-webkit-scrollbar-thumb {
  background-color: #adb5bd;
  border-radius: 3px;
}
.task-content::-webkit-scrollbar-track {
  background-color: #f1f3f5;
}

.task-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid #e9ecef;
}

.task-item:last-child {
  border-bottom: none;
}

.task-item select {
  background-color: #fff;
  border: 1px solid #ced4da;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Cores por status */
.task-item select[value="Completed"] {
  background-color: #d4edda;
  color: #155724;
}

.task-item select[value="Pending"] {
  background-color: #fff3cd;
  color: #856404;
}

.task-item select[value="Skipped"] {
  background-color: #f8d7da;
  color: #721c24;
}

/* Rodapé de botões */
.buttons-bottom {
  display: flex;
  gap: 4px;
  padding: 0.5rem;
  border-top: 1px solid #dee2e6;
  background: #f8f9fa;
}

.mark-all-btn,
.reset-btn {
  flex: 1;
  font-size: 0.85rem;
  padding: 0.4rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.mark-all-btn {
  background-color: #28a745;
  color: white;
}

.mark-all-btn:hover {
  background-color: #218838;
}

.reset-btn {
  background-color: #dc3545;
  color: white;
}

.reset-btn:hover {
  background-color: #c82333;
}
.toggle-completed {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  margin: 0.3rem 0.8rem;
  gap: 6px;
  color: #333;
  user-select: none;
}
.toggle-completed input {
  transform: scale(1.1);
  cursor: pointer;
}

.task-content {
  max-height: 600px; /* ou o valor que desejar */ 
  overflow-y: auto;
  padding-right: 5px;
  margin-top: 8px;
}
