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

.wrapper {
      width: 500px;
      background: #fff;
      border-radius: 15px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
      overflow: hidden;
    }

    header {
      padding: 20px;
      background: linear-gradient(90deg, #6a11cb, #2575fc);
      color: #fff;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    header .current-date {
      font-size: 1.5rem;
      font-weight: 600;
    }

    header .icons span {
      font-size: 1.8rem;
      cursor: pointer;
      margin: 0 10px;
      color: #fff;
      transition: transform 0.2s;
    }

    header .icons span:hover {
      transform: scale(1.2);
    }

    .calendar {
      padding: 20px;
    }

    .calendar ul {
      list-style: none;
      padding: 0;
      margin: 0;
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 10px;
    }

    .calendar .weeks li {
      font-weight: 600;
      color: #6a11cb;
      text-align: center;
    }

    .calendar .days li {
      background: #f4f4f4;
      padding: 10px;
      border-radius: 50%;
      text-align: center;
      transition: all 0.3s;
      cursor: pointer;
    }

    .calendar .days li:hover {
      background: #6a11cb;
      color: #fff;
      transform: scale(1.1);
    }

    .calendar .days li.active {
      background: #2575fc;
      color: #fff;
      font-weight: bold;
    }

    /* Modal styles */
    #tasksModal {
      display: none;
      position: fixed;
      top: 0;
      left: 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: 10px;
      width: 400px;
      text-align: center;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .modal-content h2 {
      margin: 0 0 15px;
      font-size: 1.5rem;
      color: #6a11cb;
    }

    .modal-content input {
      width: calc(100% - 40px);
      padding: 10px;
      margin: 10px 0;
      border: 1px solid #ddd;
      border-radius: 5px;
    }

    .modal-content button {
      padding: 10px 20px;
      background: #6a11cb;
      color: #fff;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      transition: background 0.3s;
    }

    .modal-content button:hover {
      background: #2575fc;
    }
  /* margin: auto; */
  height: 70%;
  width: 60%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.content {
  padding: 10px;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 500px){
  .wrapper {
    width: 100%;
  }
}

/* Dark mode styles */


.wrapper header {
  display: flex;
  align-items: center;
  padding: 25px 30px 10px;
  justify-content: space-between;
}

.dark-mode header .icons span {
  color: #ccc;
}

header .icons {
  display: flex;
}

header .icons span {
  height: 38px;
  width: 38px;
  margin: 0 1px;
  cursor: pointer;
  color: #878787;
  text-align: center;
  line-height: 38px;
  font-size: 1.9rem;
  user-select: none;
  border-radius: 50%;
}

.icons span:last-child {
  margin-right: -10px;
}

header .icons span:hover {
  background: #f2f2f2;
}

.dark-mode header .icons span:hover {
  background: #333;
}

header .current-date {
  font-size: 1.45rem;
  font-weight: 500;
}

.dark-mode header .current-date {
  color: #ccc;
}

.calendar {
  padding: 20px;
}

.dark-mode .calendar {
  background: whitesmoke;
  color: #0b0202;
}

.calendar ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  text-align: center;
}

.calendar .days {
  margin-bottom: 20px;
}

.calendar li {
  color: #333;
  width: calc(100% / 7);
  font-size: 1.07rem;
}

.dark-mode .calendar li {
  color: #ccc;
}

.calendar .weeks li {
  font-weight: 500;
  cursor: default;
}

.calendar .days li {
  z-index: 1;
  cursor: pointer;
  position: relative;
  margin-top: 30px;
}

.days li.inactive {
  color: #aaa;
}

.dark-mode .days li.inactive {
  color: #555;
}

.days li.active {
  color: #fff;
}

.dark-mode .days li.active {
  color: #fff;
}

.days li::before {
  position: absolute;
  content: "";
  left: 50%;
  top: 50%;
  height: 40px;
  width: 40px;
  z-index: -1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.days li.active::before {
  background: #9B59B6;
}

.dark-mode .days li.active::before {
  background: #9B59B6;
}

.days li:not(.active):hover::before {
  background: #f2f2f2;
}

.dark-mode .days li:not(.active):hover::before {
  background: #fff;
}
.dark-mode .wrapper{
  
    margin: auto;
    width: 450px;
    background: #555;
    border-radius: 10px;
    box-shadow: -3px 2px 13px 9px #ccc;

}
