/* Animated Card Icon Button for Dashboard */
.card-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  box-shadow: 0 2px 8px 0 rgba(80, 80, 80, 0.10);
  border: 2px solid transparent;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
  cursor: pointer;
  background: #fff;
  position: relative;
  outline: none;
  animation: pulseSubtle 1.6s infinite;
}
.card-icon-btn:hover, .card-icon-btn:focus {
  box-shadow: 0 4px 16px 0 rgba(80, 80, 80, 0.18);
  border-color: #a5b4fc;
  animation: bounceIn 0.5s, pulseSubtle 1.6s infinite;
  transform: scale(1.09);
}
@keyframes bounceIn {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); }
  60% { transform: scale(0.92); }
  80% { transform: scale(1.08); }
  100% { transform: scale(1.09); }
}
@keyframes pulseSubtle {
  0%, 100% {
    box-shadow: 0 2px 8px 0 rgba(80, 80, 80, 0.10);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 4px 16px 0 rgba(80, 80, 80, 0.15);
    transform: scale(1.04);
  }
}
/* Premium button style for upgrade actions, using 4/8 spacing rule */
.btn-premium {
  min-width: 120px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.5rem;
  gap: 0.5rem;
}
/* Global action button style for consistent sizing and layout */
.action-btn {
  min-width: 120px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.5rem;
  gap: 0.5rem;
}
/* Gold shiny button for Upgrade to Premium */




@keyframes jelly {
  0%, 100% { transform: scale(1,1); }
  30% { transform: scale(1.12, 0.88); }
  50% { transform: scale(0.96, 1.04); }
  70% { transform: scale(1.04, 0.96); }
}

