/* Forward declarations for Sass partials */
:root {
  --main-bg-color: #f0f2f5;
  --panel-bg-color: #ffffff;
  --text-color: #333333;
  --sub-text-color: #666666;
  --border-color: #e0e0e0;
  --primary-color: #007bff;
  --accent-color: #f16666;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition-speed: 0.3s ease;
}

body.dark-mode {
  --main-bg-color: #2c2c2c;
  --panel-bg-color: #3a3a3a;
  --text-color: #e0e0e0;
  --sub-text-color: #b0b0b0;
  --border-color: #555555;
  --primary-color: #64b5f6;
  --accent-color: #ffa726;
  --shadow-color: rgba(0, 0, 0, 0.3);
}

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  text-decoration: none;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
  font-family: "Work Sans", sans-serif;
  background-color: #f7f7f7;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

button {
  cursor: pointer;
}

/* Forward declarations for Sass partials */
:root {
  --main-bg-color: #f3edf7;
  --panel-bg-color: #f1666667;
  --text-color: #333;
  --sub-text-color: #666;
  --border-color: #e0e0e0;
  --shadow-color: rgba(115, 53, 118, 0.653);
  --primary-color: #8f02acde;
  --accent-color: #1f8091;
  --dark-main-bg-color: #222;
  --dark-panel-bg-color: #333;
  --dark-text-color: #666464;
  --dark-sub-text-color: #bbb;
  --dark-border-color: #3b3b3b;
  --dark-shadow-color: rgba(0, 0, 0, 0.424);
  --dark-primary-color: #a666ff;
  --dark-accent-color: #bdb431;
  --border-radius: 12px;
  --transition-speed: 0.3s ease-in-out;
}

body.dark-mode {
  --main-bg-color: var(--dark-main-bg-color);
  --panel-bg-color: var(--dark-panel-bg-color);
  --border-color: var(--dark-border-color);
  --shadow-color: var(--dark-shadow-color);
  --primary-color: var(--dark-primary-color);
}

/* ------------------------------------ */
/* Basic Typography and Layout          */
/* ------------------------------------ */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--main-bg-color);
  color: var(--text-color);
  line-height: 1.6;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

.app-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  width: 100%;
  margin: 20px;
  box-shadow: 0 10px 30px var(--shadow-color);
  border-radius: var(--border-radius);
  background-color: var(--panel-bg-color);
  transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}
.app-container h3 {
  font-weight: 700;
  font-size: 2.5em;
  color: var(--text-color);
}
.app-container .logo-wrapper {
  display: flex;
  align-items: center;
  gap: 28px;
  height: inherit;
}
.app-container .logo-wrapper .logo {
  width: 88px;
  height: 110px;
}
@media (max-width: 835px) {
  .app-container .logo-wrapper .logo {
    width: 75px;
    height: 85px;
  }
}
@media (max-width: 481px) {
  .app-container .logo-wrapper .logo {
    width: 44.36px;
    height: 61px;
  }
}
@media (max-width: 360px) {
  .app-container .logo-wrapper .logo {
    width: 35px;
    height: 45px;
    margin-bottom: -10px;
  }
}

.panel {
  background-color: var(--panel-bg-color);
  padding: 18px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 10px var(--shadow-color);
  transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

/* ------------------------------------ */
/* Top Bar Styles                       */
/* ------------------------------------ */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  transition: border-color var(--transition-speed);
}
.top-bar .dark-mode-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}
.top-bar .dark-mode-toggle label {
  cursor: pointer;
  color: var(--sub-text-color);
  transition: color var(--transition-speed);
}
.top-bar .dark-mode-toggle #darkmode-toggle {
  position: relative;
  width: 40px;
  height: 20px;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  background-color: var(--sub-text-color);
  border-radius: 20px;
  outline: none;
  cursor: pointer;
  transition: background-color var(--transition-speed);
}
.top-bar .dark-mode-toggle #darkmode-toggle::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform var(--transition-speed);
}
.top-bar .dark-mode-toggle #darkmode-toggle:checked {
  background-color: var(--primary-color);
}
.top-bar .dark-mode-toggle #darkmode-toggle:checked::before {
  transform: translateX(20px);
}
.top-bar .search-section {
  position: relative;
  display: flex;
  flex-grow: 1;
  gap: 10px;
  align-items: center;
}
.top-bar .search-section .search-icon {
  position: absolute;
  left: 15px;
  color: var(--sub-text-color);
  font-size: 1.2em;
  z-index: 1;
}
.top-bar .search-section #city-search-input {
  flex-grow: 1;
  padding: 10px 15px 10px 40px;
  border: none;
  border-radius: var(--border-radius);
  background-color: var(--panel-bg-color);
  color: var(--text-color);
  font-size: 1em;
  outline: none;
  box-shadow: inset 0 0 10px rgba(115, 53, 118, 0.653);
  transition: background-color var(--transition-speed), color var(--transition-speed), box-shadow var(--transition-speed);
}
.top-bar .search-section #city-search-input::-moz-placeholder {
  color: var(--sub-text-color);
}
.top-bar .search-section #city-search-input::placeholder {
  color: var(--sub-text-color);
}
.top-bar .search-section #current-location-btn {
  padding: 10px 15px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 1em;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background-color var(--transition-speed);
}
.top-bar .search-section #current-location-btn:hover {
  background-color: var(--accent-color);
}

