/* FONT */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* BODY */
body {
  background: #f6f5ef;
  color: #222;
  min-height: 100vh;
}

/* HEADER */
header {
  padding: 15px 20px;
  background-color: #f4c430;
}

header h1 {
  font-size: 20px;
  font-weight: 700;
}

nav {
  margin-top: 5px;
}

nav a {
  text-decoration: none;
  margin-right: 15px;
  color: #272626;
  font-size: 14px;
}

nav a:hover {
  background-color: black;
  color: #f4c430;
  padding: 8px;
  border-radius: 10px;
}

/* MAIN */
.container {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

/* CALENDAR */
.calendar {
  margin-bottom: 20px;
}

/* CALENDAR HEADER (buttons + month) */
.calendar div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* FIX BUTTON SIZE */
.calendar button {
  width: 35px;
  height: 35px;
  padding: 0;
  border-radius: 8px;
  font-size: 18px;
  background: #f4c430;
  border: none;
  cursor: pointer;
}

/* MONTH TEXT */
.calendar h2 {
  flex: 1;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
}

/* DAYS GRID */
#calendarDates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 10px;
}

#calendarDates div {
  padding: 12px;
  text-align: center;
  border-radius: 10px;
  font-size: 14px;
  background-color: #b4adad65;
  transition: 0.2s;
}

/* ACTIVE DATE */
#calendarDates div.active {
  background: #f4c430;
  color: black;
  font-weight: 600;
  transform: scale(1.1);
}

/* HOVER */
#calendarDates div:hover {
  background: #f4c430;
  cursor: pointer;
}

/* EVENTS */
.events {
  background: #b4adad65;
  border-radius: 20px;
  padding: 20px;
}

.events h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

/* TASK LIST */
.events ul {
  list-style: none;
}

.events li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 15px;
}

/* CHECKBOX */
.events li input {
  width: 18px;
  height: 18px;
}

/* COMPLETED TASK */
.events li.completed {
  text-decoration: line-through;
  color: #999;
}

/* TASK PAGE */
.task-container {
  max-width: 500px;
  margin: 30px auto;
  padding: 20px;
}

/* INPUT */
input {
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: white;
  font-size: 14px;
}

/* BUTTON (GENERAL) */
button {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: #f4c430;
  color: black;
  font-weight: 600;
  cursor: pointer;
}

/* TASK LIST */
#taskList li {
  background: white;
  padding: 12px;
  border-radius: 12px;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

/* DELETE BUTTON */
#taskList button {
  background: #ff4d4d;
  color: white;
  padding: 6px 10px;
  font-size: 12px;
  width: auto;
}

/* 📱 MOBILE */
@media (max-width: 768px) {

  body {
    padding: 10px;
  }

  header {
    padding: 10px;
  }

  header h1 {
    font-size: 18px;
  }

  nav a {
    font-size: 13px;
    margin-right: 10px;
  }

  .container {
    padding: 10px;
    gap: 15px;
  }

  .calendar {
    background: #fff;
    padding: 15px;
    border-radius: 18px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  }

  .calendar h2 {
    font-size: 16px;
  }

  #calendarDates div {
    padding: 10px;
    font-size: 13px;
  }

  .events {
    background: #fff;
    padding: 15px;
    border-radius: 18px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  }

  .events li {
    background: #f9f9f9;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
  }

  input {
    font-size: 16px;
    padding: 16px;
  }

  button {
    font-size: 16px;
    padding: 16px;
  }

  /* KEEP CALENDAR BUTTON SMALL IN MOBILE */
  .calendar button {
    width: 35px !important;
    height: 35px !important;
    padding: 0 !important;
    font-size: 16px;
  }
}