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

/* Google Icons */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  cursor: pointer;
  transition: transform 0.3s ease;
  height: 24px;
}

.material-symbols-outlined.folded {
  transform: rotate(180deg);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html, body {
  overflow-x: hidden;
  height: 100%;
}

a {
  text-decoration: none;
  color: black;
}

ul {
  list-style-type: none;
}

button {
  background-color: rgba(255, 255, 255, 0);
  border: none;
}

/* Mobile Styles */
@media screen and (max-width: 480px) {
  #container {
    height: 100%;
  }

  /* Navigation */
  #nav {
    margin: 0.4rem 0rem;
    overflow: hidden;
    position: relative;
    display: flex;
  }

  #category-icon {
    margin: 0 0.6rem;
    color: #ff66c45e;
  }

  #nav-list {
    display: flex;
    width: 100%;
    margin-bottom: 2rem;
    overflow-x: auto;
    justify-content: space-evenly;
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
  }

  #nav-list::-webkit-scrollbar {
    display: none;  /* Safari and Chrome */
  }
      

  .nav-itens {
    background-color: #ff66c4;
    color: white;
    border-radius: 1rem;
    margin-left: 0.3rem;
    padding: 0.2rem 1rem;
    font-size: .9rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
  }

  /* No Task Message */
  #no-task {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    font-size: 1.5rem;
  }

  #no-task h2 {
    margin: 0 auto;
    width: 80%;
    color: #d0d0d0;
  }

  /* Task Lists */
  #list-tasks {
    display: flex;
    flex-direction: column;
    margin: 1rem 2rem;
  }

  #list-tasks h1 {
    font-size: 1.3rem;
  }

  #task-today, #task-future, #task-concluded {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  #task-future, #task-concluded {
    margin-top: 1rem;
  }

  #task-concluded {
    margin-bottom: 10rem;
  }

  #check-list, #check-list-future, #check-list-concluded {
    width: 100%;
  }

  #check-list-concluded .check-itens {
    background-color: rgba(234, 234, 234, 0.758);
    color: #c0c0c0;
  }

  #check-list-concluded .iten-data {
    color: #ff66c476;
  }

  #check-list-concluded .checkmark {
    border: 2px solid #33333321;
  }

  .check-itens {
    display: flex;
    flex-direction: column;
    background-color: rgb(234, 234, 234);
    padding: 0.4rem 1rem;
    margin: 0.4rem 0;
    border-radius: 1rem;
  }

  .iten-text {
    display: flex;
    align-items: center;
  }

  .iten-text p {
    width: 85%;
  }

  .iten-data {
    margin-left: 1.7rem;
    font-size: 0.7rem;
    color: #ff66c4;
  }

  .iten-text 
  #delete-task {
    position: relative;
    top: 6px;
  }

  /* Checkbox Styles */
  .check-itens input {
    display: none;
  }

  .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    margin-right: 8px;
    cursor: pointer;
  }

  .checkmark.checked {
    background-color: #333;
    border-color: #333;
  }

  .checkmark.checked::after {
    content: "✔";
    font-size: 16px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  /* Add Task Button */
  #btn-add-task {
    width: 70px;
    height: 70px;
    position: fixed;
    bottom: 3rem;
    right: 2rem;
  }

  #btn-add-task img {
    width: 100%;
    height: 100%;
  }

  /* Footer */
  #footer-list {
    display: flex;
    justify-content: space-around;
    background-color: rgb(227, 227, 227);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
  }

  .footer-itens {
    padding: 0.3rem;
  }

  .footer-itens img {
    height: 30px;
    width: 30px;
  }

  /* Add Task Form */
  #add-task {
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
  }

  #add-task-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
  }

  #add-task-first {
    width: 100%;
    height: 100%;
    height: 100px;
    position: fixed;
    bottom: 0;
    border-radius: 1rem;
    background-color: white;
  }

  #add-task-first input {
    background-color: rgba(255, 255, 255, 0);
    height: 40px;
    border-radius: 1rem;
    border: 1px solid #333;
    padding: 0 1rem;
    margin-top: 0.5rem;
    width: 90%;
  }

  #add-task-buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 1rem;
  }

  #add-task-buttons-right {
    display: flex;
    gap: 1rem;
  }

  #add-task-buttons-right .form-button-categoria {
    width: 90px;
    font-size: 0.6rem;
    border-radius: 1rem;
    background-color: #ff66c4;
    padding: 1px 5px;
    color: white;
  }

  #add-task button {
    width: 30px;
    height: 30px;
  }

  .form-button-categoria {
    width: 50px;
  }

  #add-task-buttons img {
    width: 100%;
    height: 100%;
  }

  .selector-categoria {
    position: relative;
    display: inline-block;
  }

  .dropdown-select {
    padding: 100px;
    border: 1px solid #ccc;
    border-radius: 1rem;
    cursor: pointer;
  }

  .selector-categoria-options {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    z-index: 1;
    width: 11rem;
  }

  .selector-categoria-options div {
    padding: 0.5rem;
    cursor: pointer;
  }

  .selector-categoria-options div:hover {
    border-radius: 1rem;
    color: #ff66c4;
  }

  .selector-categoria.active .selector-categoria-options {
    display: block;
  }

  /* Task Date Selection */
  .overlay {
    background-color: rgba(0, 0, 0, 0.8);
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #add-task-data {
    display: flex;
    flex-direction: column;
    width: 80%;
    background-color: white;
    border-radius: 1rem;
    margin: 0 auto;
  }

  #add-task-data button img {
    width: 100%;
  }

  .hide {
    display: none;
  }

  #hide {
    display: none;
  }

  /* Edit Task */
  #edit-task {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 1rem;
    padding: 1rem;
    width: 80%;
    position: fixed;
    top: 7rem;
  }

  #edit-task input {
    font-weight: bold;
    font-size: 2rem;
    width: 100%;
    border: none;
    outline: none;
  }

  .line {
    height: 1px;
    background-color: #cacaca;
    width: 100%;
    margin: 0.2rem auto;
    margin-bottom: 1rem;
  }

  .categoria {
    display: flex;
    background-color: #ff66c4;
    color: white;
    border-radius: 1rem;
    padding: 2px 10px;
    width: 9rem;
    font-size: 0.8rem;
    text-align: center;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
  }

  .categoria button {
    color: white;
  }

  #edit-data {
    display: flex;
    align-items: center;
  }

  #edit-data button {
    display: flex;
    position: relative;
    left: 3rem;
    align-items: center;
    background-color: #cacaca;
    color: white;
    font-size: 0.7rem;
    border-radius: 1rem;
    padding: 0.3rem 0.5rem;
  }

  #edit-data img {
    width: 20px;
    height: 20px;
  }

  #edit-data a {
    width: 20px;
    height: 20px;
    margin-right: 0.2rem;
  }

  /* Calendar */
  #calendar {
    display: flex;
    width: 90%;
    height: 60%;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
  }

  .wrapper {
    max-width: 100%;
    max-height: 100%;
    background: #fff;
    border-radius: 1rem;
  }

  .wrapper header {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0.3rem;
    background-color: #ff66c4;
    color: white;
  }

  header .icons {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-evenly;
  }

  header .icons p {
    width: 150px;
  }

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

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

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

  .weeks {
    background-color: #d0d0d0;
    padding: 0.5rem 0.3rem;
  }

  .calendar {
    max-width: 100%;
    max-height: 100%;
  }

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

  .calendar .days {
    margin-top: 10px;
  }

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

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

  .days {
    height: 140px;
  }

  .calendar .days li {
    z-index: 1;
    cursor: pointer;
    position: relative;
    color: #2f2f2f;
  }

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

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

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

  .days li.active::before {
    background-color: #ababab;
  }

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

  /* Task Data Buttons */
  #add-task-data-buttons {
    display: flex;
    width: 80%;
    margin: 0 auto;
    justify-content: space-between;
    margin-bottom: 1rem;
  }

  /* menu */
  #menu-main {
    width: 100%;
    height: 100%;
  }
  
  #menu {
    height: 100%;
    background-color: #ffebf8f7;
    display: flex;
    flex-direction: column;
    color: rgb(41, 41, 41);
    height: 100%;
    width: 70%;
    position: fixed;
    left: 0;
    padding: 2.5rem 1rem;
    border-radius: 1rem;
  }

  #menu-content {
    background-color: #ffd1eef7;
    border-radius: 1rem;
    padding: 1rem;
  }

  #menu-title {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }


  #menu-title span {
    display: flex;
    gap: 0.3rem;
    align-items: center;
  }

  #menu-title h4 {
    font-size: 1.5rem;
  }

  #menu-list {
    flex-direction: column;
    padding: 0.6rem 0.3rem 0.5rem 2rem;
    font-size: 0.8rem;
  }

  #create-category-button {
    display: flex;
    color: #6a6a6a93;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.8rem;
  }

  .name-category {
    display: flex;
    align-items: center;
    gap: 0.2rem;
  }

  .menu-itens {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.3rem 0;
    justify-content: space-between;
    color: #434343;
  }

  .delete-category{
    color: #6a6a6a4a;
  }

   /* Create Category */
  #create-new-category {
    width: 100%;
    height: 100%;
  }

  #create-new-category form {
    width: 100%;
    align-items: center;
    width: 100%;
    height: 30%;
    display: flex;
    flex-direction: column;
    background-color: #ffebf8;
    z-index: 1000;
    position: fixed;
    bottom: 0;
  }

  #create-new-category label {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1rem;
    width: 100%;
  }

  #create-new-category input {
    background-color: white;
    height: 3.5rem;
    border-radius: 0.7rem;
    border: 1px solid #c6c6c6;
    text-align: left;
    padding: 0 1rem;
    width: 90%;
    outline: none;
  }

}