/* ------------------------------------ */
/* Main Content Sections                */
/* ------------------------------------ */
.main-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.main-content .left-panel,
.main-content .center-panel,
.main-content .right-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Ensures content is spread vertically */
}
.main-content .left-panel {
  text-align: center;
  justify-content: flex-start; /* Align content to the top */
  align-items: center;
}
.main-content .left-panel #country-name {
  font-weight: 700;
  font-size: 2.5em;
  color: var(--text-color);
}
.main-content .left-panel #city-name {
  font-size: 2.1em;
  margin-bottom: 10px;
  color: var(--text-color);
}
.main-content .left-panel .current-time-date {
  font-size: 1.2em;
  color: var(--sub-text-color);
}
.main-content .left-panel .current-time-date .time {
  font-size: 1.5em;
  font-weight: bold;
}
.main-content .center-panel {
  align-items: center;
  justify-content: center;
}
.main-content .center-panel .current-temp-main {
  font-size: 5em;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 5px;
}
.main-content .center-panel .current-temp-main .unit {
  font-size: 0.5em;
  vertical-align: super;
}
.main-content .center-panel #feels-like {
  font-size: 1.1em;
  color: var(--sub-text-color);
  margin-bottom: 15px;
}
.main-content .center-panel .weather-icon-description {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 15px;
}
.main-content .center-panel .weather-icon-description #weather-icon {
  width: 100px;
  height: 100px;
  -o-object-fit: contain;
     object-fit: contain;
}
.main-content .center-panel .weather-icon-description #weather-description {
  font-size: 1.3em;
  font-weight: bold;
  text-transform: capitalize;
  color: var(--text-color);
}
.main-content .center-panel .sunrise-sunset {
  display: flex;
  gap: 20px;
  font-size: 0.9em;
  color: var(--sub-text-color);
}
.main-content .center-panel .sunrise-sunset i {
  margin-right: 5px;
  color: var(--accent-color);
}
.main-content .right-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}
.main-content .right-panel .detail-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 5px 0;
}
.main-content .right-panel .detail-item .detail-value {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--primary-color);
}
.main-content .right-panel .detail-item .detail-label {
  font-size: 0.9em;
  color: var(--sub-text-color);
  margin-top: 2px;
  display: flex;
  gap: 5px;
}

/* ------------------------------------ */
/* Forecast Sections                    */
/* ------------------------------------ */
.forecast-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.forecast-section .five-day-forecast,
.forecast-section .hourly-forecast {
  min-height: 200px;
  position: relative;
}
.forecast-section .five-day-forecast h3,
.forecast-section .hourly-forecast h3 {
  margin-bottom: 15px;
  color: var(--text-color);
}
.forecast-section .daily-forecast-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.forecast-section .hourly-forecast-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  justify-items: center;
}
.forecast-section .hour-forecast-item {
  flex: 0 0 auto;
  min-width: 150px;
  background-color: var(--main-bg-color);
  border-radius: var(--border-radius);
  padding: 10px 6px;
  text-align: center;
  box-shadow: 0 2px 4px var(--shadow-color);
  font-size: 0.9rem;
}
.forecast-section .hour-forecast-item img {
  width: 32px;
  height: 32px;
}
.forecast-section .hour-time {
  font-size: 0.85em;
  margin-bottom: 5px;
  font-weight: bold;
}
.forecast-section .hour-temp {
  margin-top: 4px;
}
.forecast-section .forecast-day {
  background-color: var(--main-bg-color);
  border-radius: var(--border-radius);
  text-align: center;
  padding: 10px;
  box-shadow: 0 2px 5px var(--shadow-color);
  transition: background-color var(--transition-speed);
}
.forecast-section .day-forecast-item {
  flex: 0 0 auto;
  width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  background-color: var(--main-bg-color);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 5px var(--shadow-color);
  transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}
