.app-wrapper {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
  /* background: linear-gradient(135deg, rgba(30, 100, 200, 0.95) 0%, rgba(50, 130, 220, 0.95) 100%); */
  background-color: #fff;
  border-radius: 5px;
  -webkit-box-shadow: 0px 0px 5px 0px #C1C1C1;
  box-shadow: 0px 0px 5px 0px #C1C1C1;
  padding: 20px 0;
}

.app-wrapper .app-title {
  font-size: 20px;
  color: var(--weather-widget-primary-contrast-color);
  background-color: var(--weather-widget-primary-color);
  padding: 5px 20px;
  clip-path: polygon(0 0, 90% 0, 100% 100%, 121% 100%, 0 100%);
  max-width: 95%;
}

.search-container {
  text-align: center;
  margin: 10px 0;
  color: #333;
  padding: 0 10px;
}

.search-box {
  display: flex;
  background: white;
  padding: 1px 10px;
  border-radius: 5px;
  backdrop-filter: blur(10px);
  /* border: 1px solid #3281dcFF; */
  -webkit-box-shadow: 0px 0px 5px 0px var(--weather-widget-primary-77);
  box-shadow: 0px 0px 5px 0px var(--weather-widget-primary-77);
  flex-wrap: nowrap;
}

#city-input {
  flex-grow: 1;
  border: none;
  background: transparent;
  color: #333;
  font-size: 1rem;
  outline: none;
}

#city-input::placeholder {
  color: rgba(0, 0, 0, 0.6);
}

#get-weather-btn {
  background: transparent;
  border: none;
  color: var(--weather-widget-primary-color);
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  height: 30px;
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#get-weather-btn:hover {
  background: transparent;
  transform: scale(1.05);
}

.weather-widget-contents {
  display: flex;
  width: 100%;
  min-height: 300px;
}

.weather-widget-container {
  display: flex;
  gap: 25px;
  margin-top: 10px;
  width: 100%;
  padding: 0 10px;
}

.widget {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
  border-radius: 5px;
  padding: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  /* animation: slideIn 0.5s ease-out; */
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.widget:hover {
  /* transform: translateY(-10px); */
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.widget-row {
  width: 100%;
}

.primary-stats-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 10px;
}

/* AQI Card inside Weather Widget */
.aqi-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  padding: 8px;
  backdrop-filter: blur(10px);
}

.widget-icon {
  font-size: 0.6rem;
  color: #ffffff;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.aqi-circle {
  position: relative;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring {
  width: 50px;
  height: 50px;
  transform: rotate(-90deg);
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.progress-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 8;
}

.progress-ring-circle {
  fill: none;
  stroke: url(#grad);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.35s;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 0;
}

.aqi-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--weather-widget-primary-contrast-color);
  text-align: center;
  z-index: 1;
}

.aqi-label {
  font-size: 0.6rem;
  color: var(--weather-widget-primary-contrast-color);
  font-weight: 700;
  letter-spacing: 2px;
}

.aqi-card .aqi-value {
  color: var(--weather-widget-primary-contrast-color);
}

/* Weather Widget */
.weather-widget {
  background: linear-gradient(135deg, var(--weather-widget-primary-color) 0%, var(--weather-widget-primary-AA) 100%);
  color: var(--weather-widget-primary-contrast-color);
  width: 100%;
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.location-info h2 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.location-info p {
  opacity: 0.8;
  font-size: 0.95rem;
}

.weather-icon {
  font-size: 3rem;
  opacity: 0.8;
}

.temp-section {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--weather-widget-primary-contrast-66);
}

.main-temp {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}

.temp-range {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  opacity: 0.9;
}

.high-temp,
.low-temp {
  display: flex;
  align-items: center;
  gap: 5px;
}

.weather-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.detail-item {
  padding: 15px;
  border-radius: 5px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--weather-widget-primary-77);
  transition: all 0.3s ease;
}

.detail-item:hover {
  background: var(--weather-widget-primary-77);
  transform: translateY(-5px);
}

.detail-item label {
  display: block;
  font-size: 0.65rem;
  opacity: 0.8;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.detail-value {
  font-size: 1.4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.last-updated-section {
  margin-top: 20px;
  text-align: center;
}

.last-updated-section p {
  font-size: 0.8rem;
  opacity: 0.7;
}

.shimmer-box {
  width: 100%;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
  background: var(--weather-widget-primary-contrast-66);
}

.shimmer-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      var(--weather-widget-primary-contrast-66),
      transparent);
  animation: shimmer 1.5s infinite;
}

.box-block {
  height: 180px;
}

.box-tile {
  height: 50px;
}

@keyframes shimmer {
  100% {
    left: 150%;
  }
}

.shimmer-content {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--weather-widget-primary-contrast-color);
  font-size: 24px;
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
  .search-container h1 {
    font-size: 2rem;
  }

  .widgets-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .widget {
    padding: 20px;
  }

  .main-temp {
    font-size: 3rem;
  }

  .temp-section {
    flex-wrap: wrap;
  }

  .weather-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .app-wrapper {
    max-width: 100%;
  }

  .search-container h1 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .search-box {
    padding: 10px 15px;
  }

  #city-input {
    font-size: 0.9rem;
  }

  .widget {
    padding: 15px;
  }

  .aqi-circle {
    width: 120px;
    height: 120px;
  }

  .progress-ring {
    width: 120px;
    height: 120px;
  }

  .aqi-value {
    font-size: 2.5rem;
  }

  .main-temp {
    font-size: 2.5rem;
  }

  .widget-header {
    gap: 10px;
  }

  .location-info h2 {
    font-size: 1.5rem;
  }
}