/* ======================== Body ======================== */
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #1e202b 0%, #009ad8 100%);
  overflow-x: hidden;
  position: relative;
  font-family: Arial, sans-serif;
  color: #fff;
}

/* ======================== Animated Clouds ======================== */
.clouds {
  position: fixed;
  top: 10%;
  left: -20%;
  width: 150%;
  height: 200px;
  background-image: url('../img/OIP.webp'), url('../img/OIP.webp');
  background-repeat: repeat-x, repeat-x;
  background-position: top left, top right;
  background-size: contain;
  opacity: 0.15;
  animation: moveClouds 60s linear infinite;
  pointer-events: none;
  z-index: -1;
}

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

/* ======================== Navbar ======================== */
.navbar {
  background-color: #1E202B !important;
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.navbar-brand img {
  margin-right: 10px;
}

.navbar-brand .name-icon {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  transition: all;
}

.navbar-brand .small {
  color: #fff;
  font-size: 12px;
  display: block;
}

.navbar-toggler {
  border: none;
  background: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  margin-left: auto;
  display: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='black' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  filter: invert(1);
  background-color: #fff;
  padding: 4px;
  border-radius: 4px;
}

.navbar-collapse {
  display: flex !important;
  justify-content: flex-end;
  align-items: center;
}

.navbar-nav {
  display: flex;
  gap: 10px;
}

.navbar-nav .nav-link {
  color: #fff;
  padding: 8px 16px;
  border-radius: 30px;
  transition: all 0.3s;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: #009ad8 !important;
  border: 2px solid #009ad8;
  background-color: #22232b;
}

/* ======================== Title ======================== */
.title {
  backdrop-filter: blur(10px);
  font-family: "Bitter", serif;
  font-size: 60px;
  color: #1a237e;
  text-shadow: 1px 2px 8px #fff, 0 2px 4px #e3f2fd;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 100px;
  width: 57%;
  margin: auto;
  background: rgba(255,255,255,0.18);
  padding: 16px 0;
}

/* ======================== Search Bar ======================== */
.search-bar {
  margin: auto;
  width: 50%;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.30);
  border-radius: 2rem;
  position: relative;
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 32px rgba(0, 154, 216, 0.10);
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #1a237e;
  padding: 20px 140px 20px 20px;
  font-size: 1.2rem;
  border-radius: 6rem;
  font-weight: 500;
}

.search-bar input::placeholder {
  color: #1a237e;
  opacity: 0.5;
}

.search-bar button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  height: 56px;
  min-width: 120px;
  border: none;
  border-radius: 2rem;
  background: linear-gradient(90deg, #009ad8, #007bb5);
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 12px rgba(0,154,216,0.09);
}

.search-bar button:hover {
  background: linear-gradient(90deg, #007bb5, #009ad8);
  color: #fff;
}

/* ======================== Table ======================== */
table {
  border: 2px solid #fff;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

th {
  width: calc(100% / 3);
  border-bottom: 2px solid #e3f2fd;
  font-size: 1.2rem;
  background: #f5f7fa;
  color: #22232b;
  padding: 10px 5px;
}

.table .info {
  background: linear-gradient(135deg, #e3f2fd 60%, #ffffff 100%);
  color: #0d47a1;
  border-radius: 20px 0 0 20px;
  box-shadow: 0 2px 16px rgba(0, 154, 216, 0.07);
  text-align: left;
  font-weight: 500;
  height: 100px;
  padding: 10px 20px;
  transition: background 0.4s;
}

#infoweathertomorrow, #aftertomorrow {
  background: #fff;
  color: #22232b;
  border-radius: 0 0 20px 0;
  box-shadow: 0 2px 16px rgba(34, 35, 43, 0.03);
  padding: 0 20px;
  text-align: center;
  font-weight: 500;
  height: 100px;
}

.table tbody td {
  border-right: 1px solid #e3f2fd;
  vertical-align: middle;
}

.table tbody td:last-child {
  border-right: none;
}

.table .info .deggre,
#infoweathertomorrow .deggre,
#aftertomorrow .deggre {
  font-size: 3.5rem;
  font-weight: bold;
  color: #0d47a1;
}

.table .info .icons ul li,
#infoweathertomorrow .icons ul li,
#aftertomorrow .icons ul li {
  color: #009ad8;
  font-size: 1.3rem;
  margin-right: 15px;
  list-style: none;
  display: inline-block;
}

/* ======================== Footer ======================== */
footer {
  background-color: #1e202b;
  color: #fff;
  border-top: 2px solid #009ad8;
  padding-bottom: 20px;
}

footer .search-bar {
  position: relative;
  width: 100%;
  max-width: 100%;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

footer .search-bar input {
  width: 100%;
  padding: 20px 110px 20px 20px;
  border-radius: 2rem;
  border: 1px solid #009ad8;
  background: #22232b;
  color: #fff !important;
  font-size: 1.1rem;
  font-weight: 500;
  outline: none;
  box-shadow: 0 1px 8px rgba(0,154,216,0.06);
}

footer .search-bar input::placeholder {
  color: #bfc1c8 !important;
  opacity: 1 !important;
}

footer .search-bar button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  height: 48px;
  min-width: 100px;
  border: none;
  border-radius: 2rem;
  background: linear-gradient(90deg, #009ad8, #007bb5);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 12px rgba(0,154,216,0.09);
}

footer .search-bar button:hover {
  background: linear-gradient(90deg, #007bb5, #009ad8);
  color: #fff;
}

.conact .icons ul {
  display: flex;
}

.conact .icons li {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #009ad8;
  font-size: 1.875rem;
  margin-left: 0.625rem;
  background-color: #22232b;
  border: 1px solid #009ad8;
  padding: 2px;
  transition: all 0.3s;
}

.conact .icons li:hover {
  color: #fff;
  background-color: #009ad8;
  border-color: #fff;
}

/* ======================== Responsive ======================== */
@media (max-width: 992px) {
  .navbar .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-collapse {
    width: 100%;
  }

  .navbar-nav {
    flex-direction: column;
    width: 100%;
  }

  .navbar-nav .nav-item,
  .navbar-nav .nav-link {
    width: 100%;
    text-align: left;
    padding: 10px 20px;
  }

  .navbar-toggler {
    display: block;
  }
}

@media (max-width: 768px) {
  .title {
    font-size: 2rem;
    border-radius: 20px;
    padding: 10px 0;
    width: 90%;
  }

  .search-bar {
    width: 90%;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }

  .search-bar input,
  .search-bar button {
    width: 100% !important;
    font-size: 1rem;
  }

  th,
  td {
    display: block;
    width: 100%;
    border-right: none !important;
  }

  table {
    border: none;
  }

  table .info,
  #infoweathertomorrow,
  #aftertomorrow {
    border-radius: 10px !important;
    box-shadow: 0 2px 12px rgba(0, 154, 216, 0.05);
    padding: 15px;
    margin-bottom: 15px;
    height: auto !important;
  }

  .table .info .deggre,
  #infoweathertomorrow .deggre,
  #aftertomorrow .deggre {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  footer .search-bar input,
  footer .search-bar button {
    font-size: 0.9rem;
    padding: 10px;
  }

  .conact .icons ul {
    justify-content: center;
  }

  .conact .icons li {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}