.forecast-section .day-forecast-item img {
  width: 60px;
  height: 60px;
  -o-object-fit: contain;
     object-fit: contain;
  margin-bottom: 5px;
}
.forecast-section .day-temp,
.forecast-section .hour-temp {
  font-size: 1.2em;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 5px;
}
.forecast-section .day-name,
.forecast-section .hour-time {
  font-size: 0.9em;
  color: var(--sub-text-color);
  text-align: center;
}
.forecast-section .hour-wind {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8em;
  color: var(--sub-text-color);
  margin-top: 5px;
}
.forecast-section .hour-wind i {
  color: var(--accent-color);
  transition: transform var(--transition-speed);
}
.forecast-section .prev-btn {
  left: 10px;
}
.forecast-section .next-btn {
  right: 10px;
}

.forecast-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 18px 0;
}

.scrollable-days {
  display: flex;
  gap: 3rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  flex-grow: 1;
}
.scrollable-days .forecast-row {
  display: flex;
}

.scrollable-hours {
  display: flex;
  text-align: center;
  gap: 1rem;
  border-radius: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  flex-grow: 1;
}

.forecast-day,
.hour-card {
  padding: 18px 0;
  margin: 0 5px;
  border-radius: 16px;
  box-shadow: inset 0 0 10px rgba(81, 30, 83, 0.431);
  transition: background-color var(--transition-speed), color var(--transition-speed), box-shadow var(--transition-speed);
  background-color: var(--main-bg-color);
  /* The next line duplicates box-shadow; consider if this is intended for a specific override */
  box-shadow: 0 10px 30px var(--shadow-color);
  min-width: 150px;
  text-align: center;
  scroll-snap-align: start;
}

.scroll-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
}

/* ------------------------------------ */
/* Media Queries                        */
/* ------------------------------------ */
@media (max-width: 992px) {
  .main-content {
    grid-template-columns: 1fr;
  }
  .forecast-section {
    grid-template-columns: 1fr;
  }
  .left-panel,
  .center-panel,
  .right-panel {
    align-items: center;
    text-align: center;
  }
  .left-panel .detail-item,
  .center-panel .detail-item,
  .right-panel .detail-item {
    display: flex;
    align-items: center;
    text-align: center;
    gap: 8px;
    margin-bottom: 10px;
  }
  .left-panel .detail-value,
  .center-panel .detail-value,
  .right-panel .detail-value {
    font-size: 1.2em;
  }
  .left-panel .material-symbols-outlined,
  .center-panel .material-symbols-outlined,
  .right-panel .material-symbols-outlined {
    font-size: 20px;
    color: #555;
  }
  /* This nested rule was redundant as it's covered by the parent .left-panel, .center-panel, .right-panel */
  /* .right-panel .detail-item {
    align-items: center;
  } */
  .top-bar {
    align-items: stretch;
  }
  .search-section {
    width: 100%;
  }
  #current-location-btn {
    width: 100%;
    justify-content: center;
  }
  .daily-forecast-container,
  .hourly-forecast-container {
    justify-content: flex-start;
  }
}
@media (max-width: 768px) {
  .app-container {
    padding: 10px;
    margin: 10px;
  }
  .panel {
    padding: 15px;
  }
  .day-forecast-item,
  .hour-forecast-item {
    flex: 1 1 120px;
    width: auto;
    border-radius: 16px;
    box-shadow: inset 0 0 10px rgba(115, 53, 118, 0.653);
    transition: background-color var(--transition-speed), color var(--transition-speed), box-shadow var(--transition-speed);
    background-color: var(--main-bg-color);
  }
}
@media (max-width: 480px) {
  .current-temp-main {
    font-size: 4em;
  }
  #city-name {
    font-size: 2em;
  }
  .sunrise-sunset {
    flex-direction: column;
    gap: 10px;
  }
  .day-forecast-item,
  .hour-forecast-item {
    width: 100px;
  }
}/*# sourceMappingURL=global.css.map */