/* ===== FESTIVE ANIMATIONS & EFFECTS ===== */

/* Confetti Animation */
@keyframes confetti-fall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

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

/* Star Burst Animation */
@keyframes star-burst {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.2) rotate(180deg);
    opacity: 0.8;
  }
  100% {
    transform: scale(0) rotate(360deg);
    opacity: 0;
  }
}

/* Gift Box Bounce */
@keyframes gift-bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Sparkle Effect */
@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Fireworks */
@keyframes fireworks {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* Celebration Pulse */
@keyframes celebration-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
  }
}

/* Magic Dust */
@keyframes magic-dust {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 0;
  }
}

/* Festive Success Animation */
@keyframes festive-success {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Utility Classes for Festive Effects */
.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--holiday-gold);
  animation: confetti-fall 3s linear infinite;
  z-index: 1000;
}

.confetti:nth-child(odd) {
  background: var(--holiday-red);
  animation-duration: 2.5s;
}

.confetti:nth-child(even) {
  background: var(--holiday-green);
  animation-duration: 3.5s;
}

.star-burst {
  animation: star-burst 1s ease-out;
}

.gift-bounce {
  animation: gift-bounce 0.6s ease-in-out;
}

.sparkle {
  animation: sparkle 1.5s ease-in-out infinite;
}

.fireworks {
  animation: fireworks 0.8s ease-out;
}

.celebration-pulse {
  animation: celebration-pulse 2s ease-in-out infinite;
}

.magic-dust {
  animation: magic-dust 2s ease-out;
}

.festive-success {
  animation: festive-success 0.6s ease-out;
}

/* Festive Button Enhancements */
.festive-button-success {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.festive-button-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.festive-button-success::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.festive-button-success:hover::before {
  left: 100%;
}

/* Festive Card Enhancements */
.festive-card-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.festive-card-success:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.1);
}

/* Confetti Container */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
}

/* Star Container */
.star-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1001;
}

/* Magic Dust Container */
.magic-dust-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

