/* Custom styles for Proviamo lì MVP */
html {
  scroll-behavior: smooth;
}
body {
  transition: background 0.3s, color 0.3s;
  font-family: 'Inter', system-ui, sans-serif;
}
input:focus, textarea:focus {
  outline: 2px solid #6366f1;
  outline-offset: 1px;
}
#qrcode canvas, #qrcode img {
  margin: 0 auto;
  display: block;
}
::-webkit-scrollbar {
  width: 8px;
  background: #e5e7eb;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.dark ::-webkit-scrollbar {
  background: #1e293b;
}
.dark ::-webkit-scrollbar-thumb {
  background: #334155;
}
.placeholder-img {
  width: 100%;
  height: 120px;
  background: linear-gradient(90deg, #e0e7ef 30%, #cbd5e1 100%);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 0.1em;
}

/* Proviamo lì - Gamified UI Styles */

/* Base styles */
html {
  scroll-behavior: smooth;
}

body {
  transition: background 0.3s, color 0.3s;
  font-family: 'Inter', system-ui, sans-serif;
}

/* Focus styles with coffee theme */
input:focus,
textarea:focus,
button:focus {
  outline: 2px solid #a16932;
  outline-offset: 2px;
  border-color: #a16932;
}

/* QR Code styling */
#qrcode canvas,
#qrcode img {
  margin: 0 auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 15px -2px rgba(111, 72, 35, 0.2);
}

/* Enhanced scrollbar with coffee theme */
::-webkit-scrollbar {
  width: 8px;
  background: #f4e5d3;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #a16932;
}

.dark ::-webkit-scrollbar {
  background: #2d1c0e;
}

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

.dark ::-webkit-scrollbar-thumb:hover {
  background: #8b5a2b;
}

