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

:root {
  --checkbox-tick-svg: url('data:image/svg+xml,%3csvg viewBox=%270 0 16 16%27 fill=%27white%27 xmlns=%27http://www.w3.org/2000/svg%27%3e%3cpath d=%27M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z%27/%3e%3c/svg%3e');
}

.material-symbols-rounded {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgb(203 213 225 / 0.5);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgb(148 163 184 / 0.5);
}

.dark ::-webkit-scrollbar-thumb {
  background: rgb(71 85 105 / 0.5);
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: rgb(100 116 139 / 0.5);
}

/* Checkbox styles */
input[type='checkbox'] {
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent;
  position: relative;
}

input[type='checkbox']:checked {
  background-image: var(--checkbox-tick-svg);
}

input[type='checkbox']:checked::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgb(255 107 53 / 0.1);
  animation: ripple 0.4s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Smooth transitions */
.menu-item {
  transition: all 0.15s ease;
}

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

/* Category pill animation */
.category-pill {
  transition: all 0.2s ease;
}

.category-pill:hover {
  transform: translateX(2px);
}

/* Glass effect for dark mode */
.glass-effect {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  animation: fadeIn 0.2s ease-out;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 1rem;
  max-width: 28rem;
  width: calc(100% - 2rem);
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  animation: scaleIn 0.3s ease-out;
}

.dark .modal-content {
  background: #1A1A1A;
}

/* Date dropdown custom styles */
.date-dropdown {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

