.container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    /* For small screens */
}


.search-box button,
.search-box input,
body {
    transition: .3s
}

.info-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr))
}

#historyList,
* {
    padding: 0;
    margin: 0
}

*,
body {
    margin: 0
}

.search-box-wrapper,
body {
    position: relative
}

.condition,
.forecast-desc {
    text-transform: capitalize
}

.slider:before,
body::before {
    content: "";
    content: ""
}

* {
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif
}

body {
    height: 100vh;
    background-size: cover;
    background-image: url('images/default.jpg');
    background-position: center;
    backdrop-filter: blur(5px);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #d0d0d0;
    background-color: var(--bg-color);
    color: var(--text-color)
}

#weatherInfo {
    min-height: 650px
}



.left-panel {
    flex: 2;
    backdrop-filter: blur(10px);
    width: 100%;
    /* For mobile by default */
}

.right-panel {
    flex: 1;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    /* For mobile by default */
}


.search-box input {
    width: 70%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 10px;
    /* To create some space between input and button */
}

.search-box button {
    width: 30%;
    /* Full width for button in mobile view */
    padding: 12px 20px;
    background-color: #4fc3f7;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}


.loader {
    margin-top: 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: 1s linear infinite spin
}

@keyframes spin {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(360deg)
    }
}

.left-panel {
    color: #fff;
    background-color: rgba(0, 0, 0, .3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: .6s ease-in-out fadeIn
}

.left-panel h2 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 10px
}

.left-panel p,
.temp-feel .feels-like {
    font-size: 1.2rem
}

@media (max-width: 480px) {
    .temp-feel .feels-like {
        font-size: 0.8rem;
    }
}

@media (min-width: 481px) and (max-width: 1024px) {
    .temp-feel .feels-like {
        font-size: 1.1rem;
    }
}

.left-panel img {
    width: 100px;
    height: 100px;
    margin: 10px 0
}

.left-panel p {
    margin: 6px 0;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 8px
}

.search-box input:focus {
    outline: 0;
    box-shadow: 0 0 5px #4fc3f7
}

.search-box button:hover {
    background-color: #29b6f6
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.info-grid span,
.local-time {
    color: #ddd
}

.feels-like {
    color: #ccc
}

.info-grid div {
    display: flex;
    flex-direction: column;
    color: #f1f1f1
}

.updated-time {
    color: #bbb
}

.condition,
.feels-like,
.info-grid div,
.info-grid span,
.local-time,
.search-history,
.temp-feel .feels-like,
.updated-time {
    color: var(--text-color)
}

.center-section {
    text-align: center;
    margin-bottom: 30px
}

.temp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px
}

.temp-icon h1 {
    font-size: 5rem;
    font-weight: 700
}

.center-section img {
    width: 80px;
    height: 80px
}

.condition {
    margin-top: 10px
}

.feels-like {
    font-size: 1.1rem
}

.info-grid {
    display: grid;
    gap: 16px
}

.info-grid div {
    background: rgba(255, 255, 255, .1);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 1rem;
    display: flex;
    flex-direction: column
}

.info-grid span {
    font-weight: 500;
    margin-bottom: 4px
}

.updated-time {
    margin-top: 20px;
    font-size: .9rem;
    text-align: right
}

.top-section h2 {
    font-size: 2.5rem;
    font-weight: 700
}

.local-time {
    font-size: 1rem;
    opacity: .85;
    margin-bottom: 30px
}

.main-highlight {
    text-align: left;
    margin-bottom: 20px;
    margin-top: 140px
}

.temperature-block {
    display: flex;
    align-items: center;
    gap: 20px
}

.temp {
    font-size: 7rem;
    font-weight: lighter;
    line-height: 1
}

.condition {
    margin-bottom: 10px;
    font-size: 1.3rem
}

.info-grid {
    display: grid;
    gap: 15px;
    margin-top: -20px
}

