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

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

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  font-family: "Inter", sans-serif;
  padding: 1rem;
}

.container {
  background: #1e293b;
  border-radius: 16px;
  padding: 1.5rem;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

h1 {
  font-size: 18px;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 4px;
}

textarea {
  width: 100%;
  height: 140px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 12px 14px;
  color: #e2e8f0;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  resize: none;
  outline: none;
  line-height: 1.6;
  transition: border-color 0.2s;
}

textarea::placeholder {
  color: #475569;
}

textarea:focus {
  border-color: #3b82f6;
}

#clear-all {
  width: 100%;
  padding: 11px;
  background: #3b82f6;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition: background 0.2s;
}

#clear-all:hover {
  background: #2563eb;
}

#clear-all:active {
  background: #1d4ed8;
}

.cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

#quantity-word,
#quantity-caracters,
#number-of-spaces {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 16px 10px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  cursor: default;
  transition: border-color 0.2s;
  word-break: break-word;
}

#quantity-word:hover,
#quantity-caracters:hover,
#number-of-spaces:hover {
  border-color: #3b82f6;
}

/* Tablet */
@media (max-width: 600px) {
  .container {
    padding: 1.25rem;
    border-radius: 12px;
  }

  h1 {
    font-size: 16px;
  }

  textarea {
    height: 120px;
    font-size: 14px;
  }

  #quantity-word,
  #quantity-caracters,
  #number-of-spaces {
    font-size: 11px;
    padding: 14px 6px;
  }
}

/* Mobile pequeno */
@media (max-width: 360px) {
  .container {
    padding: 1rem;
  }

  h1 {
    font-size: 15px;
  }

  .cards-row {
    gap: 6px;
  }

  #quantity-word,
  #quantity-caracters,
  #number-of-spaces {
    font-size: 10px;
    padding: 12px 4px;
    border-radius: 8px;
  }

  #clear-all {
    font-size: 13px;
    padding: 10px;
  }
}
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

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

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  font-family: "Inter", sans-serif;
  padding: 1rem;
}

.container {
  background: #1e293b;
  border-radius: 16px;
  padding: 1.5rem;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

h1 {
  font-size: clamp(15px, 4vw, 18px);
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

textarea {
  width: 100%;
  height: clamp(120px, 25vw, 140px);
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 12px 14px;
  color: #e2e8f0;
  font-size: clamp(13px, 3.5vw, 14px);
  font-family: "Inter", sans-serif;
  resize: none;
  outline: none;
  line-height: 1.6;
  transition: border-color 0.2s;
}

textarea::placeholder {
  color: #475569;
}

textarea:focus {
  border-color: #3b82f6;
}

#clear-all {
  width: 100%;
  padding: 11px;
  background: #3b82f6;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: clamp(13px, 3.5vw, 14px);
  font-weight: 600;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition: background 0.2s;
}

#clear-all:hover {
  background: #2563eb;
}

#clear-all:active {
  background: #1d4ed8;
}

.cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

#quantity-word,
#quantity-caracters,
#number-of-spaces {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: clamp(12px, 3vw, 16px) 8px;
  color: #94a3b8;
  font-size: clamp(10px, 2.5vw, 12px);
  font-weight: 500;
  text-align: center;
  cursor: default;
  transition: border-color 0.2s;
  word-break: break-word;
}

#quantity-word:hover,
#quantity-caracters:hover,
#number-of-spaces:hover {
  border-color: #3b82f6;
}

@media (max-width: 360px) {
  .container {
    padding: 1rem;
    border-radius: 12px;
  }

  .cards-row {
    grid-template-columns: 1fr;
  }
}
