body {
  font-family: 'Segoe UI', "Brush Script MT", sans-serif; /* Example font stack */
  /* Use your own image URL or a local file */
  background-image: url('nan.jpg');
  background-size: cover;      /* Cover the whole background */
  background-repeat: no-repeat;
  background-position: center center;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}
.container {
  max-width: 500px;
  margin: 40px auto;
  background: rgba(255, 255, 255, 0.2); /* 0.8 = 80% opaque */
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 30px 20px;
}
h1 {
  text-align: center;
  color: #333;
}
#calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 20px;
}
.calendar-header {
  grid-column: span 7;
  text-align: center;
  margin-bottom: 10px;
}
.day-name, .calendar-day {
  text-align: center;
  padding: 8px 0;
}
.day-name {
  font-weight: bold;
  background: #e9ecef;
}
.calendar-day {
  background: #f1f3f4;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}
.calendar-day.today {
  background: #007bff;
  color: #fff;
  font-weight: bold;
}
.calendar-day.has-tasks::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: #28a745;
  border-radius: 50%;
  position: absolute;
  bottom: 6px;
  right: 6px;
}
.calendar-day:hover {
  background: #d0e7ff;
}
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0; top: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.3);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.close {
  position: absolute;
  top: 8px; right: 12px;
  font-size: 22px;
  cursor: pointer;
  color: #888;
}
.task-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.task-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f3f4;
  margin-bottom: 8px;
  padding: 8px 12px;
  border-radius: 4px;
}
.task-list li.completed {
  text-decoration: line-through;
  color: #888;
}
input[type="text"] {
  padding: 8px;
  width: 70%;
  margin-right: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
button.add-btn {
  padding: 8px 14px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
button.delete-btn {
  background: #dc3545;
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 4px 8px;
  cursor: pointer;
}
@media (max-width: 600px) {
  .container {
    padding: 10px 2px;
  }
  .modal-content {
    padding: 10px;
  }
}