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

.flashcard-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.text-area {
  width: 100%;
  min-height: 200px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 1rem;
  color: var(--color-text-creamy);
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
}

.text-area:focus {
  outline: none;
  border-color: var(--color-accent);
}

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

.file-input {
  display: none;
}

.file-input-label {
  background: var(--color-sidebar);
  color: var(--color-text-creamy);
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.file-input-label:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-accent);
}

.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: 4px;
  outline: none;
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  transition: transform 0.1s;
}

.slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

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

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

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

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

.success-message {
  color: #7ee787;
  text-align: center;
  font-weight: 700;
  margin-top: 1rem;
  animation: fadeIn 0.5s ease-out;
}

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

.radio-item {
  position: relative;
  flex: 1;
  min-width: 100px;
}

.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: 600;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

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

.radio-item:hover .radio-label:not(.radio-item input[type="radio"]:checked + .radio-label) {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

/* Animations for selection */
.radio-item input[type="radio"]:checked + .radio-label {
  animation: selectBounce 0.3s ease-out;
}

@keyframes selectBounce {
  0% { transform: scale(0.95); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}
