body {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  background-repeat: repeat;
  background-size: cover;
  animation: pan-background 60s linear infinite;
  background-attachment: fixed;
}

.glass {
  background: rgba(255, 255, 255, 0.868);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px 0 #1312116a;
}

.fade-in {
  animation: fadeIn 1.2s ease-in-out forwards;
}

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

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

/* Modal styles */
.fixed {
  position: fixed;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.bg-opacity-50 {
  --tw-bg-opacity: 0.5;
}

.overflow-y-auto {
  overflow-y: auto;
}

.h-full {
  height: 100%;
}

.w-full {
  width: 100%;
}

.hidden {
  display: none;
}

.z-50 {
  z-index: 50;
}

.relative {
  position: relative;
}

.top-20 {
  top: 5rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.rounded-md {
  border-radius: 0.375rem;
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.bg-white {
  --tw-bg-opacity: 1;
  background-color: rgba(255, 255, 255, var(--tw-bg-opacity));
}

/* Enhanced Weather Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

@keyframes bounceSubtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

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

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

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulseSubtle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

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

/* Animation Classes */
.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-bounce-subtle {
  animation: bounceSubtle 0.5s ease-in-out;
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease-out forwards;
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-slideInUp {
  animation: slideInUp 0.5s ease-out forwards;
}

.animate-spin-slow {
  animation: spinSlow 4s linear infinite;
}

.animate-pulse-subtle {
  animation: pulseSubtle 2s ease-in-out infinite;
}

.animate-pulse-slow {
  animation: pulse 3s ease-in-out infinite;
}

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

/* Enhanced Weather Widget Styling */
#weather-forecast {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 255, 240, 0.9) 100%);
  backdrop-filter: blur(12px);
  border: 2px solid #dc2626;
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  transform-origin: center;
  transition: all 0.3s ease;
}

#weather-forecast:hover {
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.15),
    0 0 0 2px rgba(34, 197, 94, 0.3) inset;
}

#current-weather {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
  border: 2px solid rgba(59, 130, 246, 0.3);
}

#current-weather::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Temperature glow effect */
#current-temp {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  display: inline-block;
}

#current-temp::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
  z-index: -1;
  border-radius: 50%;
}

/* Forecast cards styling */
#forecast-container > div {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(209, 213, 219, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#forecast-container > div:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 
    0 5px 15px rgba(34, 197, 94, 0.1),
    0 0 0 2px rgba(34, 197, 94, 0.1) inset;
}

/* Refresh button styling */
#refresh-weather {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

#refresh-weather::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

#refresh-weather:hover::before {
  width: 100px;
  height: 100px;
}

#refresh-weather:active {
  transform: scale(0.95);
}

/* Weather icons glow */
#forecast-container img {
  filter: 
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1))
    drop-shadow(0 0 10px rgba(59, 130, 246, 0.1));
  transition: all 0.3s ease;
}

#current-icon {
  filter: 
    drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2))
    drop-shadow(0 0 20px rgba(59, 130, 246, 0.2));
}

/* Last updated text */
#last-updated {
  background: linear-gradient(90deg, #6b7280, #9ca3af, #6b7280);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: textShine 3s ease-in-out infinite;
}

@keyframes textShine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}