/* Token Counter Online - Custom Styles */

/* Base font */
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Smooth transitions */
textarea,
select,
button {
  transition: all 0.2s ease;
}

/* Text area focus state */
textarea:focus {
  outline: none;
}

/* Button active state */
button:active {
  transform: scale(0.98);
}

/* Code blocks */
pre {
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Stats animation */
@keyframes countUp {
  from {
    opacity: 0.5;
    transform: translateY(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-updated {
  animation: countUp 0.2s ease-out;
}

/* Copy button success state */
.copy-success {
  background-color: #10B981 !important;
  color: white !important;
}

/* Loading indicator */
.loading {
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 12px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid #E5E7EB;
  border-top-color: #3B82F6;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .prose pre {
    font-size: 12px;
    padding: 12px;
  }
}

/* Print styles */
@media print {
  body {
    background: white;
  }

  .no-print {
    display: none;
  }
}
