/* Custom utility for glassmorphism and transitions */
:root {
  --emerald-primary: #10b981;
  --gold-primary: #d97706;
}

body {
  -webkit-tap-highlight-color: transparent;
}

/* Custom Checkbox Style */
.checkbox-custom {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid #a7f3d0;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkbox-custom:after {
  content: "";
  position: absolute;
  display: none;
  left: 8px;
  top: 4px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

input:checked + .checkbox-custom {
  background-color: var(--emerald-primary);
  border-color: var(--emerald-primary);
}

input:checked + .checkbox-custom:after {
  display: block;
}

/* Card Animation */
.card-scale {
  transition: transform 0.2s;
}

.card-scale:active {
  transform: scale(0.98);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #10b98155;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #10b981aa;
}

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

.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

/* Form Group Hover */
.form-group {
  transition: all 0.3s ease;
}

.form-group:hover {
  border-color: var(--emerald-primary);
  background-color: #ecfdf5;
}

.dark .form-group:hover {
  background-color: #064e3b;
}
