@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

/* .inter-<uniquifier> {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
  }
   */

:root {
  --primary-color: #ffffff; /* Cor primária */
  --secondary-color: #000000; /* Cor secundária */
  --tercenary-color: #f2f3f8; /* Cor secundária */
}

body {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.container {
  font-family: "Inter", sans-serif;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100dvh;
  box-sizing: border-box;
  z-index: 2;
  z-index: 10;
}

.navbar {
  font-family: "Inter", sans-serif;
  width: 100%;
  height: 8%;
  display: flex;
  align-items: center;
  background-color: white;
  justify-content: space-between;
  padding-left: 3rem;
  padding-right: 3rem;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(124, 124, 124, 0.185);

  h1 {
    font-weight: 700;
  }

  .buttons {
    font-family: "Inter", sans-serif;
    font-weight: 550;
    display: flex;
    gap: 8px;

    button {
      border: none;
      outline: none;
      border-radius: 6px;
    }

    .addNote {
      color: white;
      background-color: #898ffc;
      padding: 10px;
    }
    .toogleColor {
      width: 50px;
    }
  }
}

.content {
  padding-top: 15px;
  width: 100%;
  min-height: 100vh;
  padding: 28px;
  display: grid;
  gap: 24px;
  background-color: #f2f3f8;
  grid-template-columns: repeat(4, 1fr);
  box-sizing: border-box;

  .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-origin: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
      0 2px 4px -1px rgba(0, 0, 0, 0.06);
    height: 28rem;
    background-color: white;
    border-radius: 15px;
    padding: 2vw;
    display: flex;
    flex-direction: column;
    gap: 18px;

    .title {
      font-size: 1.4vw;
      font-weight: 560;
    }

    .description {
      font-size: 100%;
      position: relative;
      text-align: justify;
      flex-wrap: wrap;
      word-wrap: break-word;
      overflow-wrap: break-word;
      max-width: 100%;
      white-space: pre-wrap;
      color: rgba(0, 0, 0, 0.753);
    }

    .option {
        position: absolute;
        top: 1.5rem;
        right: 1rem;
      visibility: hidden;
      transition: visibility 0.2s ease;
      display: flex;
      gap: 8px;

      button {
        border: none;
        background-color: transparent;
        font-size: 16px;
      }
    }
  }
}

.card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card:hover .option {
  visibility: visible;
}

.addNoteContainer {
  position: fixed;
  top: 0;
  font-family: "Inter", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  min-height: 100vh;
  z-index: 20;
  background-color: rgba(70, 68, 68, 0.068);
  backdrop-filter: blur(8px);
  visibility: hidden; /* Oculta o container, mas mantém o espaço */

  .card-note {
    position: relative;
    overflow: hidden;
    width: 35rem;
    height: 30rem;
    background-color: white;
    border-radius: 10px;
    padding: 2rem;

    .header {
      font-size: 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: -1rem;

      button {
        background-color: transparent;
        border: none;
        outline: none;
        cursor: pointer;
      }

      #closed {
        font-size: 1.5rem;
      }
    }

    .title {
        margin-top: 1rem;
      font-size: 16px;
      font-weight: 500;
      display: flex;
      flex-direction: column;
      font-family: "Inter", sans-serif;

      input {
        outline: none;
        height: 2rem;
        padding: 1rem;
        border-radius: 10px;
        border: 1px solid #ccc;
        transition: border-color 0.3s ease;
      }

      input:focus {
        border: 2px solid #8e90fd;
      }
    }

    .description {
      font-size: 16px;
      font-weight: 500;
      display: flex;
      flex-direction: column;
      font-family: "Inter", sans-serif;

      textarea {
        position: relative;
        flex-wrap: wrap;
        height: 6rem;
        outline: none;
        border-radius: 10px;
        padding: 1rem;
        border: 1px solid #ccc;
        transition: border-color 0.3s ease;
        resize: none;
      }

      textarea:focus {
        border: 2px solid #8e90fd;
      }
    }

    .buttons {
      display: flex;
      justify-content: end;
      align-items: center;
      margin-top: 2.5rem;
      gap: 1rem;

      button {
        font-family: "Inter", sans-serif;
        width: 30%;
        height: 3rem;
        border-radius: 10px;
        border: none;
        outline: none;
        cursor: pointer;
        font-weight: 500;

        &:nth-child(2) {
          background-color: #8e90fd;
          color: white;
        }
      }
    }
  }
}

.addNotee {
    width: 30%;
    color: white;
        height: 3rem;
        border-radius: 10px;
        border: none;
        outline: none;
        cursor: pointer;
        font-weight: 500;
    background-color: #8e90fd;
}

@media (max-width: 1280px) {
  .content {
    grid-template-columns: repeat(3, 1fr);

    .card {
        padding: 24px;

        .title {
            font-size: 1.8vw; 
        }
      .description {
        font-size: 1.5vw;
      }
    }
  }
}

/* Tablet pequeno / celular grande (até 768px): 2 colunas */
@media (max-width: 768px) {
  .content {
    grid-template-columns: repeat(2, 1fr);

    .card {
      padding: 20px;

      .title {
        font-size: 3vw;
      }
      .description {
        font-size: 1.5vh;
      }
    }
  }
}

/* Celular (até 480px): 1 coluna */
@media (max-width: 480px) {
  .content {
    grid-template-columns: 1fr;

    .card {
      padding: 20px;

      .title {
        font-size: 4.5vw;
      }
      .description {
        font-size: 16px;
      }
    }
  }
}