/* Responsive Festive Effects */
@media (max-width: 768px) {
  .confetti {
    width: 8px;
    height: 8px;
  }
  
  .festive-button-success {
    font-size: 14px;
    padding: 8px 16px;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


*/

/* Holiday Festive Styles */
:root {
  --holiday-gold: #FFD700;
  --holiday-silver: #C0C0C0;
  --holiday-red: #DC2626;
  --holiday-green: #059669;
  --holiday-purple: #7C3AED;
  --holiday-blue: #2563EB;
  --app-btn-primary-bg: #4f46e5;
  --app-btn-primary-hover: #4338ca;
  --app-btn-primary-text: #ffffff;
  --app-btn-primary-shadow: 0 10px 24px rgba(79, 70, 229, 0.35);
  --app-btn-secondary-bg: #ffffff;
  --app-btn-secondary-hover: #f8fafc;
  --app-btn-secondary-border: #cbd5e1;
  --app-btn-secondary-text: #1f2937;
  --app-btn-secondary-shadow: 0 8px 18px rgba(148, 163, 184, 0.25);
}

html.dark {
  --app-btn-primary-bg: #4f46e5;
  --app-btn-primary-hover: #6366f1;
  --app-btn-primary-text: #ffffff;
  --app-btn-primary-shadow: 0 12px 26px rgba(79, 70, 229, 0.45);
  --app-btn-secondary-bg: #1f2937;
  --app-btn-secondary-hover: #273244;
  --app-btn-secondary-border: #334155;
  --app-btn-secondary-text: #e2e8f0;
  --app-btn-secondary-shadow: 0 10px 22px rgba(15, 23, 42, 0.5);
}

/* Unified button palette */
button.btn-primary,
a.btn-primary,
input[type="submit"].btn-primary,
button[class*="bg-indigo-"],
a[class*="bg-indigo-"],
input[type="submit"][class*="bg-indigo-"] {
  background: var(--app-btn-primary-bg) !important;
  color: var(--app-btn-primary-text) !important;
  border-color: transparent !important;
  box-shadow: var(--app-btn-primary-shadow) !important;
}

button.btn-primary:hover,
a.btn-primary:hover,
input[type="submit"].btn-primary:hover,
button[class*="bg-indigo-"]:hover,
a[class*="bg-indigo-"]:hover,
input[type="submit"][class*="bg-indigo-"]:hover {
  background: var(--app-btn-primary-hover) !important;
}

button.btn-secondary,
a.btn-secondary,
input[type="submit"].btn-secondary,
button[class*="bg-white"],
a[class*="bg-white"],
input[type="submit"][class*="bg-white"] {
  background: var(--app-btn-secondary-bg) !important;
  color: var(--app-btn-secondary-text) !important;
  border-color: var(--app-btn-secondary-border) !important;
  box-shadow: var(--app-btn-secondary-shadow) !important;
}

button.btn-secondary:hover,
a.btn-secondary:hover,
input[type="submit"].btn-secondary:hover,
button[class*="bg-white"]:hover,
a[class*="bg-white"]:hover,
input[type="submit"][class*="bg-white"]:hover {
  background: var(--app-btn-secondary-hover) !important;
}

html.dark button[class*="bg-slate-700"],
html.dark button[class*="bg-slate-800"],
html.dark a[class*="bg-slate-700"],
html.dark a[class*="bg-slate-800"],
html.dark input[type="submit"][class*="bg-slate-700"],
html.dark input[type="submit"][class*="bg-slate-800"] {
  background: var(--app-btn-secondary-bg) !important;
  color: var(--app-btn-secondary-text) !important;
  border-color: var(--app-btn-secondary-border) !important;
  box-shadow: var(--app-btn-secondary-shadow) !important;
}

html.dark button[class*="bg-slate-700"]:hover,
html.dark button[class*="bg-slate-800"]:hover,
html.dark a[class*="bg-slate-700"]:hover,
html.dark a[class*="bg-slate-800"]:hover,
html.dark input[type="submit"][class*="bg-slate-700"]:hover,
html.dark input[type="submit"][class*="bg-slate-800"]:hover {
  background: var(--app-btn-secondary-hover) !important;
}

/* Festive gradient backgrounds */
.festive-gradient-gold {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.festive-gradient-silver {
  background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
}

.festive-gradient-holiday {
  background: linear-gradient(135deg, #DC2626 0%, #7C3AED 50%, #059669 100%);
}

/* Festive animations */
@keyframes festive-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes festive-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.3); }
  50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.6); }
}

@keyframes festive-sparkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Festive utility classes */
.festive-pulse {
  animation: festive-pulse 2s ease-in-out infinite;
}

.festive-glow {
  animation: festive-glow 3s ease-in-out infinite;
}

.festive-sparkle {
  animation: festive-sparkle 1.5s ease-in-out infinite;
}

/* Festive hover effects */
.festive-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

