/* GOOGLE FONT */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  background: linear-gradient(135deg, #fdfeff, #d6e0ff);
  padding: 16px;
  margin: 0;
}

/* Heading */
h2 {
  text-align: center;
  font-size: 26px;
  color: #292626;
  margin-bottom: 18px;
  text-shadow: 1px 1px 2px #646161;
}

/* INPUT AREA */
.input-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.input-box input,
.input-box button {
  width: 100%;
  max-width: 320px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #514f4f;
  font-size: 15px;
  outline: none;
}

.input-box button {
  background: linear-gradient(to right, #03b3f9, #10e2ed);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.input-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* DAYS CONTAINER */
.chart {
  overflow-x: hidden;
}

#days {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* DAY CARD */
.day {
  width: 160px;
  background: rgb(41, 147, 186);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.day:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.day h4 {
  margin: 0;
  padding: 10px;
  background: #eaf3fdf9;
  border-radius: 14px 14px 0 0;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  color: #2c3e50;
}

/* ROW */
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-top: 1px solid #eee;
  gap: 6px;
  font-size: 14px;
}

/* TICK */
.tick {
  cursor: pointer;
  font-weight: bold;
  font-size: 22px;
  transition: transform 0.2s;
}

.tick:hover {
  transform: scale(1.2);
}

.done {
  color: #0ef16c;
}

.not-done {
  color: #ae1504;
}

/* ACTION BUTTONS */
.actions {
  text-align: center;
  margin-bottom: 16px;
}

.actions button {
  padding: 12px 20px;
  margin: 6px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-size: 14px;
}

.reset {
  background: linear-gradient(to right, #f0540c, #e50c0c);
  color: white;
}

.ad {
  background: linear-gradient(to right, #016af4, #0594fa);
  color: white;
}

.refresh {
  background: linear-gradient(to right, #3241c2, #3a64c7);
  color: white;
}

.actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

/* EFFICIENCY */
.efficiency-box {
  max-width: 360px;
  margin: 20px auto;
  padding: 14px;
  background: white;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.efficiency-box h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

.progress-bar {
  width: 100%;
  height: 18px;
  background: #eee;
  border-radius: 12px;
  overflow: hidden;
}

#progressFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #27ae60, #2ecc71);
  transition: width 0.5s ease;
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(21, 20, 20, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  position: relative;
  background: white;
  padding: 18px;
  width: 92%;
  max-width: 360px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.modal-content input {
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 15px;
}

.modal-content button {
  padding: 10px 16px;
  margin: 6px;
  border-radius: 10px;
  font-weight: bold;
}

.modal-content .save {
  background: linear-gradient(to right, #27ae60, #2ecc71);
  color: white;
}

.modal-content .secondary {
  background: #bdc3c7;
  color: white;
}

.modal-content .close-btn {
  position: absolute;
  top: 10px;
  right: 14px;ccc
  font-size: 22px;
  cursor: pointer;
  color: #e74c3c;
}

/* 📱 MOBILE BREAKPOINT */
@media (max-width: 600px) {
  h2 {
    font-size: 22px;
  }

  .day {
    width: 100%;
    max-width: 320px;
  }

  .row {
    font-size: 13px;
  }

  .actions button {
    width: 90%;
    max-width: 260px;
  }
}
