@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  background: #e9f7ef;
  color: #2c3e50;
  padding: 20px;
  margin: 0;
}

.container {
  max-width: 700px;
  margin: auto;
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

h1 {
  text-align: center;
  color: #27ae60;
  margin-bottom: 30px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

input[type="number"] {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  margin-bottom: 16px;
  border: 2px solid #2ecc71;
  border-radius: 8px;
}

button {
  background-color: #2ecc71;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #27ae60;
}

.hidden {
  display: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th {
  background-color: #2ecc71;
  color: white;
  padding: 12px 8px;
  text-transform: uppercase;
  font-size: 14px;
}

td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

td button {
  margin: 0 5px;
  font-size: 14px;
  padding: 5px 10px;
}

@media (max-width: 600px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }

  td, th {
    text-align: right;
    padding-left: 50%;
    position: relative;
  }

  td::before, th::before {
    position: absolute;
    left: 10px;
    width: 45%;
    white-space: nowrap;
    text-align: left;
    font-weight: bold;
  }

  tr {
    margin-bottom: 20px;
  }

  th:nth-of-type(1)::before { content: "Prayer"; }
  th:nth-of-type(2)::before { content: "Completed"; }
  th:nth-of-type(3)::before { content: "Actions"; }
  th:nth-of-type(4)::before { content: "Total Required"; }

  td:nth-of-type(1)::before { content: "Prayer"; }
  td:nth-of-type(2)::before { content: "Completed"; }
  td:nth-of-type(3)::before { content: "Actions"; }
  td:nth-of-type(4)::before { content: "Total Required"; }
}
