/* Custom styles for TaskHub */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popStar {
  0% { transform: scale(1); }
  50% { transform: scale(1.35) rotate(15deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes celebratePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.animate-fadeIn {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.star-pop {
  animation: popStar 0.4s ease-out;
}

/* Mode Switcher Tabs */
.mode-tab {
  color: #64748b;
  background-color: transparent;
}

.mode-tab.active {
  background-color: #ffffff;
  color: #1e293b;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.08);
}

.dark .mode-tab {
  color: #94a3b8;
}

.dark .mode-tab.active {
  background-color: #334155;
  color: #f8fafc;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
}

/* Kid Sub-tabs */
.kid-subtab {
  color: #64748b;
  background-color: transparent;
}

.dark .kid-subtab {
  color: #94a3b8;
}

.kid-subtab.active {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.dark .kid-subtab.active {
  background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
  color: #fef3c7;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
}

/* Kanban Cards Drag & Drop */
.kanban-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  cursor: grab;
  user-select: none;
}

.kanban-card:active {
  cursor: grabbing;
}

.kanban-card.dragging {
  opacity: 0.4;
  transform: rotate(2deg) scale(0.98);
}

.kanban-drop-zone.dragover {
  background-color: rgba(219, 234, 254, 0.5);
  border: 2px dashed #3b82f6;
  border-radius: 1rem;
}

.dark .kanban-drop-zone.dragover {
  background-color: rgba(30, 58, 138, 0.3);
  border-color: #60a5fa;
}

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

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

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

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

.dark ::-webkit-scrollbar-thumb {
  background: #475569;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Kid Mission Card styles */
.kid-card {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.kid-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.15), 0 8px 10px -6px rgba(245, 158, 11, 0.1);
}

.dark .kid-card:hover {
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

.kid-card.is-done {
  opacity: 0.85;
}

/* Print Optimization for Reports */
@media print {
  header, #loginOverlay, button, #toastContainer, #userDropdown {
    display: none !important;
  }
  body {
    background-color: #ffffff !important;
    color: #000000 !important;
  }
  main {
    max-width: 100% !important;
    padding: 0 !important;
  }
  .shadow-xs, .shadow-sm, .shadow-md, .shadow-xl {
    box-shadow: none !important;
  }
}