.info-grid p {
    font-size: 1.1rem;
    background-color: rgba(255, 255, 255, .1);
    padding: 12px;
    border-radius: 12px
}
.temp-feel {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 12px
}

.icon-condition {
    display: flex;
    gap: 20px
}

.weather-icon {
    width: 100px;
    height: 100px
}

.search-box {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px
}

.search-history {
    width: 100%;
    border-radius: 16px;
    padding: 12px 16px;
    margin-top: 10px;
    font-family: Poppins, sans-serif
}

.search-history h4 {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff6c
}

#historyList {
    list-style: none;
    flex-wrap: wrap;
    gap: 8px
}

.history-item {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #ffffff6c;
    cursor: pointer;
    transition: background-color .3s
}


.forecast-card,
.forecast-date,
.forecast-desc,
.forecast-section,
.forecast-section h3 {
    color: var(--text-color)
}

.history-item:hover {
    background-color: rgba(255, 255, 255, .122)
}

.suggestion-list {
    position: absolute;
    color: black;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, .9);
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    max-height: 160px;
    overflow-y: auto;
    z-index: 99;
    display: none
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
    transition: background .2s ease-in-out
}

.suggestion-item:hover {
    background: #f0f0f0
}

.forecast-section {
    background-color: rgb(255 255 255 / 12%);
    padding: 5px 30px;
    border-radius: 16px;
    backdrop-filter: blur(8px);
    animation: .5s ease-in-out fadeIn
}

.forecast-section h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    text-align: center
}

.forecast-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 10px 0
}

.forecast-card {
    background-color: rgba(255, 255, 255, .1);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    transition: transform .3s
}

.forecast-card:hover {
    transform: translateY(-6px);
    background-color: rgba(255, 255, 255, .15)
}

.forecast-date {
    font-size: .95rem;
    margin-bottom: 8px
}

.forecast-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 6px
}

.forecast-temp {
    font-size: 1.2rem;
    font-weight: 700
}

.forecast-desc {
    font-size: .9rem
}

.unit-toggle {
    display: flex;
    align-items: flex-end;
    margin: 10px 0 10px auto
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px
}

.slider,
.slider:before {
    position: absolute;
    transition: .4s
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0
}

.slider {
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 22px
}

.slider:before {
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%
}

input:checked+.slider {
    background-color: #2196f3
}

input:checked+.slider:before {
    transform: translateX(18px)
}

.toggle-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0
}

.dark-toggle,
.unit-toggle {
    display: flex;
    align-items: center;
    gap: 8px
}

.unit-toggle {
    margin: 10px 0 10px auto;
}

.container {
    display: flex;
    height: 100vh;
    overflow: hidden
}

#welcome-message {
    text-align: center;
    color: #ffffffcc;
    font-size: 1.5rem;
    margin-top: 50%;
    padding: 30px;
    border-radius: 15px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
    font-weight: 600;
    letter-spacing: .5px;
    transition: .4s;
    animation: 1s ease-out fadeInUp
}

.left-loader-message {
    text-align: center;
    font-size: 1.3rem;
    color: #eee;
    font-style: italic;
    margin-top: 30%;
    padding: 20px 30px;
    font-weight: 500;
    letter-spacing: .4px;
    display: none;
    animation: 1s ease-in-out infinite fadeInDots
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

:root {
    --bg-color: #000000;
    --text-color: #010101a9;
    --left-panel-bg: rgba(0, 0, 0, 0.258);
    --right-panel-bg: rgba(0, 0, 0, 0.375);
    --glass-blur: blur(20px)
}

body.dark-mode {
    --bg-color: #121212;
    --text-color: #f0f0f0;
    --left-panel-bg: rgba(0, 0, 0, 0.355);
    --right-panel-bg: rgba(0, 0, 0, 0.6);
    --overlay-bg: rgba(0, 0, 0, 0.15)
}

body::before {
    background: rgba(0, 0, 0, .153);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-bg);
    z-index: -1
}

