.flashcard-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  animation: slideUp 0.5s ease-out;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.flashcard-title {
  font-size: 2.5rem;
}

.flashcard-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  text-align: left;
}

.input-group label {
  font-weight: 700;
  color: var(--color-text-creamy);
}

.selection-meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.4rem;
}

.slider-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.slider-input {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 999px;
  outline: none;
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f4f5f5;
  border: 2px solid rgba(var(--color-accent-rgb), 0.9);
  box-shadow: 0 6px 16px rgba(var(--color-accent-rgb), 0.35);
  cursor: pointer;
}

.amount-display {
  font-weight: 700;
  color: var(--color-accent);
  min-width: 44px;
  text-align: right;
  font-size: 1.1rem;
}

.flashcard-error {
  color: #ff9c96;
  margin-top: 1rem;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.28);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  width: fit-content;
  overflow: hidden;
  gap: 4px;
}

.radio-item {
  position: relative;
  min-width: 120px;
}

.radio-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.radio-item input[type="radio"]:checked + .radio-label {
  background: var(--color-accent);
  color: #012f3b;
  box-shadow: 0 4px 12px rgba(var(--color-accent-rgb), 0.35);
}

.radio-item:hover .radio-label {
  color: rgba(255, 255, 255, 0.92);
}

.spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  gap: 1rem;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.12);
  border-left-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.flashcard-result-panel {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 1.5rem;
  text-align: left;
}

.flashcard-result-panel h3 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.94);
}

.flashcard-result-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.flashcard-result-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.flashcard-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
}

.flashcard-result-header span {
  color: rgba(255, 255, 255, 0.72);
}

.flashcard-result-meta {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 720px) {
  .flashcard-form {
    padding: 1.2rem;
  }

  .flashcard-result-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