/* Coffee gradient utilities */
.coffee-gradient {
  background: linear-gradient(135deg, #c18851, #8b5a2b);
}

.coffee-gradient-vertical {
  background: linear-gradient(180deg, #d4a574, #a16932);
}

.coffee-gradient-soft {
  background: linear-gradient(135deg, #f4e5d3, #d4a574);
}

.amber-gradient {
  background: linear-gradient(135deg, #fbbf24, #f97316);
}

/* Game card 3D effects */
.game-card {
  transform: perspective(1000px) rotateX(2deg);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  will-change: transform;
}

.game-card:hover {
  transform: perspective(1000px) rotateX(0deg) translateY(-4px);
  box-shadow: 0 8px 30px -2px rgba(161, 105, 50, 0.35);
}

/* Interactive micro-animations */
.bounce-hover {
  transition: transform 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bounce-hover:hover {
  transform: scale(1.05) rotate(1deg);
}

.squash-active {
  transition: transform 0.1s ease-out;
}

.squash-active:active {
  transform: scale(0.95);
}

/* Glass morphism effect */
.glass-effect {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass-effect {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Text gradient effect */
.text-gradient {
  background: linear-gradient(135deg, #6f4823, #4a2f17);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Scratch card effect */
.scratch-card {
  position: relative;
  overflow: hidden;
}

.scratch-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, #d4a574, #a16932);
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 0.6s ease-out;
  z-index: 1;
}

.scratch-card.revealed::before {
  clip-path: circle(100% at 50% 50%);
}

/* Shimmer effect for scratch cards */
.scratch-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
  background-size: 200px 100%;
  animation: shimmer 2s infinite;
  pointer-events: none;
  z-index: 2;
}

.revealed.scratch-card::after {
  display: none;
}

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

/* Mood indicator animations */
.mood-indicator {
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.mood-indicator:hover {
  transform: scale(1.1);
}

/* Achievement animations */
@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes slideUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
  20%, 40%, 60%, 80% { transform: translateX(2px); }
}

@keyframes pulseSoft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes confetti {
  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;
  }
}

@keyframes moodBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.2) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

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

.animate-slide-up {
  animation: slideUp 0.4s ease-out;
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease-out;
}

.animate-shake {
  animation: shake 0.5s ease-in-out;
}

.animate-pulse-soft {
  animation: pulseSoft 2s ease-in-out infinite;
}

.animate-confetti {
  animation: confetti 0.8s ease-out;
}

.animate-mood-bounce {
  animation: moodBounce 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Placeholder image styles */
.placeholder-img {
  width: 100%;
  height: 120px;
  background: linear-gradient(90deg, #f4e5d3 30%, #e5c5a0 100%);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b5a2b;
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  position: relative;
  overflow: hidden;
}

.placeholder-img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
  background-size: 200px 100%;
  animation: shimmer 3s infinite;
}

.dark .placeholder-img {
  background: linear-gradient(90deg, #4a2f17 30%, #6f4823 100%);
  color: #d4a574;
}

/* Enhanced button styles */
button {
  cursor: pointer;
  user-select: none;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Achievement grid styles */
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.75rem;
}

.achievement-item {
  aspect-ratio: 1;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.achievement-item.unlocked {
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border: 2px solid #f59e0b;
  box-shadow: 0 4px 15px -2px rgba(251, 191, 36, 0.4);
}

.achievement-item.locked {
  background: #f4e5d3;
  border: 2px solid #e5c5a0;
  opacity: 0.6;
  filter: grayscale(100%);
}

.dark .achievement-item.locked {
  background: #4a2f17;
  border: 2px solid #6f4823;
}

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

.achievement-item.unlocked:hover {
  box-shadow: 0 8px 25px -2px rgba(251, 191, 36, 0.6);
}

/* Progress bar enhancements */
.progress-bar {
  width: 100%;
  height: 0.5rem;
  background: #f4e5d3;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.dark .progress-bar {
  background: #4a2f17;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #fbbf24, #f97316);
  border-radius: 9999px;
  transition: width 0.7s ease-out;
  position: relative;
}

.progress-fill::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: progressShine 2s infinite;
}

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

/* Streak indicator styles */
.streak-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, #fed7aa, #fb923c);
  border-radius: 0.75rem;
  border: 2px solid #f97316;
}

.streak-flame {
  font-size: 1.5rem;
  animation: flameFlicker 1s ease-in-out infinite alternate;
}

@keyframes flameFlicker {
  0% { transform: scale(1) rotate(-2deg); }
  100% { transform: scale(1.1) rotate(2deg); }
}

.flame-hot {
  animation: flameFlicker 0.7s ease-in-out infinite alternate;
  filter: hue-rotate(220deg) brightness(1.2);
}

.flame-legendary {
  animation: flameFlicker 0.5s ease-in-out infinite alternate;
  filter: hue-rotate(280deg) brightness(1.3);
}

/* Vote controls styling */
.voting-controls {
  user-select: none;
}

.vote-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

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

.vote-button:active {
  transform: scale(0.95);
}

.vote-button.liked {
  background: #dcfce7;
  color: #15803d;
  border-color: #bbf7d0;
}

.vote-button.disliked {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

.dark .vote-button.liked {
  background: #14532d;
  color: #bbf7d0;
  border-color: #166534;
}

.dark .vote-button.disliked {
  background: #7f1d1d;
  color: #fecaca;
  border-color: #991b1b;
}

/* Mood meter styles */
.mood-meter {
  padding: 1rem;
  border-radius: 0.75rem;
  border: 2px solid;
  transition: all 0.3s ease;
}

.mood-amazing {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.mood-good {
  background: #fefce8;
  border-color: #fde047;
  color: #a3a30d;
}

.mood-neutral {
  background: #f4e5d3;
  border-color: #e5c5a0;
  color: #8b5a2b;
}

.mood-disappointed {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.dark .mood-amazing {
  background: #14532d;
  border-color: #166534;
  color: #bbf7d0;
}

.dark .mood-good {
  background: #422006;
  border-color: #713f12;
  color: #fde047;
}

.dark .mood-neutral {
  background: #4a2f17;
  border-color: #6f4823;
  color: #d4a574;
}

.dark .mood-disappointed {
  background: #7f1d1d;
  border-color: #991b1b;
  color: #fecaca;
}

/* Easter egg indicators */
.easter-egg-indicator {
  padding: 0.75rem;
  background: linear-gradient(135deg, #e9d5ff, #c084fc);
  border-radius: 0.75rem;
  border: 2px solid #a855f7;
  font-size: 0.875rem;
  font-weight: 600;
  color: #7c3aed;
}

.dark .easter-egg-indicator {
  background: linear-gradient(135deg, #581c87, #7c3aed);
  color: #e9d5ff;
}

/* Responsive improvements */
@media (max-width: 640px) {
  .game-card {
    transform: perspective(800px) rotateX(1deg);
  }

  .achievement-grid {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  }

  .streak-indicator {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

/* Print styles */
@media print {
  .game-card,
  .bounce-hover,
  .squash-active {
    transform: none !important;
    transition: none !important;
  }

  .animate-bounce-in,
  .animate-shake,
  .animate-confetti {
    animation: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .coffee-gradient,
  .amber-gradient {
    background: #000;
    color: #fff;
  }

  .dark .coffee-gradient,
  .dark .amber-gradient {
    background: #fff;
    color: #000;
  }
}

/* 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;
  }

  .game-card:hover {
    transform: none;
  }

  .bounce-hover:hover {
    transform: none;
  }
}

/* Ripple effect animation for voting buttons */
.ripple-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: translate(-50%, -50%);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 100px;
    height: 100px;
    opacity: 0;
  }
}

/* Voting button enhancements */
.voting-button {
  position: relative;
  overflow: hidden;
}

.voting-button:active {
  transform: scale(0.95);
}

/* Quick action button styles */
.quick-action-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B4513 0%, #D2691E 50%, #F4A460 100%);
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 8px 32px rgba(139, 69, 19, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-action-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(139, 69, 19, 0.4);
}

.quick-action-fab:active {
  transform: scale(0.95);
}

/* Filter buttons */
.filter-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.filter-button {
  padding: 0.5rem 1rem;
  border: 2px solid transparent;
  border-radius: 0.75rem;
  background: rgb(241 245 249);
  color: rgb(71 85 105);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-button:hover {
  background: rgb(226 232 240);
  transform: translateY(-1px);
}

.filter-button.active {
  background: linear-gradient(135deg, #8B4513 0%, #D2691E 50%, #F4A460 100%);
  color: white;
  border-color: #D2691E;
}

.dark .filter-button {
  background: rgb(51 65 85);
  color: rgb(203 213 225);
}

.dark .filter-button:hover {
  background: rgb(71 85 105);
}

/* Enhanced list transitions */
.place-list-enter-active,
.place-list-leave-active {
  transition: all 0.4s ease;
}

.place-list-enter-from {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
}

.place-list-leave-to {
  opacity: 0;
  transform: translateX(-20px) scale(0.95);
}

.place-list-move {
  transition: transform 0.4s ease;
}

/* Tooltip styles */
.tooltip {
  position: relative;
}

.tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

.tooltip::after {
  content: '';
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.tooltip:hover::before,
.tooltip:hover::after {
  opacity: 1;
}

/* Enhanced card animations */
.game-card {
  transform-origin: center;
}

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

.game-card:active {
  transform: translateY(0) scale(0.98);
}

/* Color for metadata text */
.text-brown-400 {
  color: #a78a6b;
}

.dark .text-brown-400 {
  color: #d4b896;
}

/* Reset e base styles */
* {
  box-sizing: border-box;
}

/* Dark mode variables */
:root {
  --coffee-50: #fdf7f0;
  --coffee-100: #f4e5d3;
  --coffee-200: #e5c5a0;
  --coffee-300: #d4a574;
  --coffee-400: #c18851;
  --coffee-500: #a16932;
  --coffee-600: #8b5a2b;
  --coffee-700: #6f4823;
  --coffee-800: #4a2f17;
  --coffee-900: #2d1c0e;
}

/* Improved filter buttons - stay on one line */
.filter-buttons {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-buttons::-webkit-scrollbar {
  display: none;
}

.filter-button {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;

  /* Linea guida 7: Non tutti i pulsanti hanno bisogno di uno sfondo colorato */
  background: transparent;
  color: #8b5a2b;

  /* Linea guida 4: Usa meno bordi */
  border: 1px solid transparent;
}

.filter-button:hover {
  background: rgba(139, 90, 43, 0.1);
  color: #6f4823;
}

.filter-button.active {
  /* Linea guida 6: Usa bordi colorati di accento per aggiungere vivacità */
  background: rgba(139, 90, 43, 0.15);
  color: #6f4823;
  border-color: rgba(139, 90, 43, 0.3);
  font-weight: 600;
}

/* Dark mode for filters */
.dark .filter-button {
  color: #d4a574;
}

.dark .filter-button:hover {
  background: rgba(212, 165, 116, 0.15);
  color: #e5c5a0;
}

.dark .filter-button.active {
  background: rgba(212, 165, 116, 0.2);
  color: #f4e5d3;
  border-color: rgba(212, 165, 116, 0.4);
}

/* Improved card styling with less borders */
.game-card {
  /* Linea guida 3: Sposta le ombre invece di usare bordi */
  box-shadow: 0 2px 8px rgba(139, 90, 43, 0.15);
  border: 1px solid rgba(139, 90, 43, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card:hover {
  /* Linea guida 3: Ombre naturali con offset verticale */
  box-shadow: 0 4px 16px rgba(139, 90, 43, 0.2);
  transform: translateY(-2px);
}

/* Improved section headers */
.section-header {
  /* Linea guida 15: Riduci la dimensione dei titoli nelle UI applicative */
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-header .count {
  /* Linea guida 11: Riduci i contrasti inutili nei contenuti secondari */
  opacity: 0.7;
  font-weight: 400;
  margin-left: 0.5rem;
}

/* Improved sidebar styling */
.sidebar-title {
  /* Linea guida 9: Riduci la dimensione e l'enfasi dei titoli nelle sidebar */
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--coffee-600);
  margin-bottom: 0.75rem;
}

.dark .sidebar-title {
  color: var(--coffee-400);
}

/* Improved stats grid with better hierarchy */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.stat-card {
  /* Linea guida 4: Usa meno bordi */
  background: rgba(139, 90, 43, 0.05);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  /* Linea guida 3: Ombre invece di bordi */
  box-shadow: 0 1px 3px rgba(139, 90, 43, 0.1);
}

.dark .stat-card {
  background: rgba(212, 165, 116, 0.1);
}

.stat-value {
  /* Linea guida 1: Usa colore e peso per creare gerarchia */
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--coffee-800);
  line-height: 1.2;
}

.dark .stat-value {
  color: var(--coffee-100);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--coffee-600);
  margin-top: 0.25rem;
}

.dark .stat-label {
  color: var(--coffee-400);
}

/* Improved spacing and alignment */
.content-section {
  /* Linea guida 14: Separa elementi correlati solo se necessario */
  margin-bottom: 1.5rem;
}

.content-section:last-child {
  margin-bottom: 0;
}

/* Better button hierarchy */
.btn-primary {
  background: linear-gradient(135deg, #c18851, #8b5a2b);
  color: white;
  font-weight: 600;
  border: none;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  box-shadow: 0 4px 12px rgba(139, 90, 43, 0.3);
  transform: translateY(-1px);
}

.btn-secondary {
  /* Linea guida 7: Azioni secondarie con meno enfasi */
  background: transparent;
  color: var(--coffee-600);
  border: 1px solid rgba(139, 90, 43, 0.3);
  font-weight: 500;
}

.btn-secondary:hover {
  background: rgba(139, 90, 43, 0.1);
}

.dark .btn-secondary {
  color: var(--coffee-400);
  border-color: rgba(212, 165, 116, 0.3);
}

.dark .btn-secondary:hover {
  background: rgba(212, 165, 116, 0.15);
}

/* Improved form styling */
.form-input {
  /* Linea guida 4: Meno bordi, più focus su ombre */
  border: 1px solid rgba(139, 90, 43, 0.2);
  box-shadow: 0 1px 3px rgba(139, 90, 43, 0.1);
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: rgba(139, 90, 43, 0.4);
  box-shadow: 0 0 0 3px rgba(139, 90, 43, 0.1);
  outline: none;
}

/* Quick action fab improvements */
.quick-action-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #c18851, #8b5a2b);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  /* Linea guida 3: Ombre con offset verticale */
  box-shadow: 0 4px 12px rgba(139, 90, 43, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 50;
}

.quick-action-fab:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(139, 90, 43, 0.5);
}

/* Improved transition animations */
.place-list-move,
.place-list-enter-active,
.place-list-leave-active {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.place-list-enter-from {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
}

.place-list-leave-to {
  opacity: 0;
  transform: translateY(-20px) scale(0.95);
}

.place-list-leave-active {
  position: absolute;
  width: 100%;
}

/* Better responsive design */
@media (max-width: 640px) {
  .filter-buttons {
    gap: 6px;
    padding-bottom: 4px;
  }

  .filter-button {
    padding: 6px 10px;
    font-size: 12px;
  }

  .stats-grid {
    gap: 0.5rem;
  }

  .stat-card {
    padding: 0.75rem;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .quick-action-fab {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
}

/* Tooltip improvements */
.tooltip {
  position: relative;
}

.tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(45, 28, 14, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
  margin-bottom: 4px;
}

/* Loading states */
.loading-shimmer {
  background: linear-gradient(90deg, transparent, rgba(139, 90, 43, 0.1), transparent);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

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