/* css/style.css */

/* Base body adjustments for a native app feel */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overscroll-behavior-y: none; /* Prevents pull-to-refresh bounce on mobile */
  -webkit-tap-highlight-color: transparent; /* Removes blue tap highlight on iOS */
}

/* Card refinements */
.card {
  border: none;
  border-radius: 1rem;
  transition: transform 0.2s ease-in-out;
}

/* Category dropdown styling */
#category-select {
  border-radius: 20px;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  font-weight: 500;
  color: #495057;
  cursor: pointer;
}

#category-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Speaker button hover effect */
#speak-btn {
  transition: all 0.2s;
}

#speak-btn:hover, #speak-btn:active {
  background-color: #f8f9fa;
  transform: scale(1.05);
}

/* Practice input area */
#practice-input {
  resize: none;
  border-radius: 0.75rem;
}

#practice-input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* Grade button */
#grade-btn {
  border-radius: 0.75rem;
  padding: 0.75rem;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

/* Feedback box animation */
#feedback-box {
  animation: fadeIn 0.3s ease-in-out;
  border-radius: 0.5rem;
  font-size: 0.95rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}