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

body {
  font-family: "Vazir", sans-serif;
  line-height: 1.6;
  color: #333;
  min-height: 100vh;
  position: relative;
  padding: 1rem;
}

/* تقویت متن‌های پررنگ با text-shadow */
b,
strong,
.card-title,
.temperature,
.max-temp {
  text-shadow: 0 0 0.5px currentColor;
}

/* Weather Background Types */
.sunny {
  background: linear-gradient(135deg, #ffde7d, #ff9e43);
  animation: sunny-bg 20s infinite;
}

.cloudy {
  background: linear-gradient(135deg, #b0c4de, #708090);
  animation: cloudy-bg 20s infinite;
}

.rainy {
  background: linear-gradient(135deg, #4682b4, #2c3e50);
  animation: rainy-bg 20s infinite;
}

.snowy {
  background: linear-gradient(135deg, #e0ffff, #b0e0e6);
  animation: snowy-bg 20s infinite;
}

.stormy {
  background: linear-gradient(135deg, #4b4b4b, #2c3e50);
  animation: stormy-bg 10s infinite;
}

@keyframes sunny-bg {
  0%,
  100% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
}

@keyframes cloudy-bg {
  0%,
  100% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
}

@keyframes rainy-bg {
  0%,
  100% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
}

@keyframes snowy-bg {
  0%,
  100% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
}

@keyframes stormy-bg {
  0%,
  100% {
    background-position: 0% 0%;
  }
  25% {
    background-position: 50% 50%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 50% 50%;
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

/* Typography */
.title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Glass Cards */
.glass-card {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Cards */
.card {
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.card-header {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.card-title {
  font-weight: bold;
  font-size: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-content {
  padding: 1rem;
}

/* Search Form */
.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-container {
  position: relative;
  flex: 1;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: #333;
  font-family: "Vazir", sans-serif;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0 0 0.5rem 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
  display: none;
}

.search-suggestions.active {
  display: block;
}

.suggestion-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.suggestion-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.search-button {
  padding: 0.50rem 1.25rem;
  background-color: rgba(59, 130, 246, 0.8);
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-family: "Vazir", sans-serif;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.search-button:hover {
  background-color: rgba(37, 99, 235, 0.9);
  transform: translateY(-2px);
}

.search-icon {
  font-size: 1.25rem;
}

.error {
  color: #ef4444;
  margin-top: 0.5rem;
  text-align: center;
  background-color: rgba(254, 226, 226, 0.8);
  padding: 0.5rem;
  border-radius: 0.25rem;
}

/* Unit Toggle */
.unit-toggle {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.unit-button {
  padding: 0.25rem 0.5rem;
  background-color: rgba(255, 255, 255, 0.2);
  color: #333;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  font-family: "Vazir", sans-serif;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.unit-button:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.unit-button.active {
  background-color: rgba(255, 255, 255, 0.8);
  font-weight: bold;
}

/* Temperature Container */
.temperature-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Weather Grid */
.weather-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .weather-grid {
    grid-template-columns: 2fr 1fr;
  }
}

/* Current Weather */
.current-weather {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .current-weather {
    flex-direction: row;
    justify-content: space-between;
  }
}

.temperature {
  font-size: 4rem;
  font-weight: bold;
  color: #333;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.weather-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Weather SVG Icons */
.weather-svg-icon {
  width: 100px;
  height: 100px;
  position: relative;
  margin-bottom: 0.5rem;
}

.weather-svg-icon.small {
  width: 64px;
  height: 64px;
}

.weather-svg-icon.tiny {
  width: 32px;
  height: 32px;
}

.weather-svg-icon.sunny {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><circle cx="32" cy="32" r="16" fill="%23FFD700" stroke="%23FF9E43" stroke-width="2"/><line x1="32" y1="8" x2="32" y2="12" stroke="%23FFD700" stroke-width="3" stroke-linecap="round"/><line x1="32" y1="52" x2="32" y2="56" stroke="%23FFD700" stroke-width="3" stroke-linecap="round"/><line x1="8" y1="32" x2="12" y2="32" stroke="%23FFD700" stroke-width="3" stroke-linecap="round"/><line x1="52" y1="32" x2="56" y2="32" stroke="%23FFD700" stroke-width="3" stroke-linecap="round"/><line x1="16" y1="16" x2="20" y2="20" stroke="%23FFD700" stroke-width="3" stroke-linecap="round"/><line x1="44" y1="44" x2="48" y2="48" stroke="%23FFD700" stroke-width="3" stroke-linecap="round"/><line x1="16" y1="48" x2="20" y2="44" stroke="%23FFD700" stroke-width="3" stroke-linecap="round"/><line x1="44" y1="20" x2="48" y2="16" stroke="%23FFD700" stroke-width="3" stroke-linecap="round"/></svg>')
    no-repeat center center;
  background-size: contain;
  animation: pulse 3s infinite;
}

.weather-svg-icon.clear-night {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path d="M40,32c0,4.418-3.582,8-8,8s-8-3.582-8-8s3.582-8,8-8S40,27.582,40,32z" fill="%23E0E0E0" stroke="%23CCCCCC" stroke-width="1"/><circle cx="28" cy="27" r="1.5" fill="%23CCCCCC" /><circle cx="34" cy="34" r="1" fill="%23CCCCCC" /><circle cx="36" cy="28" r="1" fill="%23CCCCCC" /><circle cx="30" cy="32" r="0.5" fill="%23CCCCCC" /></svg>')
    no-repeat center center;
  background-size: contain;
  animation: twinkle 3s infinite;
}

.weather-svg-icon.cloudy {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path d="M50,36c0,6.627-5.373,12-12,12H18c-5.523,0-10-4.477-10-10s4.477-10,10-10c0.338,0,0.671,0.017,1,0.05C20.056,21.447,25.764,16,32.5,16c7.732,0,14,6.268,14,14c0,0.685-0.049,1.358-0.144,2.017C48.405,32.016,50,33.827,50,36z" fill="%23FFFFFF" stroke="%23CCCCCC" stroke-width="1"/></svg>')
    no-repeat center center;
  background-size: contain;
  animation: float 6s infinite;
}

.weather-svg-icon.partly-cloudy-day {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><circle cx="32" cy="24" r="8" fill="%23FFD700" stroke="%23FF9E43" stroke-width="1"/><path d="M50,40c0,5.523-4.477,10-10,10H20c-4.418,0-8-3.582-8-8s3.582-8,8-8c0.338,0,0.671,0.017,1,0.05C22.056,28.447,26.764,24,32.5,24c6.351,0,11.5,5.149,11.5,11.5c0,0.685-0.049,1.358-0.144,2.017C45.405,37.516,50,38.827,50,40z" fill="%23FFFFFF" stroke="%23CCCCCC" stroke-width="1"/></svg>')
    no-repeat center center;
  background-size: contain;
  animation: float 6s infinite;
}

.weather-svg-icon.partly-cloudy-night {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path d="M32,24c0,3.314-2.686,6-6,6s-6-2.686-6-6s2.686-6,6-6S32,20.686,32,24z" fill="%23E0E0E0" stroke="%23CCCCCC" stroke-width="1"/><path d="M50,40c0,5.523-4.477,10-10,10H20c-4.418,0-8-3.582-8-8s3.582-8,8-8c0.338,0,0.671,0.017,1,0.05C22.056,28.447,26.764,24,32.5,24c6.351,0,11.5,5.149,11.5,11.5c0,0.685-0.049,1.358-0.144,2.017C45.405,37.516,50,38.827,50,40z" fill="%23FFFFFF" stroke="%23CCCCCC" stroke-width="1"/></svg>')
    no-repeat center center;
  background-size: contain;
  animation: float 6s infinite;
}

.weather-svg-icon.rainy {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path d="M50,24c0,6.627-5.373,12-12,12H18c-5.523,0-10-4.477-10-10s4.477-10,10-10c0.338,0,0.671,0.017,1,0.05C20.056,9.447,25.764,4,32.5,4c7.732,0,14,6.268,14,14c0,0.685-0.049,1.358-0.144,2.017C48.405,20.016,50,21.827,50,24z" fill="%23FFFFFF" stroke="%23CCCCCC" stroke-width="1" /><line x1="24" y1="42" x2="22" y2="48" stroke="%234682B4" stroke-width="2" stroke-linecap="round"/><line x1="32" y1="42" x2="30" y2="48" stroke="%234682B4" stroke-width="2" stroke-linecap="round"/><line x1="40" y1="42" x2="38" y2="48" stroke="%234682B4" stroke-width="2" stroke-linecap="round"/></svg>')
    no-repeat center center;
  background-size: contain;
  animation: shake 6s infinite;
}

.weather-svg-icon.rain-day {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><circle cx="32" cy="16" r="6" fill="%23FFD700" stroke="%23FF9E43" stroke-width="1"/><path d="M50,32c0,5.523-4.477,10-10,10H20c-4.418,0-8-3.582-8-8s3.582-8,8-8c0.338,0,0.671,0.017,1,0.05C22.056,20.447,26.764,16,32.5,16c6.351,0,11.5,5.149,11.5,11.5c0,0.685-0.049,1.358-0.144,2.017C45.405,29.516,50,30.827,50,32z" fill="%23FFFFFF" stroke="%23CCCCCC" stroke-width="1" /><line x1="24" y1="46" x2="22" y2="52" stroke="%234682B4" stroke-width="2" stroke-linecap="round"/><line x1="32" y1="46" x2="30" y2="52" stroke="%234682B4" stroke-width="2" stroke-linecap="round"/><line x1="40" y1="46" x2="38" y2="52" stroke="%234682B4" stroke-width="2" stroke-linecap="round"/></svg>')
    no-repeat center center;
  background-size: contain;
  animation: shake 6s infinite;
}

.weather-svg-icon.rain-night {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path d="M32,16c0,3.314-2.686,6-6,6s-6-2.686-6-6s2.686-6,6-6S32,10.686,32,16z" fill="%23E0E0E0" stroke="%23CCCCCC" stroke-width="1"/><path d="M50,32c0,5.523-4.477,10-10,10H20c-4.418,0-8-3.582-8-8s3.582-8,8-8c0.338,0,0.671,0.017,1,0.05C22.056,20.447,26.764,16,32.5,16c6.351,0,11.5,5.149,11.5,11.5c0,0.685-0.049,1.358-0.144,2.017C45.405,29.516,50,30.827,50,32z" fill="%23FFFFFF" stroke="%23CCCCCC" stroke-width="1" /><line x1="24" y1="46" x2="22" y2="52" stroke="%234682B4" stroke-width="2" stroke-linecap="round"/><line x1="32" y1="46" x2="30" y2="52" stroke="%234682B4" stroke-width="2" stroke-linecap="round"/><line x1="40" y1="46" x2="38" y2="52" stroke="%234682B4" stroke-width="2" stroke-linecap="round"/></svg>')
    no-repeat center center;
  background-size: contain;
  animation: shake 6s infinite;
}

.weather-svg-icon.thunderstorm {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path d="M50,24c0,6.627-5.373,12-12,12H18c-5.523,0-10-4.477-10-10s4.477-10,10-10c0.338,0,0.671,0.017,1,0.05C20.056,9.447,25.764,4,32.5,4c7.732,0,14,6.268,14,14c0,0.685-0.049,1.358-0.144,2.017C48.405,20.016,50,21.827,50,24z" fill="%23FFFFFF" stroke="%23CCCCCC" stroke-width="1" /><path d="M30,36l-4,12h4l-2,10l10-14h-6l4-8H30z" fill="%23FFD700" stroke="%23FF9E43" stroke-width="1"/></svg>')
    no-repeat center center;
  background-size: contain;
  animation: flash 8s infinite;
}

.weather-svg-icon.snow {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path d="M50,24c0,6.627-5.373,12-12,12H18c-5.523,0-10-4.477-10-10s4.477-10,10-10c0.338,0,0.671,0.017,1,0.05C20.056,9.447,25.764,4,32.5,4c7.732,0,14,6.268,14,14c0,0.685-0.049,1.358-0.144,2.017C48.405,20.016,50,21.827,50,24z" fill="%23FFFFFF" stroke="%23CCCCCC" stroke-width="1" /><circle cx="24" cy="44" r="2" fill="%23FFFFFF" stroke="%23CCCCCC" stroke-width="1"/><circle cx="32" cy="48" r="2" fill="%23FFFFFF" stroke="%23CCCCCC" stroke-width="1"/><circle cx="40" cy="44" r="2" fill="%23FFFFFF" stroke="%23CCCCCC" stroke-width="1"/></svg>')
    no-repeat center center;
  background-size: contain;
  animation: float 6s infinite;
}

.weather-svg-icon.fog {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path d="M50,24c0,6.627-5.373,12-12,12H18c-5.523,0-10-4.477-10-10s4.477-10,10-10c0.338,0,0.671,0.017,1,0.05C20.056,9.447,25.764,4,32.5,4c7.732,0,14,6.268,14,14c0,0.685-0.049,1.358-0.144,2.017C48.405,20.016,50,21.827,50,24z" fill="%23FFFFFF" stroke="%23CCCCCC" stroke-width="1" /><line x1="16" y1="40" x2="48" y2="40" stroke="%23CCCCCC" stroke-width="2" stroke-linecap="round"/><line x1="16" y1="46" x2="48" y2="46" stroke="%23CCCCCC" stroke-width="2" stroke-linecap="round"/><line x1="16" y1="52" x2="48" y2="52" stroke="%23CCCCCC" stroke-width="2" stroke-linecap="round"/></svg>')
    no-repeat center center;
  background-size: contain;
  animation: fade 6s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.1);
    filter: brightness(1.2);
  }
}

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

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

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

@keyframes flash {
  0%,
  20%,
  40%,
  100% {
    filter: brightness(1);
  }
  10%,
  30% {
    filter: brightness(1.5);
  }
}

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

/* Weather Details */
.weather-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.weather-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.75rem;
  border-radius: 0.5rem;
  transition: transform 0.3s ease;
}

.weather-detail:hover {
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.2);
}

.detail-icon {
  font-size: 1.5rem;
}

.detail-label {
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.6);
}

/* Details List */
.details-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-item:last-child {
  border-bottom: none;
}

/* Forecast */
.forecast-scroll {
  overflow-x: auto;
  padding-bottom: 1rem;
}

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  min-width: max-content;
}

@media (min-width: 768px) {
  .forecast-grid {
    min-width: 0;
  }
}

.forecast-card-item {
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.forecast-card-item:hover {
  transform: translateY(-5px);
}

.forecast-card-item.historical {
  background-color: rgba(0, 0, 0, 0.1);
}

.forecast-date {
  padding: 0.75rem;
  font-size: 0.875rem;
  font-weight: medium;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.forecast-content {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.forecast-desc {
  font-size: 0.875rem;
  text-align: center;
  margin: 0.5rem 0;
}

.forecast-temp {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.min-temp {
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.7);
}

.max-temp {
  font-size: 0.875rem;
  font-weight: bold;
}

/* Tabs */
.tabs {
  display: flex;
  flex-direction: column;
}

.tab-list {
  display: flex;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tab-button {
  padding: 0.75rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: "Vazir", sans-serif;
  transition: all 0.3s ease;
}

.tab-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.tab-button.active {
  border-bottom-color: #3b82f6;
  color: #3b82f6;
  font-weight: bold;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Table */
.table-container {
  overflow-x: auto;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  margin-top: 1rem;
}

.forecast-table {
  width: 100%;
  border-collapse: collapse;
}

.forecast-table th,
.forecast-table td {
  padding: 0.75rem;
  text-align: right;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.forecast-table th {
  background-color: rgba(0, 0, 0, 0.1);
  font-weight: bold;
}

.forecast-table tr:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.forecast-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Location */
.location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Weather Map */
#weather-map {
  height: 400px;
  width: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
}

.map-card {
  margin-bottom: 1.5rem;
}

/* Footer */
.footer {
  text-align: center;
  color: white;
  margin-top: 2rem;
  padding-bottom: 1rem;
  position: relative;
  z-index: 10;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
      font-size: 11px;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-content {
  text-align: center;
  color: white;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Weather Animation Container */
#weather-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}

/* Mobile Optimization */
@media (max-width: 576px) {
  .title {
    font-size: 1.75rem;
  }

  .temperature {
    font-size: 3rem;
  }

  .weather-details {
    grid-template-columns: 1fr;
  }

  .card-content {
    padding: 0.75rem;
  }

  .search-button .search-text {
    display: none;
  }

  .search-button {
    padding: 0.5rem;
  }

  .tab-button {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

  #weather-map {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0.5rem;
  }

  .forecast-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

/* PWA Styles */
@media (display-mode: standalone) {
  body {
    padding: 0;
  }

  .container {
    padding: 1rem;
  }
}
