/* Doto Custom CSS & Mobile Enhancements */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

body {
  background-color: #0b0f19;
  color: #f3f4f6;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
}

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

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}

::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.4);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.7);
}

/* Glassmorphism Cards */
.glass-panel {
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-nav {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Priority Pulse Badge */
@keyframes priorityPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
}

.priority-high-pinned {
  border-left: 4px solid #ef4444 !important;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(17, 24, 39, 0.8) 100%);
}

.priority-badge-3 {
  animation: priorityPulse 2s infinite;
}

/* Checkbox Custom Animation */
.custom-checkbox {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Strike-through Transition */
.completed-text {
  text-decoration: line-through;
  opacity: 0.55;
  transition: all 0.25s ease;
}

/* Mobile Safe Area Padding */
.safe-pb {
  padding-bottom: calc(env(safe-area-inset-bottom, 16px) + 72px);
}

/* Modal Slide Up Animation */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-slide-up {
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Active Day in Calendar */
.calendar-day-active {
  background: #6366f1 !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.5);
}