.btn-premium {
  background: linear-gradient(90deg, #FFD700 0%, #FFB300 100%);
  color: #fff8e1;
  box-shadow: 0 1px 4px 0 rgba(255, 215, 0, 0.13), 0 0 4px 1px #fff59d33 inset;
  border: none;
  font-weight: 400 !important;
  text-shadow: 0 1px 4px #fffde799, 0 0 1px #ffecb366;
  transition: box-shadow 0.2s;
}
.btn-premium:hover, .btn-premium:focus {
  background: linear-gradient(90deg, #FFB300 0%, #FFD700 100%);
  color: #fffde7;
  box-shadow: 0 2px 8px 0 rgba(255, 215, 0, 0.18), 0 0 6px 2px #fffde766 inset;
  animation: jelly 0.7s 1;
  font-weight: 400 !important;
}
/* MakeChores tagline text color utility */
.makechores-tagline {
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.dark .makechores-tagline {
  color: #fff !important;
  text-shadow: 0 1px 4px rgba(37,99,235,0.25);
}
/* Core CSS for Chores & Rewards App */

/* Custom Font Loading */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* OpenDyslexic Font Face */
@font-face {
  font-family: 'OpenDyslexic';
  src: url('/static/fonts/OpenDyslexic-Regular.woff2') format('woff2'),
       url('/static/fonts/OpenDyslexic-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OpenDyslexic';
  src: url('/static/fonts/OpenDyslexic-Bold.woff2') format('woff2'),
       url('/static/fonts/OpenDyslexic-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Root Variables - Color-blind friendly palette */
:root {
  /* Primary colors - Blue tones (safe for all color blindness types) */
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  
  /* Status colors - Color-blind friendly */
  --success-color: #059669; /* Dark green - distinguishable from red */
  --warning-color: #d97706; /* Orange instead of yellow - better contrast */
  --error-color: #dc2626; /* Dark red - sufficient contrast */
  
  /* Kid-friendly colors - Color-blind accessible */
  --kid-primary: #7c3aed; /* Purple - distinguishable from red/green */
  --kid-secondary: #0891b2; /* Cyan-blue - good contrast */
  --kid-accent: #f59e0b; /* Orange-yellow - visible to most */
  --kid-success: #059669; /* Same dark green as success */
  --kid-warning: #d97706; /* Orange for warnings */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background: linear-gradient(270deg, #f0f9ff 0%, #e0e7ff 100%);
  min-height: 100vh;
  transition: all 0.3s ease;
}

/* Accessible Font Options */
.font-accessible {
  font-family: 'Verdana', 'Arial', 'Helvetica', sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.7;
  font-weight: 500;
}

.font-dyslexic {
  font-family: 'OpenDyslexic', 'Comic Sans MS', 'Trebuchet MS', 'Verdana', cursive;
  letter-spacing: 0.05em;
  line-height: 1.8;
  font-weight: 400;
}

/* ADHD-Friendly Font (high contrast, clean lines) */
.font-adhd {
  font-family: 'Arial', 'Helvetica', 'Verdana', sans-serif;
  letter-spacing: 0.03em;
  line-height: 1.6;
  font-weight: 600;
}

/* Kid-Friendly Theme */
.kid-friendly-theme {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #f59e0b 100%);
  font-family: 'OpenDyslexic', 'Comic Sans MS', cursive;
}

.kid-friendly-theme .bg-white {
  background: linear-gradient(145deg, #ffffff 0%, #fef3c7 100%);
  border: 3px solid var(--kid-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.kid-friendly-theme h1,
.kid-friendly-theme h2,
.kid-friendly-theme h3 {
  color: var(--kid-primary);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  font-weight: 800;
}

.kid-friendly-theme button,
.kid-friendly-theme .btn {
  font-size: 1.2rem;
  font-weight: 700;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-lg);
  transition: all 0.2s ease-in-out;
  border: 3px solid transparent;
}

.kid-friendly-theme button:hover,
.kid-friendly-theme .btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-xl);
}

.kid-friendly-theme .bg-indigo-600 {
  background: linear-gradient(135deg, var(--kid-primary), var(--kid-secondary));
}

.kid-friendly-theme .bg-green-600 {
  background: linear-gradient(135deg, var(--kid-success), var(--kid-secondary));
}

.kid-friendly-theme .bg-purple-600 {
  background: linear-gradient(135deg, var(--kid-primary), #9c27b0);
}

/* Dark Mode */
.dark {
  --gray-50: #1f2937;
  --gray-100: #374151;
  --gray-200: #4b5563;
  --gray-300: #6b7280;
  --gray-400: #9ca3af;
  --gray-500: #d1d5db;
  --gray-600: #e5e7eb;
  --gray-700: #f3f4f6;
  --gray-800: #f9fafb;
  --gray-900: #ffffff;
}

.dark body {
  background: linear-gradient(270deg, #1f2937 0%, #111827 100%);
  color: var(--gray-200);
}

.dark .bg-white {
  background: var(--gray-800);
  color: var(--gray-200);
  border-color: var(--gray-600);
}

.dark .text-gray-800 {
  color: var(--gray-200) !important;
}

.dark .border-gray-200 {
  border-color: var(--gray-600) !important;
}

/* Flash Messages */
.flash-message {
  animation: slideInRight 0.4s ease-out;
  position: relative;
  z-index: 1000;
  max-width: 400px;
  word-wrap: break-word;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.flash-message.removing {
  animation: slideOutRight 0.3s ease-in forwards;
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Auto-remove flash messages */
.flash-message::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  animation: progress 5s linear forwards;
  border-radius: 0 0 0.5rem 0.5rem;
}

@keyframes progress {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}



/* Custom Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-success {
  background-color: var(--success-color);
  color: white;
}

.btn-warning {
  background-color: var(--warning-color);
  color: white;
}

.btn-error {
  background-color: var(--error-color);
  color: white;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

/* Card Component */
.card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: all 0.2s ease-in-out;
  border: 1px solid var(--gray-200);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-header {
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.card-footer {
  border-top: 1px solid var(--gray-200);
  padding-top: 1rem;
  margin-top: 1rem;
}

/* Progress Bar */
.progress-bar {
  background: var(--gray-200);
  border-radius: 9999px;
  overflow: hidden;
  height: 1rem;
  position: relative;
}

.progress-fill {
  background: linear-gradient(90deg, var(--primary-color), var(--success-color));
  height: 100%;
  border-radius: 9999px;
  transition: width 0.8s ease-in-out;
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Badge Component */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--primary-color);
}

.badge-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

.badge-warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.badge-error {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--error-color);
}

/* Animations */
.animate-bounce-in {
  animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

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

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

.animate-slide-in {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.animate-pulse-gentle {
  animation: pulseGentle 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseGentle {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .8;
  }
}

/* Loading States */
.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--gray-300);
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Form Enhancements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
  background-color: white;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-control.is-valid {
  border-color: var(--success-color);
}

.form-control.is-invalid {
  border-color: var(--error-color);
}

.form-text {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

.form-error {
  font-size: 0.75rem;
  color: var(--error-color);
  margin-top: 0.25rem;
}

/* Mobile Navigation */
#mobile-menu {
  transition: all 0.3s ease-in-out;
  max-height: 0;
  overflow: hidden;
}

#mobile-menu.show {
  max-height: 300px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .kid-friendly-theme button,
  .kid-friendly-theme .btn {
    font-size: 1rem;
    padding: 0.875rem 1.25rem;
  }
  
  .flash-message {
    max-width: 90vw;
    margin-right: 1rem;
  }
  
  .card {
    padding: 1rem;
  }
  
  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
  
  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
  }
  
  .flex {
    flex-direction: column;
  }
  
  .space-x-4 > * + * {
    margin-left: 0;
    margin-top: 1rem;
  }
}

/* Focus States for Accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.keyboard-navigation button:focus,
.keyboard-navigation input:focus,
.keyboard-navigation select:focus,
.keyboard-navigation textarea:focus,
.keyboard-navigation a:focus {
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
}

/***** Logo Dance Animation *****/
.logo-dance {
  transition: transform 0.3s cubic-bezier(.68,-0.55,.27,1.55);
  will-change: transform;
}
.logo-dance:hover {
  animation: logo-dance-bounce 0.7s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes logo-dance-bounce {
  0%   { transform: rotate(0deg) scale(1) translateY(0); }
  10%  { transform: rotate(-2deg) scale(1.016) translateY(-0.8px); }
  20%  { transform: rotate(2.4deg) scale(1.024) translateY(-1.6px); }
  30%  { transform: rotate(-2.8deg) scale(1.03) translateY(-2.4px); }
  40%  { transform: rotate(3.2deg) scale(1.036) translateY(-3.2px); }
  50%  { transform: rotate(-3.6deg) scale(1.04) translateY(-3.6px); }
  60%  { transform: rotate(2.8deg) scale(1.03) translateY(-2.4px); }
  70%  { transform: rotate(-2.4deg) scale(1.024) translateY(-1.6px); }
  80%  { transform: rotate(2deg) scale(1.016) translateY(-0.8px); }
  90%  { transform: rotate(-1.2deg) scale(1.008) translateY(-0.4px); }
  100% { transform: rotate(0deg) scale(1) translateY(0); }
}

/* Color-blind friendly patterns and indicators */
.color-blind-patterns {
  /* Success elements get a checkmark pattern */
  --success-pattern: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 13L4 9L5.41 7.59L8 10.17L14.59 3.58L16 5L8 13Z' fill='%23ffffff'/%3E%3C/svg%3E");
  
  /* Warning elements get an exclamation pattern */
  --warning-pattern: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 13H11V15H9V13ZM9 5H11V11H9V5ZM10 1C5.03 1 1 5.03 1 10C1 14.97 5.03 19 10 19C14.97 19 19 14.97 19 10C19 5.03 14.97 1 10 1Z' fill='%23ffffff'/%3E%3C/svg%3E");
  
  /* Error elements get an X pattern */
  --error-pattern: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.59 6L13.17 4.58L10 7.75L6.83 4.58L5.41 6L8.58 9.17L5.41 12.34L6.83 13.76L10 10.59L13.17 13.76L14.59 12.34L11.42 9.17L14.59 6Z' fill='%23ffffff'/%3E%3C/svg%3E");
}

/* Add patterns to color-coded elements */
.color-blind-patterns .bg-green-500,
.color-blind-patterns .bg-green-600,
.color-blind-patterns .badge-success {
  background-image: var(--success-pattern);
  background-repeat: no-repeat;
  background-position: 8px center;
  padding-left: 2.5rem;
}

.color-blind-patterns .bg-yellow-500,
.color-blind-patterns .bg-yellow-600,
.color-blind-patterns .badge-warning {
  background-image: var(--warning-pattern);
  background-repeat: no-repeat;
  background-position: 8px center;
  padding-left: 2.5rem;
}

.color-blind-patterns .bg-red-500,
.color-blind-patterns .bg-red-600,
.color-blind-patterns .badge-error {
  background-image: var(--error-pattern);
  background-repeat: no-repeat;
  background-position: 8px center;
  padding-left: 2.5rem;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0000ff;
    --success-color: #008000;
    --warning-color: #ff8c00;
    --error-color: #ff0000;
  }
  
  .card {
    border: 2px solid var(--gray-800);
  }
  
  button, .btn {
    border: 2px solid currentColor;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print Styles */
@media print {
  .no-print,
  nav,
  footer,
  button,
  .btn,
  #flash-messages,
  #dark-mode-toggle,
  #theme-toggle {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #000;
    margin-bottom: 1rem;
    page-break-inside: avoid;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}

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

::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 4px;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* Tab Navigation */
.tab-button.active {
  border-bottom-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
  background-color: rgba(79, 70, 229, 0.05);
}

.tab-button {
  transition: all 0.2s ease-in-out;
}

.tab-button:hover {
  background-color: rgba(79, 70, 229, 0.05);
}

/* Utility Classes */
.text-overflow {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.focus\:not-sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Celebration Effects */
.celebrate {
  position: relative;
  overflow: hidden;
}

.celebrate::after {
  content: '🎉✨🌟';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  animation: celebrate 1s ease-out;
  pointer-events: none;
}

@keyframes celebrate {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-50px) scale(1.5);
  }
}

/* Status Indicators */
.status-indicator {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.status-indicator.pending {
  background-color: var(--warning-color);
  animation: pulse 2s infinite;
}

.status-indicator.completed {
  background-color: var(--primary-color);
}

.status-indicator.approved {
  background-color: var(--success-color);
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Hover Effects */
.hover-lift {
  transition: transform 0.2s ease-in-out;
}

.hover-lift:hover {
  transform: translateY(-2px);
}

.hover-scale {
  transition: transform 0.2s ease-in-out;
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* Error States */
.error-boundary {
  padding: 2rem;
  text-align: center;
  background-color: var(--error-color);
  color: white;
  border-radius: var(--border-radius);
  margin: 1rem 0;
}

.error-boundary h2 {
  margin-bottom: 1rem;
  color: white;
}

.error-boundary button {
  background-color: white;
  color: var(--error-color);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 1rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.skeleton-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
}

.skeleton-button {
  height: 2.5rem;
  border-radius: var(--border-radius);
  width: 6rem;
}

/* Manual High Contrast Mode (triggered by user) */
.high-contrast {
    filter: contrast(150%) brightness(110%);
}

.high-contrast .bg-white {
    background-color: #000000 !important;
    color: #ffffff !important;
}

.high-contrast .text-gray-900,
.high-contrast .text-gray-800,
.high-contrast .text-gray-700,
.high-contrast .text-gray-600 {
    color: #ffffff !important;
}

.high-contrast .bg-gray-50,
.high-contrast .bg-gray-100 {
    background-color: #1a1a1a !important;
}

.high-contrast .border-gray-200,
.high-contrast .border-gray-300 {
    border-color: #ffffff !important;
}

.high-contrast .shadow-lg,
.high-contrast .shadow-sm {
    box-shadow: 0 0 0 2px #ffffff !important;
}

.high-contrast button,
.high-contrast .btn {
    border: 2px solid #ffffff !important;
    font-weight: bold !important;
}

.high-contrast a {
    text-decoration: underline !important;
    font-weight: bold !important;
}

/* Accessibility button override to match navbar links */
button[aria-label="Accessibility options"] {
  color: var(--gray-600) !important;
}
button[aria-label="Accessibility options"]:hover {
  color: var(--gray-800) !important;
}

/* For dark mode */
.dark button[aria-label="Accessibility options"] {
  color: var(--gray-400) !important;
}
.dark button[aria-label="Accessibility options"]:hover {
  color: var(--gray-200) !important;
}

/*--- Square Icon Button ---*/
.btn-square {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  max-width: 36px;
  max-height: 36px;
}

/* Chore card animations and enhancements */
.chore-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.chore-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Status badge animations */
.chore-card .inline-flex {
    transition: all 0.2s ease-in-out;
}

/* Filter and search enhancements */
.filter-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Modal enhancements */
.modal-overlay {
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.4);
}

/* Button hover effects */
.btn-hover-lift {
    transition: transform 0.2s ease-in-out;
}

.btn-hover-lift:hover {
    transform: translateY(-1px);
}

/* Statistics cards */
.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease-in-out;
}

.stat-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

/* Priority indicators */
.priority-high {
    border-left: 4px solid #ef4444;
}

.priority-normal {
    border-left: 4px solid #3b82f6;
}

.priority-low {
    border-left: 4px solid #10b981;
}

/* Assignment modal enhancements */
.child-option {
    transition: all 0.2s ease-in-out;
}

.child-option:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.child-option.selected {
    background-color: #eff6ff;
    border-color: #3b82f6;
}

/* Feedback notifications */
.feedback-notification {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading states */
.loading-overlay {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
}

.loading-spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive improvements for chores page */
@media (max-width: 768px) {
    .chores-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}