/* Custom Base & Smooth Transitions */
html, body {
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

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

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

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Custom Checkbox Animation */
.custom-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #cbd5e1;
  border-radius: 7px;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: #ffffff;
  flex-shrink: 0;
}

.custom-checkbox:hover {
  border-color: #10b981;
}

.custom-checkbox:checked {
  background-color: #059669;
  border-color: #059669;
}

.custom-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Strikethrough line animation */
.task-title {
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.task-completed .task-title {
  text-decoration: line-through;
  color: #94a3b8;
}

.task-completed {
  background-color: #f8fafc !important;
  border-color: #f1f5f9 !important;
  opacity: 0.85;
}

/* Priority Option Highlights in Modal */
.active-priority {
  border-width: 2px !important;
  font-weight: 700;
}

/* Filter Tab active state */
.filter-tab.active {
  background-color: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

/* Task Item Card Entrance */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.task-card-enter {
  animation: slideDown 0.25s ease-out forwards;
}

/* Confetti positioning */
canvas#confetti-canvas {
  position: fixed !important;
  pointer-events: none !important;
  z-index: 100 !important;
}