body {
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    margin: 0;
    padding: 0;
}


.summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.summary-card {
  flex: 1 1 150px;
  text-align: center;
}


@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  .filters {
    flex-direction: column;
    align-items: center;
  }

  .filter-btn {
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
  }

  .card-header h3 {
    font-size: 1rem;
  }

  .card-footer {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
  }
}


.modal-content {
  width: 90%;
  max-width: 500px;
  margin: auto;
}




.container {
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.form input, .form textarea, .form select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

.form button {
    padding: 10px;
    border: none;
    background: #007bff;
    color: white;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form button:hover {
    background: #0056b3;
}

/* Lista de tarefas */
ul.tarefas {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Card */
.card {
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-left: 8px solid transparent;
}

.card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 10px 20px rgba(0,0,0,0.18);
}

/* Cabeçalho */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
    background: #f1f5f9;
}

.card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #222;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Badge de status */
.status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    text-transform: capitalize;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Cores dos status */
.status.aguardando { background: #e0e0e0; color: #555; }
.status.andamento { background: #ffe0b2; color: #d35400; }
.status.atrasada { background: #ffcdd2; color: #c62828; }
.status.done { background: #c8e6c9; color: #2e7d32; }

/* Fundos diferenciados */
.card.aguardando { background: linear-gradient(135deg, #f5f5f5, #fafafa); border-left-color: #9e9e9e; }
.card.andamento { background: linear-gradient(135deg, #fff3e0, #ffe0b2); border-left-color: #ff9800; }
.card.atrasada { background: linear-gradient(135deg, #ffebee, #ffcdd2); border-left-color: #e53935; }
.card.done { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); border-left-color: #2e7d32; }

/* Corpo do card */
.card-body {
    padding: 16px 18px;
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

/* Rodapé */
.card-footer {
    padding: 12px 18px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

/* Botões */
.btn {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: bold;
}

.btn.edit {
    background: #007bff;
    color: #fff;
}

.btn.edit:hover {
    background: #0056b3;
    transform: scale(1.05);
}

.btn.delete {
    background: #e53935;
    color: #fff;
}

.btn.delete:hover {
    background: #b71c1c;
    transform: scale(1.05);
}

.btn.add {
    background: #28a745;
    color: #fff;
    font-size: 16px;
    padding: 10px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    margin-bottom: 20px;
}

.btn.add:hover {
    background: #218838;
}

/* Barra de progresso */
.progress {
    background: #eee;
    border-radius: 8px;
    overflow: hidden;
    height: 18px;
    margin-top: 10px;
}

.progress-bar {
    height: 100%;
    text-align: center;
    font-size: 12px;
    color: #fff;
    font-weight: bold;
    line-height: 18px;
    transition: width 0.4s ease;
}

/* Cores da barra */
.progress-bar.aguardando { background: #9e9e9e; }
.progress-bar.andamento { background: #ff9800; }
.progress-bar.atrasada { background: #e53935; }
.progress-bar.done { background: #2e7d32; }

/* Modal */
.modal {
    display: none; /* escondido por padrão */
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    animation: fadeIn 0.3s ease;
}

.close {
    float: right;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    color: #555;
}

.close:hover {
    color: #000;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}




/* Container dos filtros */
.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Botões de filtro base */
.filter-btn {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Cores por status */
.filter-btn[href*="pendente"] {
    background: #e0e0e0;
    color: #555;
}
.filter-btn[href*="concluída"] {
    background: #c8e6c9;
    color: #2e7d32;
}
.filter-btn[href*="andamento"] {
    background: #ffe0b2;
    color: #d35400;
}
.filter-btn[href*="atrasada"] {
    background: #ffcdd2;
    color: #c62828;
}
.filter-btn[href="index.php"] {
    background: #f1f1f1;
    color: #333;
}

/* Hover */
.filter-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}



/* Estado ativo do filtro */
.filter-btn.active {
    border: 2px solid #333;
    transform: scale(1.08);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}


.filter-btn.active[href*="pendente"] {
    background: #bdbdbd;
    color: #222;
}
.filter-btn.active[href*="concluída"] {
    background: #81c784;
    color: #1b5e20;
}
.filter-btn.active[href*="andamento"] {
    background: #ffb74d;
    color: #e65100;
}
.filter-btn.active[href*="atrasada"] {
    background: #e57373;
    color: #b71c1c;
}
.filter-btn.active[href="index.php"] {
    background: #ccc;
    color: #111;
}

/* Badge de status do banco (pendente/concluída) */
.status.pendente {
    background: #e0e0e0;
    color: #333;
    border: 2px solid #9e9e9e;
}

.status.done {
    background: #c8e6c9;
    color: #2e7d32;
    border: 2px solid #2e7d32;
}

/* Badge de situação temporal (aguardando/andamento/atrasada) */
.status.aguardando {
    background: #f5f5f5;
    color: #555;
    border: 1px dashed #9e9e9e;
}

.status.andamento {
    background: #ffe0b2;
    color: #d35400;
    border: 1px dashed #ff9800;
}

.status.atrasada {
    background: #ffcdd2;
    color: #c62828;
    border: 1px dashed #e53935;
}

/* Ajuste para exibir dois badges lado a lado */
.card-header div {
    display: flex;
    gap: 6px;
}






.summary {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.summary-card {
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    min-width: 150px;
    text-align: center;
}

/* Cores iguais aos cards */
.summary-card.pendente { background: #9e9e9e; }
.summary-card.andamento { background: #ff9800; }
.summary-card.atrasada { background: #e53935; }
.summary-card.done { background: #2e7d32; }



/* Badge de prioridade */
.prioridade {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Diferenciar por prioridade */
.prioridade-alta {
    background: #ffebee;
    color: #c62828;
    border: 2px solid #c62828;
}

.prioridade-media {
    background: #fff3e0;
    color: #e65100;
    border: 2px solid #e65100;
}

.prioridade-baixa {
    background: #e0f7fa;
    color: #006064;
    border: 2px solid #006064;
}
