* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(180deg, #dfe9f3 0%, #ffffff 100%);
  font-family: "Cairo", sans-serif;
  min-height: 100vh;
}

/* ===== Navbar ===== */
nav.navbar {
  background: white;
  border-radius: 0 0 20px 20px;
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.4rem;
  color: #3330a5 !important;
}

.navbar .btn-primary {
  background-color: #3330a5;
  border: none;
  border-radius: 12px;
}

/* ===== Weather Card ===== */
.card {
  position: relative;
  max-width: 480px;
  margin: 50px auto;
  border: none;
  border-radius: 30px;
  background: linear-gradient(137deg, #905ad4, #3330a5);
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.card-body {
  text-align: center;
}

#icon {
  width: 120px;
  height: 120px;
  margin-bottom: 10px;
}

#description {
  font-size: 22px;
  text-transform: capitalize;
  color: #fefefe;
}

#temp {
  font-size: 70px;
  font-weight: bold;
  color: #fff;
  margin-top: 5px;
}

#country {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #fff;
}

#date {
  font-size: 14px;
  color: #eaeaea;
  margin-bottom: 25px;
}

.stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  padding: 20px 0;
}

.stats i {
  font-size: 30px;
  margin-bottom: 5px;
}

.stats span {
  display: block;
}

/* ===== Search Form ===== */
form {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 25px;
}

#cityInput {
  border-radius: 15px;
  padding: 10px 15px;
  flex: 1;
  border: none;
  outline: none;
}

#searchBtn {
  border-radius: 50%;
  background: #fff;
  color: #3330a5;
  border: none;
  width: 45px;
  height: 45px;
}

#searchBtn:hover {
  background-color: #ececec;
}

/* ===== Loader ===== */
#loader {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #eeeeee81;
  display: none;
  justify-content: center;
  align-items: center;
  border-radius: 30px;
  backdrop-filter: blur(3px);
}

/* ===== Responsive ===== */
@media (max-width: 576px) {
  .card {
    margin: 20px;
    border-radius: 25px;
  }

  #temp {
    font-size: 55px;
  }

  #country {
    font-size: 20px;
  }

  .stats i {
    font-size: 24px;
  }
}
