/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Outfit:wght@500&display=swap');

@font-face {
  font-family: 'ArialOnlyAt';
  src: local('Arial'), local('Helvetica'), sans-serif;
  unicode-range: U+0040;
  /* Only apply to @ symbol */
}

:root {
  --background: #f3f3f3;
  --foreground: #171717;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  /* Stack: Check ArialOnlyAt first (only matches @), then Space Mono, then monospace */
  font-family: 'ArialOnlyAt', 'Space Mono', monospace;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Utilities mimicking fw-front */
.font-space-mono {
  font-family: 'ArialOnlyAt', 'Space Mono', monospace;
}

.font-outfit {
  font-family: 'Outfit', sans-serif;
}

/* No longer needed but kept for compatibility logic if used explicitly */
.font-arial {
  font-family: Arial, sans-serif;
}

.btn-primary {
  height: 44px;
  padding: 0 1.5rem;
  background-color: #000000;
  color: #ffffff;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease-in-out, background-color 0.2s ease;
  min-width: 160px;
}

.btn-primary:hover {
  background-color: #333333;
  transform: translate(2px, 2px);
  box-shadow: none;
}

.btn-secondary {
  height: 44px;
  padding: 0 1.5rem;
  background-color: transparent;
  color: #171717;
  border: 2px solid #171717;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: transform 0.1s ease-in-out;
}

.btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transform: translate(2px, 2px);
}


/* Input Styling */
.input-field {
  width: 100%;
  height: 44px;
  padding: 0 1rem;
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  font-family: 'ArialOnlyAt', 'Space Mono', monospace;
  font-size: 1rem;
  color: #171717;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field:focus {
  border-color: #000000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* Glassmorphism / Card style */
.card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

.delay-100 {
  animation-delay: 100ms;
}

.delay-200 {
  animation-delay: 200ms;
}

.delay-300 {
  animation-delay: 300ms;
}

/* Counter style */
.counter-box {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
}

#claimForm {
  transition: height 0.3s ease-out;
}


/* Toast Notifications */
#toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  min-width: 300px;
  max-width: 400px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  gap: 12px;
  transform-origin: top center;
  animation: toast-enter 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.toast.error {
  border-left: 4px solid #ef4444;
}

.toast.success {
  border-left: 4px solid #22c55e;
}

.toast.leaving {
  animation: toast-leave 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.toast.error .toast-icon {
  background-color: #fee2e2;
  color: #ef4444;
}

.toast.success .toast-icon {
  background-color: #dcfce7;
  color: #16a34a;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #171717;
  margin-bottom: 2px;
}

.toast-message {
  font-size: 0.75rem;
  color: #525252;
  line-height: 1.4;
}

@keyframes toast-enter {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-leave {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
}

/* Stepper Styles */
.step-item.active .bg-gray-200 {
  background-color: #000000;
  color: #ffffff;
}

.step-item.active span {
  color: #000000;
}

.step-item.completed .bg-gray-200 {
  background-color: #000000;
  color: #ffffff;
}

/* OTP Input Styles */
.otp-input {
  width: 40px;
  height: 50px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 20px;
  text-align: center;
  outline: none;
  transition: all 0.2s ease;
  background: white;
  color: #171717;
}

.otp-input:focus {
  border-color: #000000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}



.step-content.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  position: relative;
}

.step-content.inactive-left {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-20px);
  position: absolute;
}

.step-content.inactive-right {
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
  position: absolute;
}