.left-panel {
    flex: 2;
    padding: 10px 40px;
    color: var(--text-color);
    backdrop-filter: blur(10px);
    background-color: var(--left-panel-bg);
    overflow-y: auto
}

.right-panel {
    flex: 1;
    background-color: var(--right-panel-bg);
    backdrop-filter: blur(8px);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start
}

.left-panel,
.right-panel,
button,
input {
    transition: background .3s, color .3s
}
@media (max-width: 400px) { 
    .container {
      flex-direction: column;
      height: auto;
    }
  
    #weatherInfo {
      min-height: 500px;
    }
  
    .left-panel,
    .right-panel {
      width: 100%;
      flex-direction: column;
    }
  
    .left-panel {
      padding: 17px 20px;
    }
  
    .right-panel {
      padding: 20px 15px;
    }
  
    .info-grid {
      grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    }
  
    .info-grid p {
      font-size: 0.85rem;
      padding: 8px;
    }
  
    .search-box {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
  
    .search-box input,
    .search-box button {
      width: 100%;
    }
  
    .temp-feel .feels-like {
      font-size: 0.8rem;
    }
  
    .top-section {
      text-align: center;
    }
  
    .top-section h2 {
      font-size: 1.8rem;
    }
  
    .top-section p {
      text-align: center;
      width: fit-content;
      margin: 0 auto;
    }
  
    .temp-icon h1 {
      font-size: 3rem;
    }
  
    .center-section img {
      width: 60px;
      height: 60px;
    }
  
    .local-time {
      font-size: 0.8rem;
      margin-bottom: 15px;
    }
  
    .main-highlight {
      margin-top: 10px;
      margin-bottom: 10px;
    }
  
    .temp {
      font-size: 3rem;
      font-size: 4rem;
    }
  
    .temperature-block {
      flex-direction: column;
      gap: 10px;
    }
  
    .icon-condition {
      flex-direction: column;
      align-items: center;
      gap: 10px;
    }
  
    .weather-icon {
      width: 70px;
      height: 70px;
    }
  
    .forecast-cards {
      grid-template-columns: 1fr;
      grid-template-columns: repeat(2, 1fr);
    }
  
    .forecast-section {
      padding: 5px 15px;
    }
  
    .forecast-card {
      padding: 10px;
    }
  
    .forecast-date,
    .forecast-desc {
      font-size: 0.85rem;
    }
  
    .forecast-temp {
      font-size: 1.05rem;
    }
  
    .forecast-icon {
      width: 40px;
      height: 40px;
    }
  
    .search-history {
      padding: 10px;
    }
  
    .history-item {
      font-size: 12px;
      padding: 4px 10px;
    }
  
    .suggestion-item {
      font-size: 0.9rem;
      padding: 8px 10px;
    }
  
    #welcome-message {
      margin-top: 30%;
      font-size: 1.2rem;
      padding: 20px;
    }
  
    .left-loader-message {
      font-size: 1.1rem;
      margin-top: 25%;
      padding: 16px;
    }
  
    .toggle-bar {
      flex-direction: row;
      align-items: flex-start;
      gap: 10px;
    }
  
    .unit-toggle {
      margin: 0;
    }
  
    .switch {
      width: 50px;
      height: 26px;
    }
  
    .slider:before {
      width: 20px;
      height: 20px;
    }
  
    input:checked + .slider:before {
      transform: translateX(24px);
    }
  }
  
