.calculator-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.calculator-card:hover {
  border-color: color-mix(in srgb, var(--primary) 20%, transparent);
  background: var(--accent);
  box-shadow: var(--shadow-sm);
}

.calculator-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--primary) 5%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: background 0.2s;
}

.calculator-card:hover .calculator-card-icon {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.calculator-card-content {
  flex: 1;
}

.calculator-card-name {
  font-weight: var(--font-weight-medium);
  color: var(--foreground);
}

.calculator-card-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.calculator-card-arrow {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.calculator-card:hover .calculator-card-arrow {
  opacity: 1;
}


/* Custom reusable slider */
.slider {
  -webkit-appearance: none;
  /* remove default styling */
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  /* fully rounded */
  background: linear-gradient(#b7ffe2);
  cursor: pointer;
  outline: none;
  transition: background 0.3s ease;
}

/* Webkit Browsers (Chrome, Edge, Safari) */
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #059669;
  /* emerald-600 */
  cursor: pointer;
  transition: background 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
  background: #047857;
  /* emerald-700 */
}

/* Firefox */
.slider::-moz-range-thumb {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #059669;
  cursor: pointer;
  transition: background 0.3s ease;
}

.slider::-moz-range-thumb:hover {
  background: #047857;
}