/* Festive text styles */
.festive-text-gold {
  color: var(--holiday-gold);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.festive-text-silver {
  color: var(--holiday-silver);
  text-shadow: 0 0 10px rgba(192, 192, 192, 0.3);
}

/* Festive border styles */
.festive-border-gold {
  border: 2px solid var(--holiday-gold);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.festive-border-silver {
  border: 2px solid var(--holiday-silver);
  box-shadow: 0 0 10px rgba(192, 192, 192, 0.2);
}

/* Festive button styles */
.festive-button-gold {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #1F2937;
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
}

.festive-button-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

/* Purple button in app style */
.festive-button-purple {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.festive-button-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

/* Shimmer/snake highlight animation - subtle and barely noticeable */
.shimmer-animation {
  position: relative;
}

.shimmer-animation::before {
  display: none;
}

.shimmer-animation span,
.shimmer-animation > * {
  position: relative;
  z-index: 1;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

.festive-button-silver {
  background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
  color: #1F2937;
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 15px rgba(192, 192, 192, 0.3);
  transition: all 0.3s ease;
}

.festive-button-silver:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(192, 192, 192, 0.4);
}

/* Festive card styles */
.festive-card {
  background: var(--clay-surface) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease;
}

.festive-card [class*="px-6"] {
  background: var(--clay-surface) !important;
}

.dark .festive-card {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.dark .festive-card [class*="px-6"] {
  background: #1e293b !important;
}

.festive-card:hover {
  background: var(--clay-bg) !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-2px);
}

.dark .festive-card:hover {
  background: #334155 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Festive icon styles */
.festive-icon {
  transition: all 0.3s ease;
}

.festive-icon:hover {
  transform: scale(1.1);
}

/* Festive star decoration */
.festive-star {
  position: relative;
  display: inline-block;
}

.festive-star::before {
  content: "✨";
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 12px;
  animation: festive-sparkle 2s ease-in-out infinite;
}

/* Festive snowflake decoration */
.festive-snowflake {
  position: relative;
  display: inline-block;
}

.festive-snowflake::before {
  content: "❄️";
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 12px;
  animation: festive-sparkle 2s ease-in-out infinite;
}

/* Festive gift decoration */
.festive-gift {
  position: relative;
  display: inline-block;
}

.festive-gift::before {
  content: "🎁";
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 12px;
  animation: festive-sparkle 2s ease-in-out infinite;
}

/* Form error handling styles */
.field_with_errors {
  position: relative;
}

.field_with_errors input,
.field_with_errors select,
.field_with_errors textarea {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 1px #ef4444 !important;
}

.field_with_errors input:focus,
.field_with_errors select:focus,
.field_with_errors textarea:focus {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2) !important;
}

.field_with_errors label {
  color: #dc2626 !important;
}

/* Required field asterisk */
.required-asterisk {
  color: #ef4444;
  font-weight: bold;
}

/* Error message styling */
.error-message {
  color: #dc2626 !important;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  font-weight: 500;
}

.error-message::before {
  content: "⚠️";
  margin-right: 0.25rem;
  font-size: 0.75rem;
}

/* Force red color for all error messages */
.field_with_errors p,
.field_with_errors .error-message,
.field_with_errors span,
.field_with_errors div {
  color: #dc2626 !important;
}

/* Specific styling for Rails error messages */
.field_with_errors .error-message,
.field_with_errors p[class*="error"],
.field_with_errors div[class*="error"] {
  color: #dc2626 !important;
  background-color: rgba(239, 68, 68, 0.05);
  padding: 0.5rem;
  border-radius: 0.375rem;
  border-left: 3px solid #dc2626;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Mobile responsive error messages */
@media (max-width: 640px) {
  .error-message {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    line-height: 1.4;
  }
  
  .error-message::before {
    font-size: 0.7rem;
    margin-right: 0.2rem;
  }
}

/* Ensure error messages are visible on all screen sizes */
.field_with_errors .error-message {
  color: #dc2626 !important;
  background-color: rgba(239, 68, 68, 0.05);
  padding: 0.5rem;
  border-radius: 0.375rem;
  border-left: 3px solid #dc2626;
  margin-top: 0.5rem;
}

/* Mobile-specific error styling */
@media (max-width: 640px) {
  .field_with_errors .error-message {
    padding: 0.375rem;
    font-size: 0.8rem;
    margin-top: 0.375rem;
  }
}

/* Additional error message selectors for maximum coverage */
.field_with_errors p,
.field_with_errors .error-message,
.field_with_errors .error,
.field_with_errors .field-error,
.field_with_errors .validation-error,
.field_with_errors .help-block,
.field_with_errors .help-text,
.field_with_errors .invalid-feedback {
  color: #dc2626 !important;
  font-weight: 500;
}

/* Ensure all text content in error fields is red */
.field_with_errors * {
  color: inherit;
}

.field_with_errors p,
.field_with_errors .error-message,
.field_with_errors .error,
.field_with_errors .field-error,
.field_with_errors .validation-error,
.field_with_errors .help-block,
.field_with_errors .help-text,
.field_with_errors .invalid-feedback {
  color: #dc2626 !important;
}

/* Dark theme checkbox styling */
.dark input[type="checkbox"] {
  background-color: #1f2937 !important;
  border-color: #4b5563 !important;
  color: var(--clay-accent) !important;
}

.dark input[type="checkbox"]:checked {
  background-color: var(--clay-accent) !important;
  border-color: var(--clay-accent) !important;
}

.dark input[type="checkbox"]:focus {
  ring-color: var(--clay-accent) !important;
  border-color: var(--clay-accent) !important;
}

/* Enhanced checkbox visibility for dark theme */
input[type="checkbox"] {
  appearance: none;
  background-color: transparent;
  border: 2px solid var(--clay-border);
  border-radius: 0.25rem;
  display: inline-block;
  position: relative;
  transition: all 0.15s ease-in-out;
  width: 1rem;
  height: 1rem;
}

input[type="checkbox"]:checked {
  background-color: var(--clay-accent) !important;
  border-color: var(--clay-accent) !important;
}

input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white !important;
  font-size: 0.75rem;
  font-weight: bold;
  display: block !important;
}

/* Dark theme checkbox */
.dark input[type="checkbox"] {
  background-color: transparent;
  border-color: #6b7280;
}

.dark input[type="checkbox"]:checked {
  background-color: var(--clay-accent) !important;
  border-color: var(--clay-accent) !important;
}

.dark input[type="checkbox"]:checked::after {
  color: white !important;
  display: block !important;
}

/* Focus states for better accessibility */
input[type="checkbox"]:focus {
  outline: 2px solid var(--clay-accent);
  outline-offset: 2px;
}

.dark input[type="checkbox"]:focus {
  outline-color: #60a5fa;
}

/* Mobile-specific improvements */
@media (max-width: 640px) {
  input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
  }
  
  .dark input[type="checkbox"] {
    border-color: #9ca3af;
  }
  
  /* Better spacing for mobile buttons */
  .flex.flex-col.sm\\:flex-row.space-y-3.sm\\:space-y-0.sm\\:space-x-4 {
    gap: 0.75rem;
  }
  
  /* Mobile form improvements */
  input[type="text"], 
  input[type="email"], 
  input[type="password"], 
  select, 
  textarea {
    font-size: 16px !important; /* Prevent zoom on iOS */
    min-height: 44px; /* iOS touch target */
  }
  
  /* Mobile button improvements */
  .w-full.sm\\:w-auto {
    min-height: 44px; /* iOS touch target */
  }
  
  /* Better text contrast for mobile */
  .dark .text-gray-200 {
    color: #f3f4f6 !important;
  }
}

/* Force checkbox styling to override any conflicting styles */
input[type="checkbox"] {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-color: transparent !important;
  border: 2px solid #d1d5db !important;
  border-radius: 0.25rem !important;
  display: inline-block !important;
  position: relative !important;
  transition: all 0.15s ease-in-out !important;
  width: 1rem !important;
  height: 1rem !important;
  vertical-align: middle !important;
}

/* Ensure checkbox is visible in all themes */
input[type="checkbox"]:checked {
  background-color: var(--clay-accent) !important;
  border-color: var(--clay-accent) !important;
  background-image: none !important;
}

input[type="checkbox"]:checked::before {
  content: "✓" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  color: white !important;
  font-size: 0.75rem !important;
  font-weight: bold !important;
  display: block !important;
  line-height: 1 !important;
  z-index: 1 !important;
}

/* Dark theme checkbox override */
.dark input[type="checkbox"] {
  background-color: transparent !important;
  border-color: #6b7280 !important;
}

.dark input[type="checkbox"]:checked {
  background-color: var(--clay-accent) !important;
  border-color: var(--clay-accent) !important;
}

.dark input[type="checkbox"]:checked::before {
  content: "✓" !important;
  color: white !important;
  display: block !important;
}

/* Sticky Footer - Production Ready Solution */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: var(--clay-bg);
}

html.dark {
  background: linear-gradient(to bottom right, #000000 0%, #000000 100%) !important; /* Повністю чорний фон */
}

html.light {
  background-color: var(--clay-bg);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--clay-bg);
}

body.dark {
  background: linear-gradient(to bottom right, #000000 0%, #000000 100%) !important; /* Повністю чорний фон */
}

body.light {
  background-color: var(--clay-bg);
}

main {
  flex: 1;
  background-color: inherit;
}

footer {
  flex-shrink: 0;
  background-color: inherit;
  border-top: none !important;
  box-shadow: none !important;
}

/* Remove any potential gaps */
.container {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Ensure no visual artifacts */
footer::before,
footer::after {
  display: none !important;
}

/* Minimalist Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes gentleBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

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

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

/* Page load animations */
.wishlist-page {
  animation: fadeIn 0.6s ease-out;
}

.wishlist-card {
  animation: fadeInUp 0.8s ease-out;
}

.wishlist-card:nth-child(2) {
  animation-delay: 0.2s;
}

.wishlist-card:nth-child(3) {
  animation-delay: 0.4s;
}

/* Empty state improvements */
.empty-state {
  background: linear-gradient(135deg, var(--clay-bg) 0%, var(--clay-surface) 100%);
  border: 2px dashed var(--clay-border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.empty-state::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2s infinite;
}

.empty-state:hover {
  border-color: var(--clay-accent);
  background: linear-gradient(135deg, var(--clay-surface) 0%, rgba(255, 244, 234, 0.8) 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(138, 108, 255, 0.12);
}

.empty-state-icon {
  animation: breathe 3s ease-in-out infinite;
}

.empty-state-button {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.empty-state-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(138, 108, 255, 0.28);
}

.empty-state-button:active {
  animation: gentleBounce 0.6s ease;
}

/* Form improvements */
.form-field {
  transition: all 0.3s ease;
}

.form-field:focus-within {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(138, 108, 255, 0.18);
}

/* Button improvements */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-primary::before {
  display: none;
}

.btn-primary:hover::before {
  display: none;
}

.btn-primary:hover {
  transform: none;
}

/* Card hover effects */
.wishlist-card {
  transition: all 0.3s ease;
}

.wishlist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

/* Dark theme adjustments */
.dark .empty-state {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-color: #475569;
}

.dark .empty-state:hover {
  border-color: #60a5fa;
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
}

/* Delete Modal Animations */
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes modalSlideOut {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
}

.delete-modal {
  animation: modalSlideIn 0.3s ease-out;
}

.delete-modal.closing {
  animation: modalSlideOut 0.2s ease-in;
}

/* Modal backdrop */
.modal-backdrop {
  backdrop-filter: blur(4px);
  transition: backdrop-filter 0.3s ease;
}

/* Warning icon animation */
.warning-icon {
  animation: gentleBounce 2s ease-in-out infinite;
}

/* Mobile optimizations */
@media (max-width: 640px) {
  .wishlist-card {
    animation-duration: 0.6s;
  }
  
  .empty-state:hover {
    transform: none;
  }
  
  .wishlist-card:hover {
    transform: none;
  }
  
  .delete-modal {
    margin: 1rem;
    max-width: calc(100vw - 2rem);
  }
  
  /* Mobile-specific card improvements */
  .wishlist-card {
    padding: 1rem;
  }
  
  .wishlist-card h3 {
    font-size: 1rem;
    line-height: 1.25rem;
  }
  
  .wishlist-card p {
    font-size: 0.875rem;
  }
  
  /* Mobile button improvements */
  .wishlist-card button {
    font-size: 0.875rem;
    padding: 0.75rem 0.5rem;
  }
  
  /* Mobile modal improvements */
  .delete-modal {
    margin: 0.5rem;
    max-width: calc(100vw - 1rem);
  }
  
  .delete-modal .p-6 {
    padding: 1rem;
  }
  
  .delete-modal .flex {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .delete-modal .flex button {
    width: 100%;
  }
}

/* Tablet optimizations */
@media (min-width: 641px) and (max-width: 1024px) {
  .wishlist-card {
    padding: 1.25rem;
  }
  
  .wishlist-card h3 {
    font-size: 1.125rem;
  }
}

/* Dark theme improvements */
.dark .wishlist-card {
  background-color: #1e293b;
  border-color: #334155;
}

.dark .wishlist-card:hover {
  background-color: #334155;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

/* Improved hover effects */
.wishlist-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Focus states for accessibility */
.wishlist-card button:focus {
  outline: 2px solid var(--clay-accent);
  outline-offset: 2px;
}

.wishlist-card button:focus:not(:focus-visible) {
  outline: none;
}

/* Force checkbox styling to override any conflicting styles */
input[type="checkbox"] {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-color: transparent !important;
  border: 2px solid var(--clay-border) !important;
  border-radius: 0.25rem !important;
  display: inline-block !important;
  position: relative !important;
  transition: all 0.15s ease-in-out !important;
  width: 1rem !important;
  height: 1rem !important;
  vertical-align: middle !important;
}

/* Ensure checkbox is visible in all themes */
input[type="checkbox"]:checked {
  background-color: var(--clay-accent) !important;
  border-color: var(--clay-accent) !important;
  background-image: none !important;
}

input[type="checkbox"]:checked::before {
  content: "✓" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  color: white !important;
  font-size: 0.75rem !important;
  font-weight: bold !important;
  display: block !important;
  line-height: 1 !important;
  z-index: 1 !important;
}

/* Dark theme checkbox override */
.dark input[type="checkbox"] {
  background-color: transparent !important;
  border-color: #6b7280 !important;
}

.dark input[type="checkbox"]:checked {
  background-color: var(--clay-accent) !important;
  border-color: var(--clay-accent) !important;
}

.dark input[type="checkbox"]:checked::before {
  content: "✓" !important;
  color: white !important;
  display: block !important;
}

/* Force dark mode styles for cards */
.dark .bg-white {
  background-color: #1e293b !important;
}

/* Removed to allow dark:border-0 to work properly */
/* .dark .border-slate-200 {
  border-color: #334155 !important;
} */

/* Force remove border in dark mode for specific blocks */
html.dark .no-dark-border,
.dark .no-dark-border,
html.dark [class*="no-dark-border"],
.dark [class*="no-dark-border"] {
  border: 0 !important;
  border-width: 0 !important;
  border-style: none !important;
  border-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Additional rule to override any border classes in dark mode */
html.dark .no-dark-border[class*="border"],
.dark .no-dark-border[class*="border"] {
  border: none !important;
}

.dark .bg-slate-50 {
  background-color: #334155 !important;
}

html.dark .profile-share-page {
  background-color: #0b1020 !important;
}

html.dark .profile-share-content {
  background-color: #0f172a !important;
}

html.dark .profile-share-page.bg-slate-100 {
  background-color: #0b1020 !important;
}

html.dark .profile-share-content.bg-slate-100 {
  background-color: #0f172a !important;
}

.profile-share-page {
  background-color: #f1f5f9 !important;
}

.profile-share-content {
  background-color: #e2e8f0 !important;
}

.dark .text-slate-900 {
  color: #f1f5f9 !important;
}

.dark .text-slate-500 {
  color: #94a3b8 !important;
}

.dark .text-slate-600 {
  color: #cbd5e1 !important;
}

/* Cheerful button boost for dark theme */
html.dark .joy-button {
  color: #e2e8f0 !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.35) !important;
}

html.dark .joy-button--indigo {
  background: rgba(99, 102, 241, 0.28) !important;
  border-color: rgba(129, 140, 248, 0.45) !important;
  box-shadow: 0 10px 22px rgba(99, 102, 241, 0.28) !important;
}

html.dark .joy-button--indigo:hover {
  background: rgba(99, 102, 241, 0.42) !important;
}

html.dark .joy-button--green {
  background: rgba(34, 197, 94, 0.25) !important;
  border-color: rgba(74, 222, 128, 0.4) !important;
  box-shadow: 0 10px 22px rgba(34, 197, 94, 0.25) !important;
}

html.dark .joy-button--green:hover {
  background: rgba(34, 197, 94, 0.38) !important;
}

html.dark .joy-button--rose {
  background: rgba(244, 63, 94, 0.2) !important;
  border-color: rgba(251, 113, 133, 0.4) !important;
  box-shadow: 0 10px 22px rgba(244, 63, 94, 0.25) !important;
}

html.dark .joy-button--rose:hover {
  background: rgba(244, 63, 94, 0.32) !important;
}

html.dark .joy-button--slate {
  background: rgba(51, 65, 85, 0.7) !important;
  border-color: rgba(148, 163, 184, 0.25) !important;
}

html.dark .joy-button--slate:hover {
  background: rgba(71, 85, 105, 0.8) !important;
}

/* Subtle hover backgrounds in dark mode */
html.dark .dark\:hover\:bg-slate-700:hover,
html.dark .dark\:hover\:bg-gray-700:hover {
  background-color: rgba(30, 41, 59, 0.65) !important;
}

html.dark .dark\:hover\:bg-slate-600:hover,
html.dark .dark\:hover\:bg-gray-600:hover {
  background-color: rgba(51, 65, 85, 0.55) !important;
}

/* Reduce glow intensity in dark theme */
html.dark {
  --dark-shadow-weak: 0 1px 2px rgba(0, 0, 0, 0.12);
  --dark-shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.18);
  --dark-shadow-strong: 0 8px 16px rgba(0, 0, 0, 0.22);
  --dark-glow-gold: 0 0 2px rgba(255, 215, 0, 0.04);
  --dark-glow-silver: 0 0 2px rgba(192, 192, 192, 0.04);
  --dark-glow-indigo: 0 0 4px rgba(99, 102, 241, 0.08);
}

html.dark .shadow-sm {
  box-shadow: var(--dark-shadow-weak) !important;
}

html.dark .shadow,
html.dark .shadow-md {
  box-shadow: var(--dark-shadow-medium) !important;
}

html.dark .shadow-lg,
html.dark .shadow-xl,
html.dark .shadow-2xl {
  box-shadow: var(--dark-shadow-strong) !important;
}

html.dark .shadow-inner {
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

html.dark .clay-theme input,
html.dark .clay-theme textarea,
html.dark .clay-theme select,
html.dark .clay-theme .btn,
html.dark .clay-theme .card,
html.dark .clay-theme .bg-white,
html.dark .clay-theme .bg-slate-50,
html.dark .clay-theme .bg-slate-100 {
  box-shadow: var(--dark-shadow-medium) !important;
}

html.dark .festive-text-gold {
  text-shadow: var(--dark-glow-gold) !important;
}

html.dark .festive-text-silver {
  text-shadow: var(--dark-glow-silver) !important;
}

html.dark .festive-border-gold {
  box-shadow: var(--dark-glow-gold) !important;
}

html.dark .festive-border-silver {
  box-shadow: var(--dark-glow-silver) !important;
}

html.dark .festive-button-gold,
html.dark .festive-button-silver,
html.dark .festive-button-purple,
html.dark .festive-button-success {
  box-shadow: var(--dark-shadow-medium) !important;
}

html.dark .festive-button-gold:hover,
html.dark .festive-button-silver:hover,
html.dark .festive-button-purple:hover,
html.dark .festive-button-success:hover {
  box-shadow: var(--dark-shadow-strong) !important;
}

html.dark .festive-card-success:hover {
  box-shadow: var(--dark-shadow-medium) !important;
}

/* Remove glow/highlight on theme toggle buttons in dark mode */
html.dark #dark-mode-toggle,
html.dark #dark-mode-toggle-mobile {
  box-shadow: none !important;
}

html.dark #dark-mode-toggle:hover,
html.dark #dark-mode-toggle:focus,
html.dark #dark-mode-toggle:focus-visible,
html.dark #dark-mode-toggle-mobile:hover,
html.dark #dark-mode-toggle-mobile:focus,
html.dark #dark-mode-toggle-mobile:focus-visible {
  box-shadow: none !important;
  outline: none !important;
  background-color: transparent !important;
}

html.dark .empty-state:hover,
html.dark .btn-primary:hover,
html.dark .wishlist-card:hover {
  box-shadow: var(--dark-shadow-strong) !important;
}

@keyframes festive-glow-dark {
  0%, 100% { box-shadow: 0 0 2px rgba(255, 215, 0, 0.04); }
  50% { box-shadow: 0 0 6px rgba(255, 215, 0, 0.08); }
}

@keyframes celebration-pulse-dark {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.08);
  }
  50% {
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0);
  }
}

html.dark .festive-glow {
  animation: festive-glow-dark 3s ease-in-out infinite;
}

html.dark .celebration-pulse {
  animation: celebration-pulse-dark 2s ease-in-out infinite;
}