@media (min-width: 401px) and (max-width: 600px) {
    .container {
      flex-direction: column;
      height: auto;
    }
  
    #weatherInfo {
      min-height: 500px;
    }
  
    .left-panel,
    .right-panel {
      width: 100%;
      flex-direction: column;
    }
  
    .left-panel {
      padding: 17px 20px;
    }
  
    .right-panel {
      padding: 20px 15px;
    }
  
    .info-grid {
      grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
  
    .info-grid p {
      font-size: 0.9rem;
      padding: 10px;
    }
  
    .search-box {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
  
    .search-box input,
    .search-box button {
      width: 100%;
    }
  
    .temp-feel .feels-like {
      font-size: 0.9rem;
    }
  
    .top-section {
      text-align: center;
    }
  
    .top-section h2 {
      font-size: 2rem;
    }
  
    .top-section p {
      text-align: center;
      width: fit-content;
      margin: 0 auto;
    }
  
    .temp-icon h1 {
      font-size: 3.5rem;
    }
  
    .center-section img {
      width: 65px;
      height: 65px;
    }
  
    .local-time {
      font-size: 0.9rem;
      margin-bottom: 15px;
    }
  
    .main-highlight {
      margin-top: 40px;
      margin-bottom: 40px;
    }
  
    .temp {
      font-size: 4rem;
    }
  
    .temperature-block {
      flex-direction: column;
      gap: 12px;
    }
  
    .icon-condition {
      flex-direction: column;
      align-items: center;
      gap: 0px;
    }
  
    .weather-icon {
      width: 105px;
      height: 105px;
    }
  
    .forecast-cards {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .forecast-section {
      padding: 5px 15px;
    }
  
    .forecast-card {
      padding: 12px;
    }
  
    .forecast-date,
    .forecast-desc {
      font-size: 0.9rem;
    }
  
    .forecast-temp {
      font-size: 1.1rem;
    }
  
    .forecast-icon {
      width: 45px;
      height: 45px;
    }
  
    .search-history {
      padding: 12px;
    }
  
    .history-item {
      font-size: 13px;
      padding: 5px 12px;
    }
  
    .suggestion-item {
      font-size: 1rem;
      padding: 10px 12px;
    }
  
    #welcome-message {
      margin-top: 25%;
      font-size: 1.3rem;
      padding: 20px;
    }
  
    .left-loader-message {
      font-size: 1.2rem;
      margin-top: 23%;
      padding: 16px;
    }
  
    .toggle-bar {
      flex-direction: row;
      align-items: flex-start;
      gap: 12px;
    }
  
    .unit-toggle {
      margin: 0;
    }
  
    .switch {
      width: 52px;
      height: 28px;
    }
  
    .slider:before {
      width: 22px;
      height: 22px;
    }
  
    input:checked + .slider:before {
      transform: translateX(26px);
    }
  }

  @media (min-width: 601px) and (max-width: 768px) {
    .container {
      flex-direction: column;
      height: auto;
    }
  
    #weatherInfo {
      min-height: 520px;
    }
  
    .left-panel,
    .right-panel {
      width: 100%;
      flex-direction: column;
    }
  
    .left-panel {
      padding: 20px 25px;
    }
  
    .right-panel {
      padding: 25px 20px;
    }
  
    .info-grid {
      grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
  
    .info-grid p {
      font-size: 1rem;
      padding: 10px;
    }
  
    .search-box {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
  
    .search-box input,
    .search-box button {
      width: 100%;
    }
  
    .temp-feel .feels-like {
      font-size: 1rem;
    }
  
    .top-section {
      text-align: center;
    }
  
    .top-section h2 {
      font-size: 2.2rem;
    }
  
    .top-section p {
      text-align: center;
      width: fit-content;
      margin: 0 auto;
    }
  
    .temp-icon h1 {
      font-size: 3.8rem;
    }
  
    .center-section img {
      width: 70px;
      height: 70px;
    }
  
    .local-time {
      font-size: 1rem;
      margin-bottom: 15px;
    }
  
    .main-highlight {
      margin-top: 12px;
      margin-bottom: 12px;
    }
  
    .temp {
      font-size: 4.2rem;
    }
  
    .temperature-block {
      flex-direction: column;
      gap: 14px;
    }
  
    .icon-condition {
      flex-direction: column;
      align-items: center;
      gap: 14px;
    }
  
    .weather-icon {
      width: 80px;
      height: 80px;
    }
  
    .forecast-cards {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .forecast-section {
      padding: 10px 20px;
    }
  
    .forecast-card {
      padding: 14px;
    }
  
    .forecast-date,
    .forecast-desc {
      font-size: 1rem;
    }
  
    .forecast-temp {
      font-size: 1.2rem;
    }
  
    .forecast-icon {
      width: 50px;
      height: 50px;
    }
  
    .search-history {
      padding: 14px;
    }
  
    .history-item {
      font-size: 14px;
      padding: 6px 14px;
    }
  
    .suggestion-item {
      font-size: 1rem;
      padding: 12px 14px;
    }
  
    #welcome-message {
      margin-top: 20%;
      font-size: 1.4rem;
      padding: 22px;
    }
  
    .left-loader-message {
      font-size: 1.3rem;
      margin-top: 20%;
      padding: 18px;
    }
  
    .toggle-bar {
      flex-direction: row;
      align-items: flex-start;
      gap: 14px;
    }
  
    .unit-toggle {
      margin: 0;
    }
  
    .switch {
      width: 54px;
      height: 30px;
    }
  
    .slider:before {
      width: 24px;
      height: 24px;
    }
  
    input:checked + .slider:before {
      transform: translateX(28px);
    }
  }

  @media (min-width: 768px) and (max-width: 992px) {
  .container {
    flex-direction: row;
    height: auto;
  }

  #weatherInfo {
    min-height: 540px;
  }

  .left-panel,
  .right-panel {
    width: 50%;
    flex-direction: row;
  }

  .left-panel {
    padding: 25px 30px;
  }

  .right-panel {
    padding: 30px 25px;
  }

  .info-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .info-grid p {
    font-size: 1.1rem;
    padding: 12px;
  }

  .search-box {
    display: flex;
    flex-direction: row;
    gap: 14px;
  }

  .search-box input,
  .search-box button {
    width: 48%;
  }

  .temp-feel .feels-like {
    font-size: 1.1rem;
  }

  .top-section {
    text-align: center;
  }

  .top-section h2 {
    font-size: 2.5rem;
  }

  .top-section p {
    text-align: center;
    width: fit-content;
    margin: 0 auto;
  }

  .temp-icon h1 {
    font-size: 4rem;
  }

  .center-section img {
    width: 90px;
    height: 90px;
  }

  .local-time {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }

  .main-highlight {
    margin-top: 15px;
    margin-bottom: 15px;
  }

  .temp {
    font-size: 4.5rem;
  }

  .temperature-block {
    flex-direction: row;
    gap: 14px;
  }

  .icon-condition {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .weather-icon {
    width: 90px;
    height: 90px;
  }

  .forecast-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .forecast-section {
    padding: 12px 25px;
  }

  .forecast-card {
    padding: 16px;
  }

  .forecast-date,
  .forecast-desc {
    font-size: 1.2rem;
  }

  .forecast-temp {
    font-size: 1.3rem;
  }

  .forecast-icon {
    width: 55px;
    height: 55px;
  }

  .search-history {
    padding: 14px;
  }

  .history-item {
    font-size: 14px;
    padding: 6px 14px;
  }

  .suggestion-item {
    font-size: 1.1rem;
    padding: 12px 14px;
  }

  #welcome-message {
    margin-top: 15%;
    font-size: 1.6rem;
    padding: 25px;
  }

  .left-loader-message {
    font-size: 1.4rem;
    margin-top: 18%;
    padding: 20px;
  }

  .toggle-bar {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
  }

  .unit-toggle {
    margin: 0;
  }

  .switch {
    width: 60px;
    height: 32px;
  }

  .slider:before {
    width: 28px;
    height: 28px;
  }

  input:checked + .slider:before {
    transform: translateX(30px);
  }
}
@media (min-width: 800px) and (max-width: 992px) { 
    .container {
      flex-direction: column; /* Stack content vertically */
      height: auto;
    }
  
    #weatherInfo {
      min-height: 540px;
    }
  
    .left-panel,
    .right-panel {
      width: 100%; /* Take full width when stacked */
      flex-direction: column; /* Stack panels vertically */
    }
  
    .left-panel {
      padding: 25px 30px;
    }
  
    .right-panel {
      padding: 30px 25px;
    }
  
    .info-grid {
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
  
    .info-grid p {
      font-size: 1.1rem;
      padding: 12px;
    }
  
    .search-box {
      display: flex;
      flex-direction: column; /* Stack search box elements vertically */
      gap: 14px;
    }
  
    .search-box input,
    .search-box button {
      width: 100%; /* Full width */
    }
  
    .temp-feel .feels-like {
      font-size: 1.1rem;
    }
  
    .top-section {
      text-align: center;
    }
  
    .top-section h2 {
      font-size: 2.5rem;
    }
  
    .top-section p {
      text-align: center;
      width: fit-content;
      margin: 0 auto;
    }
  
    .temp-icon h1 {
      font-size: 4rem;
    }
  
    .center-section img {
      width: 90px;
      height: 90px;
    }
  
    .local-time {
      font-size: 1.2rem;
      margin-bottom: 20px;
    }
  
    .main-highlight {
      margin-top: 15px;
      margin-bottom: 15px;
    }
  
    .temp {
      font-size: 4.5rem;
    }
  
    .temperature-block {
      flex-direction: column; /* Stack temperature elements vertically */
      gap: 14px;
    }
  
    .icon-condition {
      flex-direction: column; /* Stack icon and condition vertically */
      align-items: center;
      gap: 14px;
    }
  
    .weather-icon {
      width: 90px;
      height: 90px;
    }
  
    .forecast-cards {
      grid-template-columns: repeat(2, 1fr); /* Adjust grid to fit smaller screens */
    }
  
    .forecast-section {
      padding: 12px 25px;
    }
  
    .forecast-card {
      padding: 16px;
    }
  
    .forecast-date,
    .forecast-desc {
      font-size: 1.2rem;
    }
  
    .forecast-temp {
      font-size: 1.3rem;
    }
  
    .forecast-icon {
      width: 55px;
      height: 55px;
    }
  
    .search-history {
      padding: 14px;
    }
  
    .history-item {
      font-size: 14px;
      padding: 6px 14px;
    }
  
    .suggestion-item {
      font-size: 1.1rem;
      padding: 12px 14px;
    }
  
    #welcome-message {
      margin-top: 15%;
      font-size: 1.6rem;
      padding: 25px;
    }
  
    .left-loader-message {
      font-size: 1.4rem;
      margin-top: 18%;
      padding: 20px;
    }
  
    .toggle-bar {
      flex-direction: row;
      align-items: flex-start;
      gap: 16px;
    }
  
    .unit-toggle {
      margin: 0;
    }
  
    .switch {
      width: 60px;
      height: 32px;
    }
  
    .slider:before {
      width: 28px;
      height: 28px;
    }
  
    input:checked + .slider:before {
      transform: translateX(30px);
    }
  }
  @media (min-width: 992px) and (max-width: 1200px) {
  .container {
    flex-direction: row;
    height: auto;
  }

  #weatherInfo {
    min-height: 600px;
  }

  .left-panel,
  .right-panel {
    width: 48%;
    flex-direction: row;
  }

  .left-panel {
    padding: 30px 35px;
  }

  .right-panel {
    padding: 35px 30px;
  }

  .info-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .info-grid p {
    font-size: 1.2rem;
    padding: 14px;
  }

  .search-box {
    display: flex;
    flex-direction: row;
    gap: 16px;
  }

  .search-box input,
  .search-box button {
    width: 48%;
  }

  .temp-feel .feels-like {
    font-size: 1.2rem;
  }

  .top-section {
    text-align: center;
  }

  .top-section h2 {
    font-size: 3rem;
  }

  .top-section p {
    text-align: center;
    width: fit-content;
    margin: 0 auto;
  }

  .temp-icon h1 {
    font-size: 5rem;
  }

  .center-section img {
    width: 100px;
    height: 100px;
  }

  .local-time {
    font-size: 1.3rem;
    margin-bottom: 25px;
  }

  .main-highlight {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .temp {
    font-size: 5rem;
  }

  .temperature-block {
    flex-direction: row;
    gap: 16px;
  }

  .icon-condition {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .weather-icon {
    width: 100px;
    height: 100px;
  }

  .forecast-cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .forecast-section {
    padding: 16px 30px;
  }

  .forecast-card {
    padding: 18px;
  }

  .forecast-date,
  .forecast-desc {
    font-size: 1.3rem;
  }

  .forecast-temp {
    font-size: 1.4rem;
  }

  .forecast-icon {
    width: 60px;
    height: 60px;
  }

  .search-history {
    padding: 16px;
  }

  .history-item {
    font-size: 15px;
    padding: 8px 14px;
  }

  .suggestion-item {
    font-size: 1.2rem;
    padding: 14px 16px;
  }

  #welcome-message {
    margin-top: 20%;
    font-size: 1.8rem;
    padding: 30px;
  }

  .left-loader-message {
    font-size: 1.6rem;
    margin-top: 22%;
    padding: 24px;
  }

  .toggle-bar {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
  }

  .unit-toggle {
    margin: 0;
  }

  .switch {
    width: 70px;
    height: 36px;
  }

  .slider:before {
    width: 32px;
    height: 32px;
  }

  input:checked + .slider:before {
    transform: translateX(34px);
  }
}
@media (min-width: 1000px) and (max-width: 1200px) { 
    .container {
      flex-direction: row; /* Keep panels side by side */
      height: auto;
    }
  
    #weatherInfo {
      min-height: 1200px;
    }
  
    .left-panel,
    .right-panel {
      width: 48%; /* Side by side panels */
      flex-direction: column; /* Stack contents inside each panel */
    }
  
    .left-panel {
      padding: 30px 35px;
    }
  
    .right-panel {
      padding: 35px 30px;
    }
  
    .info-grid {
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Make grid items wider */
    }
  
    .info-grid p {
      font-size: 1.2rem;
      padding: 16px;
    }
  
    .search-box {
      display: flex;
      flex-direction: row; /* Keep search box elements side by side */
      gap: 16px;
    }
  
    .search-box input,
    .search-box button {
      width: 48%; /* Ensure buttons take up half the width */
    }
  
    .temp-feel .feels-like {
      font-size: 1.2rem;
    }
  
    .top-section {
      text-align: center;
    }
  
    .top-section h2 {
      font-size: 3rem;
    }
  
    .top-section p {
      text-align: center;
      width: fit-content;
      margin: 0 auto;
    }
  
    .temp-icon h1 {
      font-size: 5rem;
    }
  
    .center-section img {
      width: 100px;
      height: 100px;
    }
  
    .local-time {
      font-size: 1.3rem;
      margin-bottom: 25px;
    }
  
    .main-highlight {
      margin-top: 100px;
      margin-bottom: 50px;
      justify-content: center;
    }
  
    .temp {
      font-size: 5rem;
    }
  
    .temperature-block {
      flex-direction: row; /* Keep temperature and icons side by side */
      gap: 16px;
      justify-content: center;
    }
  
    .icon-condition {
        margin-top: 20px;
      flex-direction: row; /* Keep weather icon and condition side by side */
      align-items: center;
      gap: 16px;
      justify-content: center;
    }
  
    .weather-icon {
      width: 100px;
      height: 100px;
    }
  
    .forecast-cards {
      grid-template-columns: repeat(1, 1fr); /* Adjust for 3 columns in forecast */
    }
  
    .forecast-section {
      padding: 16px 30px;
    }
  
    .forecast-card {
      padding: 18px;
    }
  
    .forecast-date,
    .forecast-desc {
      font-size: 1.3rem;
    }
  
    .forecast-temp {
      font-size: 1.4rem;
    }
  
    .forecast-icon {
      width: 60px;
      height: 60px;
    }
  
    .search-history {
      padding: 16px;
    }
  
    .history-item {
      font-size: 15px;
      padding: 8px 14px;
    }
  
    .suggestion-item {
      font-size: 1.2rem;
      padding: 14px 16px;
    }
  
    #welcome-message {
      margin-top: 20%;
      font-size: 1.8rem;
      padding: 30px;
    }
  
    .left-loader-message {
      font-size: 1.6rem;
      margin-top: 22%;
      padding: 24px;
    }
  
    .toggle-bar {
      flex-direction: row;
      align-items: flex-start;
      gap: 20px;
    }
  
    .unit-toggle {
      margin: 0;
    }
  
    .switch {
      width: 70px;
      height: 36px;
    }
  
    .slider:before {
      width: 32px;
      height: 32px;
    }
  
    input:checked + .slider:before {
      transform: translateX(34px);
    }
  }
  @media (min-width: 1201px) and (max-width: 1279px) {
    .container {
      flex-direction: row;
      height: auto;
    }
  
    #weatherInfo {
      min-height: 700px;
    }
  
    .left-panel,
    .right-panel {
      width: 48%;
      flex-direction: row;
    }
  
    .left-panel {
      padding: 35px 40px;
    }
  
    .right-panel {
      padding: 40px 35px;
    }
  
    .info-grid {
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
  
    .info-grid p {
      font-size: 1.4rem;
      padding: 18px;
    }
  
    .search-box {
      display: flex;
      flex-direction: row;
      gap: 20px;
    }
  
    .search-box input,
    .search-box button {
      width: 48%;
    }
  
    .temp-feel .feels-like {
      font-size: 1.4rem;
    }
  
    .top-section {
      text-align: center;
    }
  
    .top-section h2 {
      font-size: 4rem;
    }
  
    .top-section p {
      text-align: center;
      width: fit-content;
      margin: 0 auto;
    }
  
    .temp-icon h1 {
      font-size: 6rem;
    }
  
    .center-section img {
      width: 120px;
      height: 120px;
    }
  
    .local-time {
      font-size: 1.5rem;
      margin-bottom: 30px;
    }
  
    .main-highlight {
      margin-top: 30px;
      margin-bottom: 30px;
    }
  
    .temp {
      font-size: 6rem;
    }
  
    .temperature-block {
      flex-direction: row;
      gap: 20px;
    }
  
    .icon-condition {
      flex-direction: row;
      align-items: center;
      gap: 20px;
    }
  
    .weather-icon {
      width: 120px;
      height: 120px;
    }
  
    .forecast-cards {
      grid-template-columns: repeat(5, 1fr);
    }
  
    .forecast-section {
      padding: 20px 40px;
    }
  
    .forecast-card {
      padding: 20px;
    }
  
    .forecast-date,
    .forecast-desc {
      font-size: 1.5rem;
    }
  
    .forecast-temp {
      font-size: 1.6rem;
    }
  
    .forecast-icon {
      width: 80px;
      height: 80px;
    }
  
    .search-history {
      padding: 20px;
    }
  
    .history-item {
      font-size: 16px;
      padding: 10px 14px;
    }
  
    .suggestion-item {
      font-size: 1.4rem;
      padding: 16px 18px;
    }
  
    #welcome-message {
      margin-top: 15%;
      font-size: 2rem;
      padding: 40px;
    }
  
    .left-loader-message {
      font-size: 1.8rem;
      margin-top: 20%;
      padding: 30px;
    }
  
    .toggle-bar {
      flex-direction: row;
      align-items: flex-start;
      gap: 25px;
    }
  
    .unit-toggle {
      margin: 0;
    }
  
    .switch {
      width: 80px;
      height: 40px;
    }
  
    .slider:before {
      width: 36px;
      height: 36px;
    }
  
    input:checked + .slider:before {
      transform: translateX(38px);
    }
  }
  