/* ===== Base Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body, html {
  overflow-x: hidden;
  width: 100%;
  min-height: 100%;
  
}
html {
  font-size: 18px;
  height: 100%; /* As per style guide */
}

body {
  font-family: "DM Sans", sans-serif;
  background-color: hsl(243, 96%, 9%); /* Neutral 900 */
  color: hsl(0, 0%, 100%); /* Neutral 0 */
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
}


/* ===== Animated Weather Backgrounds ===== */
.weather-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1 !important;
    overflow: hidden;
    transition: all 2s ease-in-out;
}

/* Base background gradients for different conditions */
.weather-background.clear-day {
    background: linear-gradient(135deg, hsl(210, 100%, 85%) 0%, hsl(200, 100%, 70%) 100%);
}

.weather-background.clear-night {
    background: linear-gradient(135deg, hsl(240, 60%, 10%) 0%, hsl(260, 50%, 20%) 100%);
}

.weather-background.partly-cloudy {
    background: linear-gradient(135deg, hsl(210, 80%, 75%) 0%, hsl(200, 70%, 60%) 100%);
}

.weather-background.cloudy {
    background: linear-gradient(135deg, hsl(210, 60%, 65%) 0%, hsl(220, 50%, 50%) 100%);
}

.weather-background.rainy {
    background: linear-gradient(135deg, hsl(220, 50%, 60%) 0%, hsl(230, 40%, 40%) 100%);
}

.weather-background.snowy {
    background: linear-gradient(135deg, hsl(220, 40%, 70%) 0%, hsl(230, 30%, 50%) 100%);
}

.weather-background.stormy {
    background: linear-gradient(135deg, hsl(240, 50%, 40%) 0%, hsl(260, 40%, 20%) 100%);
}

.weather-background.foggy {
    background: linear-gradient(135deg, hsl(210, 30%, 60%) 0%, hsl(220, 25%, 45%) 100%);
}

/* Celestial Body (Sun/Moon) */
.celestial-body {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    top: 20%;
    left: 15%;
    transition: all 2s ease-in-out;
    display: block;
}

.celestial-body.sun {
    background: radial-gradient(circle, hsl(45, 100%, 95%) 0%, hsl(45, 100%, 70%) 100%);
    box-shadow: 0 0 80px hsl(45, 100%, 60%), 0 0 120px hsla(45, 100%, 50%, 0.3);
}

.celestial-body.moon {
    background: radial-gradient(circle, hsl(0, 0%, 95%) 0%, hsl(0, 0%, 80%) 100%);
    box-shadow: 0 0 60px hsl(0, 0%, 90%), 0 0 100px hsla(0, 0%, 100%, 0.2);
}

.celestial-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, transparent 30%, hsla(45, 100%, 60%, 0.1) 70%);
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

/* Clouds */
.cloud {
    position: absolute;
    background: hsl(0, 0%, 100%);
    border-radius: 50%;
    opacity: 0.8;
    filter: blur(1px);
    display: block;
}

.cloud-1 {
    width: 120px;
    height: 60px;
    top: 25%;
    right: 20%;
    animation: float-cloud 25s linear infinite;
}

.cloud-2 {
    width: 180px;
    height: 80px;
    top: 15%;
    left: 25%;
    animation: float-cloud 30s linear infinite reverse;
}

.cloud-3 {
    width: 100px;
    height: 50px;
    top: 30%;
    left: 60%;
    animation: float-cloud 20s linear infinite;
}

@keyframes float-cloud {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(calc(100vw + 100px)); }
}

/* Stars */
.stars-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    background: hsl(0, 0%, 100%);
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Rain */
.rain-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.rain-drop {
    position: absolute;
    width: 2px;
    height: 15px;
    background: linear-gradient(to bottom, transparent, hsl(210, 100%, 80%));
    animation: fall-rain 1s linear infinite;
}

@keyframes fall-rain {
    0% { transform: translateY(-20px); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

/* Snow */
.snow-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.snow-flake {
    position: absolute;
    background: hsl(0, 0%, 100%);
    border-radius: 50%;
    animation: fall-snow 8s linear infinite;
}

@keyframes fall-snow {
    0% { transform: translateY(-20px) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 0.8; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

/* Fog */
.fog-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.fog-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, hsla(0, 0%, 100%, 0.1), transparent);
    animation: drift-fog 15s linear infinite;
}

@keyframes drift-fog {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Ensure content stays above background */
.header, main, footer {
    position: relative;
    z-index: 1;
}


/* FIX: Make sure weather effects containers are positioned correctly */
.stars-container,
.rain-container,
.snow-container,
.fog-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none; /* ADD THIS - prevent interaction */
}

/* ===== Loading Skeleton Styles ===== */
.loading-skeleton {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: hsl(243, 96%, 9%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.loading-skeleton::-webkit-scrollbar{
  display: none;
}

.loading-skeleton{
  -ms-overflow-style:none;
  scrollbar-width: none;
}

.loading-skeleton.hidden {
  opacity: 0;
  visibility: hidden;
  transition: all 0.8s ease-in-out;
  pointer-events: none;
}

/* Skeleton Pulse Animation */
@keyframes skeleton-pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}

.skeleton-pulse {
  animation: skeleton-pulse 2s ease-in-out infinite;
  background: linear-gradient(90deg, hsl(243, 23%, 24%) 25%, hsl(243, 23%, 28%) 50%, hsl(243, 23%, 24%) 75%);
  background-size: 200% 100%;
}

/* Header */

.skeleton-main-title {
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  font-size: 2.5rem;
}
.skeleton-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 11%;
  background: hsl(243, 96%, 9%);
}

.skeleton-units-dropdown {
  width: 130px;
  margin-right: 30px;
}

.skeleton-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  background: hsl(243, 23%, 24%);
  border-radius: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .skeleton-header{
      padding: 1rem 0.5rem;
    }

    .skeleton-units-dropdown{
      width: 110px;
      margin-right: 10px;
    }
}

/* Main Content */
.skeleton-main {
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
}

/* Search Container */
.skeleton-search-container {
  display: flex;
  position: relative;
  justify-content: center;
  margin: 2rem 0;
}

.skeleton-search-bar {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  max-width: 500px;
  position: relative;
}

.skeleton-search-input-wrapper {
  flex: 1;
  width: 100%;
}

.skeleton-search-bar input{
  width: 98%;
  padding: 0.8rem 1rem 0.8rem 40px;
  border-radius: 8px;
  border: 1px solid hsl(243, 23%, 30%);
  background: hsl(243, 23%, 24%);
  color: hsl(0, 0%, 100%);
  font-size: 1rem;
  background-image: url('assets/images/icon-search.svg');
  background-repeat: no-repeat;
  background-position: 10px center;
  background-size: 16px 16px;

}

.skeleton-search-bar input::placeholder{
  color: hsl(0, 0%, 100%);
}

.skeleton-search-bar button{
  padding: 1rem;
  background: hsl(233, 67%, 56%);
  border: none;
  border-radius: 8px;
  color: hsl(0, 0%, 100%);
}

/* Responsive Design */
@media (max-width: 768px){

   .skeleton-main-title{
    line-height: normal;
    padding: 2rem;
    margin-top: 0.5rem;
    text-align: center;
    font-size: 3rem;

   }

  .skeleton-search-bar{
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem;
  }
  .skeleton-search-bar input{
    width: 100%;
  }
  
.skeleton-search-bar button{
  width: 100%;
}
}

/* Weather Container */
.skeleton-weather-container {
  display: flex;
  gap: 15px;
  height: auto;
  min-height: 400px;
  padding: 20px;
  margin-right: 0.6rem;
}

/* Current Weather Container */
.skeleton-current-weather-container {
  flex: 2;
  width: 400px;
}

/* Current Weather Section */
.skeleton-current-weather {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  background: hsl(243, 27%, 24%);
  border-radius: 15px;
  padding: 7rem 1rem 7rem 1rem;
  margin-bottom: 2rem;
  animation: skeleton-pulse 2s ease-in-out infinite;
}

.loading{
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  font-size: 18px;
}

.dots{
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  gap: 8px;
}
.dots div{
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  animation: wave 1.2s infinite;
}

.dots div:nth-child(1){
  animation-delay: 0s;
}

.dots div:nth-child(2){
  animation-delay: 0.2s;
}

.dots div:nth-child(3){
  animation-delay: 0.4s;
}

@keyframes wave {
  0%, 60%, 100% {
    transform: translateY(0);
    
  }
  30% {
    transform: translateY(-8px);
  }
}

/* Details Section */
.skeleton-details {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.skeleton-details div{
  background: hsl(243, 23%, 24%);
  padding: 1rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  text-align: center;
  min-width: 120px;
  font-size: 0.9rem;
   animation: skeleton-pulse 2s ease-in-out infinite;
}

.skeleton-details div span{
  margin-top: 1rem;
  font-size: 1.5rem;
}

@media (max-width:768px){
  .skeleton-current-weather {
     flex-direction: column;
     align-items: center;
     padding: 8rem;
  }
  .skeleton-current-weather-container{
    width: 100%;
  }
  .skeleton-weather-container{
    flex-direction: column;
    margin: 0;
    padding: 1rem;
    margin-top: -2rem;
  }
}

/* Daily Forecast */
.skeleton-daily-forecast {
  display: flex;
  flex-direction: column;
  margin: 2rem 0;
}

.skeleton-forecast-cards {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.skeleton-forecast-card {
  background: hsl(243, 23%, 24%);
  padding: 8px;
  border-radius: 12px;
  text-align: center;
  width: 90px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-direction: column;
  animation: skeleton-pulse 2s ease-in-out infinite;
}

.skeleton-day {
  width: 40px;
  height: 16px;
  opacity: 0;
}

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

.skeleton-forecast-temps {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  padding: 0;
  opacity: 0;
}

.skeleton-high, .skeleton-low {
  width: 25px;
  height: 18px;
}


/* Responsive Design */
@media (max-width: 768px){
  .skeleton-forecast-cards{
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
  }

  .skeleton-forecast-card {
    padding: 12px 8px;
    min-height: 120px;
    width: 116px;
    gap: 1.5rem;
  }

  .skeleton-forecast-temps {
    gap: 2rem;
  }
}

/* Hourly Forecast */
.skeleton-hourly-forecast {
  flex: 1;
  border-radius: 15px;
  min-width: 400px;
}

.skeleton-forecast-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.3rem;
}

.skeleton-day-selector {
  width: 70px;
  position: relative;
}

.skeleton-day-trigger {
  width: 100%;
  height: 40px;
  background: hsl(243, 23%, 24%);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.skeleton-hourly-forecast-cards {
  background: hsl(243, 23%, 20%);
  padding: 1.5rem 1rem 0.3rem 1rem;
  border-radius: 15px;
  margin-right: 0.5rem;
  max-height: 690px;
  overflow-y: auto;
}

.skeleton-hourly-card {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background: hsl(243, 23%, 30%);
  padding: 0.6rem;
  margin-bottom: 13px;
  border-radius: 10px;
  align-items: center;
  animation: skeleton-pulse 2s ease-in-out infinite;
}

.skeleton-hourly-data {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skeleton-hourly-icon {
  width: 40px;
  height: 40px;
}

.skeleton-hour {
  width: 50px;
  height: 18px;
  
}

.skeleton-hourly-temp {
  width: 40px;
  height: 24px;
  opacity: 0;
}

.skeleton-hourly-forecast-cards::-webkit-scrollbar{

  width: 6px;
}

.skeleton-hourly-forecast-cards::-webkit-scrollbar-track{
  background: hsl(243, 23%, 15%);
}
.skeleton-hourly-forecast-cards::-webkit-scrollbar-thumb{
  background: hsl(243, 23%, 30%);
  border-radius: 3px;
}

.skeleton-hourly-forecast-cards::-webkit-scrollbar-thumb:hover{
  background: hsl(243, 23%, 40%);
}
/* Responsive Design */
@media (max-width: 768px) {

  .skeleton-hourly-forecast{
    padding-right: 0.5rem;
  }

  .skeleton-forecast-header{
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
  }
}


h1, h2, h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
}

main {
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
  flex: 1;
}

.header, main, .main-title, .search-container, 
.weather-container, .current-weather-container,
.hourly-forecast, .daily-forecast {
    position: relative;
    z-index: 1; /* Normal z-index for content */
}


body *:not(.custom-dropdown):not(.loading-skeleton):not(.dropdown-menu):not(.search-dropdown) {
    z-index: auto !important;
}

/* ===== Header ===== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem  11%;
  background-color: hsl(243, 96%, 9%); /* Neutral 800 */
}

/* ===== Title ===== */
.main-title {
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

/* ===== Custom Dropdown Styles ===== */
.custom-dropdown {
  position: relative;
  width: 130px;
  z-index: 10000 !important;
  margin-right: 30px;
}

/* Dropdown Trigger */
.dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  background: hsl(243, 23%, 24%);
  border: 1px solid hsl(243, 23%, 30%);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
  color: hsl(0, 0%, 100%);
  min-height: 40px;
  gap: 8px;
}

.dropdown-trigger:hover{
  border-color:white; 
  background: hsl(243, 23%, 20%);
}

.dropdown-trigger.active{
    outline: 2px solid white; 
    outline-offset: 3px;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 230px;
  background: hsl(243, 23%, 20%);
  border: 1px solid hsl(243, 23%, 30%);
  border-radius: 15px;
  padding: 0.5rem;
  margin-top: 8px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 10001 !important;
}

.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ===== System Switch Button ===== */
.system-switch-btn {
  width: 100%;
  padding: 12px 10px 8px;
  background: hsl(243, 23%, 20%);
  border: none;
  border-radius: 0.5rem;
  color: hsl(0, 0%, 100%);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  display: block;
}

.system-switch-btn:hover {
  background: hsl(243, 23%, 25%);
}

.system-switch-btn:focus {
  outline:  1px solid white;
}

/* Dropdown Divider */
.dropdown-divider {
  height: 1px;
  background: hsl(243, 23%, 30%);
  margin: 0;
}

/* Section Headers */
.dropdown-section {
  padding: 12px 10px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(240, 6%, 70%);
  letter-spacing: 0.5px;
  background: hsl(243, 23%, 20%);
  
}

/* Dropdown Items */
.dropdown-item {
  padding: 12px 10px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0.5rem;
  color: hsl(0, 0%, 100%);
  font-size: 0.85rem;
  position: relative;
}

.dropdown-item:hover {
  background: hsl(243, 23%, 25%);
}

.option-label {
  font-weight: 500;
  text-align: left;
  flex: 1;
}

.option-units {
  color: hsl(240, 6%, 70%);
  font-size: 0.8rem;
  margin: 0 12px;
}


/* Active state for selected items */
.dropdown-item.active {
  background: hsl(243, 23%, 25%);
}

.dropdown-item.active .check-icon {
  display: block !important;
}


/* Responsive Design */
@media (max-width: 768px) {

   .header{
    padding: 1rem 0.5rem;
   }
   
   .main-title{
    line-height: normal;
    padding: 2rem;
    margin-top: 0.5rem;
    width: 100%;
    text-align: center;
    font-size: 3rem;

   }
   .logo img {
    width: 150px;
    height: auto;
}
  .custom-dropdown {
    width: 110px;
    margin-right: 10px;
  }
  
  .dropdown-menu {
    width: 260px;
    left: -135px;
  }
  
  .dropdown-trigger {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .custom-dropdown {
    width: 100px;
  }
  
  .dropdown-menu {
    width: 240px;
    right: -40px;
  }
}

/* ===== Search Container ===== */
.search-container {
  position: relative;
  margin: 2rem 0;
  display: flex;
  justify-content: center;
}

/* ===== Search Bar ===== */
.search-bar {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  max-width: 500px;
  position: relative;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  width: 100%;

}

.search-bar input {
  width: 98%;
  padding: 0.8rem 1rem 0.8rem 40px;
  border-radius: 8px;
  border: 1px solid hsl(243, 23%, 30%);
  background: hsl(243, 23%, 24%);
  color: hsl(0, 0%, 100%);
  font-size: 1rem;
  transition: all 0.3s ease;
   background-image: url('assets/images/icon-search.svg');
  background-repeat: no-repeat;
  background-position: 10px center;
  background-size: 16px 16px;
}

.search-bar input:focus {
  outline: none;
  border-color: white;
  box-shadow: 0 0 0 2px rgba(116, 185, 255, 0.2);
}

.search-bar input::placeholder {
  color: hsl(240, 6%, 70%);
}

/* ===== Search Dropdown ===== */
.search-dropdown {
  position: absolute;
  top: 100%;
  width:405px ;
  left: 350px;
  background: hsl(243, 23%, 20%);
  border: 1px solid hsl(243, 23%, 30%);
  border-radius: 12px;
  margin-top: 8px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
}

.search-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Search Dropdown Items */
.search-dropdown .dropdown-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  color: hsl(0, 0%, 100%);
  font-size: 0.9rem;
  border-bottom: 1px solid hsl(243, 23%, 25%);
}

.search-dropdown .dropdown-item:last-child {
  border-bottom: none;
}

.search-dropdown .dropdown-item:hover {
  background: hsl(243, 23%, 25%);
}

.location-icon {
  color: hsl(233, 67%, 56%);
  flex-shrink: 0;
}

.city-name {
  font-weight: 500;
  flex: 1;
}

/* Search Dropdown Scrollbar */
.search-dropdown::-webkit-scrollbar {
  width: 6px;
}

.search-dropdown::-webkit-scrollbar-track {
  background: hsl(243, 23%, 15%);
}

.search-dropdown::-webkit-scrollbar-thumb {
  background: hsl(243, 23%, 30%);
  border-radius: 3px;
}

.search-dropdown::-webkit-scrollbar-thumb:hover {
  background: hsl(243, 23%, 40%);
}

.search-bar button {
  padding: 1rem;
  background: hsl(233, 67%, 56%); /* Blue 500 */
  border: none;
  border-radius: 8px;
  color: hsl(0, 0%, 100%);
  cursor: pointer;
  transition: background 0.3s ease;
}

button:focus {
  outline: 2px solid hsl(233, 67%, 56%);  /* Blue 600 */
  outline-offset: 2px;
}

.search-bar button:hover {
  background: hsl(248, 70%, 36%); /* Blue 700 */
}

/* Loading State (for future API) */
.search-dropdown.loading .dropdown-item {
  opacity: 0.6;
  pointer-events: none;
}

/* No Results State (for future API) */
.search-dropdown .no-results {
  padding: 20px 16px;
  text-align: center;
  color: hsl(240, 6%, 70%);
  font-style: italic;
}


/* ===== Responsive Design ===== */
@media (max-width: 768px) {

  .search-bar {
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem;
    width: 100%;
  }
  
  .search-bar input{
    width: 100%;
  }

  .search-bar button {
    width: 100%;
  }
  
  .search-dropdown {
    position:absolute;
    left:20px;
    width: 90%;
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .search-container {
    margin: 1.5rem 0;
  }
  
  .search-bar input {
    padding: 0.7rem 1rem 0.7rem 40px;
    font-size: 0.9rem;
  }
  
  .search-dropdown .dropdown-item {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
}


/* ===== Search Progress State (Under input) ===== */
.search-progress-state {
  display: none;
  background: hsl(243, 23%, 20%);
  border: 1px solid hsl(243, 23%, 30%);
  border-radius: 8px;
  margin-top: 8px;
  padding: 5px;
  width: 405px;
  margin-left: 19.5rem;
  margin-right: auto;
}

.search-progress-state.active {
  display: block;
}

.progress-content {
  display: flex;
  align-items: center;
  gap: 12px;
  color: hsl(240, 6%, 70%);
}

.progress-text {
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== No Results State ===== */
.no-results-state {
  display: none;
  justify-content:center;
  align-items:flex-start;
  min-height: 60vh;
}

.no-results-state.active {
  display: flex;
}

.no-results-content {
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.no-results-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(0, 0%, 100%);
  font-family: "Bricolage Grotesque", sans-serif;
}

/* Hide ALL weather content when no results is active */
.no-results-state.active ~ .weather-container,
.no-results-state.active ~ .daily-forecast,
.no-results-state.active ~ .hourly-forecast {
  display: none !important;
}

/* Keep title and search visible */
.main-title,
.search-container {
  display: block;
}

/* ===== Error State (Full Page) ===== */
.error-state {
 display: none;
  justify-content:center;
  align-items:center;
  padding: 2rem 0;
  align-self: center;
 margin-top: 13rem;
 background: hsl(243, 96%, 9%);
  min-height: 70vh;
}

.error-state.active {
  display: flex;
}

.error-content {
  text-align: center;
  max-width: 500px;
  margin-bottom: 5rem;
  width: 100%;
}

.error-icon {
   height: 50px;
   margin-bottom: 1rem;
}

.error-title {
  font-size: 2rem;
  font-weight: 700;
  color: hsl(0, 0%, 100%);
  margin-bottom: 1rem;
  font-family: "Bricolage Grotesque", sans-serif;
}

.error-message {
  color: hsl(240, 6%, 70%);
  font-size: rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* ===== Button ===== */
.retry-btn{
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.retry-btn {
  background: hsl(243, 23%, 30%);
  display: flex;
  gap: 0.5rem;
  color: hsl(250, 6%, 84%);
}

.retry-btn:hover {
  background: hsl(248, 70%, 36%);
}

.retry-btn.primary {
  background:  hsl(243, 23%, 30%);
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* ===== Hide everything when error state is active ===== */

/* Hide ALL main content except header when error state is active */
.error-state.active ~ .weather-container,
.error-state.active ~ .daily-forecast,
.error-state.active ~ .hourly-forecast,
.error-state.active ~ .no-results-state,
.error-state.active ~ .search-container,
.error-state.active ~ .main-title {
  display: none !important;
}

/* Also hide the no results state if it was showing */
.error-state.active ~ .no-results-state.active {
  display: none !important;
}

/* Keep header visible */
.header {
  display: flex !important;
}

/* Hide footer when error state is active */
.error-state.active ~ footer {
  display: none !important;
}

/* Ensure error state takes full main area */
.error-state.active {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  z-index: 100;
}

/* ===== Keep existing search styles ===== */
.search-container {
  position: relative;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.search-bar {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  max-width: 500px;
  position: relative;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .search-progress-state {
    margin: 0;
    width: 90%;
  }

  .error-state{
    margin-top:15rem ;
    height: 90vh;
  }
  .error-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .retry-btn{
    justify-content: center;
    width: 100px;
    align-self: center;
    display: flex;
  }
}

@media (max-width: 480px) {
  .no-results-title,
  .error-title {
    font-size: 1.3rem;
  }
  
  .error-message {
    font-size: 0.9rem;
  }
  
  .retry-btn {
    padding: 10px 24px;
  }
}

/* ===== Current Weather ===== */
.weather-container {
  margin-right: 0.6rem;
  display: flex;
  min-height: 400px;
  height: auto;
  gap: 15px;
  padding: 20px;
}

.current-weather-container {
    flex: 2;
    width: 400px;
}

.current-weather {
 display: flex;
 flex-direction: row;
 justify-content: space-between;
 align-items: center;
  background: hsl(243, 27%, 20%) url('assets/images/bg-today-large.svg')center/cover; /* Neutral 800 */
  border-radius: 15px;
  padding: 4rem 1rem 4rem 1rem;
  margin-bottom: 2rem;
  text-align: center;
}

.weather-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.weather-main h3 {
  font-size: 5rem;
}

.weather-main span {
  font-size: 2rem;
  text-align: center;

}

#weather-icon {
  width: 130px;
  height: 130px;
  float: inline-start;

}

.location-date h2 {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
  text-align: left;
}


.location-date p {
    text-align: left;
}

.details {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.details div {
  background: hsl(243, 23%, 20%); /* Neutral 600 */
  padding: 1rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  text-align: center;
  min-width: 120px;
  font-size: 0.9rem;
}

.details div span {
    margin-top: 1rem;
    font-size: 1.5rem;
}



@media (max-width: 768px) {
  .location-date h2{
    text-align: center;
  }
  .location-date p{
    text-align: center;
  }
  .weather-main {
    flex-direction:row;
  }

.current-weather {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        background: hsl(243, 27%, 20%) url('assets/images/bg-today-small.svg')center/cover; /* Neutral 800 */
    }

 .current-weather-container{
  width: 100%;
}
  .weather-container {
    flex-direction: column;
    margin: 0;
    padding: 1rem;
    margin-top: -2rem;
  }
}


/* ===== Sunrise & Sunset Styles ===== */
.sun-times {
    margin: 2rem 0;

}

.sun-times h3 {
    font-size: 1.1rem;
    color: hsl(0, 0%, 100%);
    margin-bottom: 1rem;
    font-family: "Bricolage Grotesque", sans-serif;
}

.sun-cards {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.sun-card {
    flex: 1;
    background: hsl(243, 23%, 20%);
    padding: 1.5rem 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.sun-card:hover {
    transform: translateY(-2px);
    background: hsl(243, 23%, 22%);
}

.sun-card.sunrise {
    border-left: 4px solid hsl(45, 100%, 50%);
}

.sun-card.sunset {
    border-left: 4px solid hsl(350, 89%, 60%);
}

.sun-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sun-card.sunrise .sun-icon {
    background: hsla(45, 100%, 50%, 0.1);
    color: hsl(45, 100%, 60%);
}

.sun-card.sunset .sun-icon {
    background: hsla(350, 89%, 60%, 0.1);
    color: hsl(350, 89%, 70%);
}

.sun-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.sun-label {
    font-size: 0.9rem;
    color: hsl(240, 6%, 70%);
    font-weight: 500;
}

.sun-time {
    font-size: 1.2rem;
    font-weight: 600;
    color: hsl(0, 0%, 100%);
    font-family: "Bricolage Grotesque", sans-serif;
}

/* Day Progress Bar */
.day-progress {
    background: hsl(243, 23%, 20%);
    padding: 1rem;
    border-radius: 12px;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
    color: hsl(240, 6%, 70%);
}

.progress-bar {
    height: 8px;
    background: hsl(243, 23%, 25%);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, hsl(45, 100%, 50%), hsl(350, 89%, 60%));
    border-radius: 4px;
    width: 0%;
    transition: width 1s ease-in-out;
}

.current-time-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: hsl(0, 0%, 100%);
    border: 3px solid hsl(243, 96%, 9%);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 2;
}

.progress-time {
    text-align: center;
    font-size: 0.9rem;
    color: hsl(240, 6%, 70%);
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sun-cards {
        flex-direction: column;
    }
    
    .sun-card {
        padding: 1.2rem 1rem;
    }
    
    .day-progress {
        padding: 1.2rem;
    }
}



/* ===== Forecast Sections ===== */

.daily-forecast {
  display: flex;
  margin: 2rem 0;
  flex-direction: column;
}

.daily-forecast img {
  width: 60px;
  height: 60px;
  margin: 4px 0;
}

.forecast-cards {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content:space-between;
  margin-top: 1rem;
}

.daily-forecast .forecast-card{
  background: hsl(243, 23%, 20%); /* Neutral 600 */
  padding:8px;
  border-radius: 12px;
  text-align: center;
  width:90px ;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-direction: column;
}

.temperature{
    display: flex;
    margin: 0;
    font-size: 0.9rem;
    gap:1rem;
    padding: 0;
}

.forecast-cards div:hover {
  background: hsl(243, 23%, 24%); /* Neutral 700 */
  transition: background 0.3s ease;
}


@media (max-width: 768px){
  
.forecast-cards {
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  flex-wrap: wrap;
}

.daily-forecast .forecast-card{
  padding:12px 8px;
  margin-top: 1rem;
  min-height:120px; 
  width:110px ;
  gap: 1.5rem;
}

.temperature{
  gap: 2rem;
}

}

/* ===== HOURLY FORECAST ===== */

.hourly-forecast {
    flex: 1;
    border-radius: 15px;
    flex: 0 0 auto;
    min-width: 400px;
}


.hourly-forecast img:not(.dropdown-trigger img){
  width: 40px;
  height: 40px;
  margin-right: 0.5rem;
}

/* Forecast Header Layout */

.forecast-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.3rem;
}

.forecast-header h3 {
  font-size: 1.1rem;
  color: hsl(0, 0%, 100%);
}



/* ===== Day Selector Dropdown ===== */
.day-selector-dropdown {
  position: relative;
  width: 130px;
  z-index: 10000;
}

/* Day Dropdown Trigger */
.day-selector-dropdown .dropdown-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 10px;
  background: hsl(243, 23%, 30%);
  border: 1px solid hsl(243, 23%, 30%);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
  color: hsl(0, 0%, 100%);
  min-height: 40px;
  gap: 5px;
  z-index: 10001;
}

.active-day {
  font-weight: 600;
}

/* Day Dropdown Menu */
.day-selector-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 200px;
  background: hsl(243, 23%, 24%);
  border: 1px solid hsl(243, 23%, 30%);
  border-radius: 12px;
  margin-top: 8px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  overflow: hidden;
  max-height: 300px;
}

.day-selector-dropdown .dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Day Dropdown Items */
.day-selector-dropdown .dropdown-item {
  padding: 8px 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: hsl(0, 0%, 100%);
  font-size: 0.85rem;
  border-bottom: 1px solid hsl(243, 23%, 30%);
}

.day-selector-dropdown .dropdown-item:last-child {
  border-bottom: none;
}

.day-selector-dropdown .dropdown-item:hover {
  background: hsl(243, 23%, 30%);
}

.day-selector-dropdown .dropdown-item.active {
  background: hsl(243, 23%, 30%);
}

.day-label {
  font-weight: 500;
  text-align: left;
  flex: 1;
}

/* Responsive Design */
@media (max-width: 768px) {

  .day-selector-dropdown .dropdown-trigger{
    padding: 2px 9px;
  }
  .day-selector-dropdown {
    width: 130px;
    bottom:2.8rem ;
    
    
  }
  
  .day-selector-dropdown .dropdown-menu {
    width: 190px;
    left: -1rem;
  }
  
  .day-selector-dropdown {
    align-self: flex-end;
  }
}

@media (max-width: 480px) {
  .day-selector-dropdown {
    width: 120px;
  }
  
  .day-selector-dropdown .dropdown-menu {
    width: 140px;
  }
}

/* Hourly forecast cards */

.hourly-forecast-cards {
  background:hsl(243, 23%, 20%);
  padding: 1.5rem 1rem 0.3rem 1rem;
  border-radius:15px ;  
  margin-right:0.5rem; 
  overflow-y: auto;
  max-height: 1045px;
}

.hourly-forecast .forecast-card{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background:hsl(243, 23%, 24%);
    padding: 1rem;
    margin-bottom: 13px;
    border-radius: 10px;    
    text-align: center;
    gap: 1rem;
    font-size: 0.85rem;
    align-items: center;
}

.forecast-data {
   display: flex;
   height: 0.5rem;
   align-items: center;
}


.hourly-forecast-cards::-webkit-scrollbar{
  width: 6px;
}

.hourly-forecast-cards ::-webkit-scrollbar-track{
  background: hsl(243, 23%, 15%);
}

.hourly-forecast-cards::-webkit-scrollbar-thumb{
  background: hsl(243, 23%, 30%);
  border-radius: 3px;
}
.hourly-forecast-cards::-webkit-scrollbar-thumb:hover{
  background: hsl(243, 23%, 40%);
}


@media (max-width: 768px) {

  .hourly-forecast-cards {
    max-height: 690px;
  }

  .hourly-forecast{
     padding-right: 2rem;
     
  }
  
  .forecast-header {
    flex-direction: column;
    align-items:flex-start ;
    gap: 1rem;
    margin-bottom: -1.5rem;
  }

}
/* ===== Footer ===== */
footer {
  margin-top: auto;
  padding: 1rem;
  background:hsl(243, 96%, 9%);
  text-align: center;
  font-size: 0.75rem;
  color: hsl(240, 6%, 70%); /* Neutral 300 */
}

footer a {
  color: hsl(28, 100%, 52%); /* Orange 500 */
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ===== BEAUTIFUL WEATHER THEMES ===== */

/* Light Theme - "Sky Blue Morning" */
[data-theme="light"] {
    /* Primary Colors */
    --bg-primary: linear-gradient(135deg, hsl(210, 60%, 98%) 0%, hsl(200, 80%, 95%) 100%);
    --bg-secondary: hsl(210, 50%, 95%);
    --bg-card: hsl(0, 0%, 100%);
    --bg-card-hover: hsl(210, 50%, 98%);
    
    /* Text Colors */
    --text-primary: hsl(243, 96%, 12%);
    --text-secondary: hsl(243, 40%, 25%);
    --text-muted: hsl(243, 30%, 40%);
    --text-accent: hsl(233, 67%, 50%);
    
    /* UI Colors */
    --border-color: hsl(210, 40%, 75%);
    --border-light: hsl(210, 40%, 90%);
    --accent-color: hsl(233, 67%, 56%);
    --accent-hover: hsl(233, 67%, 45%);
    
    /* Shadows */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
    
    /* Weather-specific backgrounds */
    --current-weather-bg: linear-gradient(135deg, hsl(210, 80%, 60%) 0%, hsl(200, 80%, 70%) 100%);
    --card-gradient: linear-gradient(135deg, hsl(0, 0%, 100%) 0%, hsl(210, 50%, 98%) 100%);
}

/* Dark Theme - "Midnight Sky" (Enhanced) */
[data-theme="dark"] {
    /* Primary Colors */
    --bg-primary: linear-gradient(135deg, hsl(243, 96%, 6%) 0%, hsl(243, 80%, 12%) 100%);
    --bg-secondary: hsl(243, 23%, 18%);
    --bg-card: hsl(243, 23%, 22%);
    --bg-card-hover: hsl(243, 23%, 25%);
    
    /* Text Colors */
    --text-primary: hsl(0, 0%, 98%);
    --text-secondary: hsl(240, 6%, 80%);
    --text-muted: hsl(240, 6%, 60%);
    --text-accent: hsl(233, 67%, 70%);
    
    /* UI Colors */
    --border-color: hsl(243, 23%, 35%);
    --border-light: hsl(243, 23%, 30%);
    --accent-color: hsl(233, 67%, 56%);
    --accent-hover: hsl(233, 67%, 65%);
    
    /* Shadows */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.2);
    
    /* Weather-specific backgrounds */
    --current-weather-bg: linear-gradient(135deg, hsl(243, 60%, 25%) 0%, hsl(243, 50%, 35%) 100%);
    --card-gradient: linear-gradient(135deg, hsl(243, 23%, 22%) 0%, hsl(243, 30%, 25%) 100%);
}

/* ===== LAYOUT UPDATES ===== */

.logo img{
  filter: none;
}

[data-theme="light"] .logo img {
    /* If your logo is white, invert it for light mode */
    filter: invert(1);
}


.dropdown-trigger img{
    filter: none;
}

[data-theme="light" ] .dropdown-trigger img {
    /* Make icons dark in light mode */
    filter: invert(1) !important ;
}


.dropdown-menu img{
    filter: none;
}

[data-theme="light" ] .dropdown-menu img {
    /* Make icons dark in light mode */
    filter: invert(1) !important ;
}

.hourly-forecast h3,
.sun-times h3,
.error-state h2 {
    color: var(--text-primary) !important;
    font-weight: 700;
}
.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    position: relative;
    z-index: 1000;
}

.theme-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
}

.theme-btn:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--accent-color);
}

.theme-icon {
    transition: all 0.3s ease;
}

.light-icon {
    display: none;
    color: hsl(45, 100%, 50%);
}

.dark-icon {
    display: block;
    color: hsl(233, 67%, 70%);
}

[data-theme="light"] .light-icon {
    display: block;
}

[data-theme="light"] .dark-icon {
    display: none;
}

/* ===== APPLY BEAUTIFUL THEMES TO ALL COMPONENTS ===== */
body {
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.4s ease;
}

.header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
}

/* Search Components */
.search-container {
    background: transparent;
}

.search-bar input {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.search-bar input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px hsla(233, 67%, 56%, 0.1), var(--shadow);
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-bar button {
    background: var(--accent-color);
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.search-bar button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.search-dropdown {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.search-dropdown .dropdown-item {
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
}

.search-dropdown .dropdown-item:hover {
    background: var(--bg-secondary);
}

/* Weather Components */
.current-weather {
    color: white;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.weather-container {
    background: transparent;
}

.details div {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.details div:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Forecast Components */
.daily-forecast .forecast-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.daily-forecast .forecast-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.hourly-forecast-cards {
    background: var(--bg-secondary) ;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
}

.hourly-forecast .forecast-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}
    
.hourly-forecast .forecast-card:hover {
    background: var(--bg-card-hover);
    transform: translateX(2px);
}


.hourly-forecast-cards ::-webkit-scrollbar-track{
  background: var(--bg-card);
}

.hourly-forecast-cards::-webkit-scrollbar-thumb{
  background: var(--bg-card);
  border-radius: 3px;
}
.hourly-forecast-cards::-webkit-scrollbar-thumb:hover{
  background: var(--bg-card);
}

/* Sun Times Components */
.sun-card {
    background: var(--card-gradient);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.sun-time {
    color: var(--text-primary) !important;
    font-weight: 700;
}

.sun-label {
    color: var(--text-secondary) !important;
}

.sun-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
     background: var(--bg-secondary);
}

.sun-card.sunrise {
    border-left: 4px solid hsl(45, 100%, 50%);
}

.sun-card.sunset {
    border-left: 4px solid hsl(350, 89%, 60%);
}

.day-progress {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
}

.progress-bar {
    background: var(--bg-secondary);
}

.progress-fill {
    background: linear-gradient(90deg, hsl(45, 100%, 50%), hsl(350, 89%, 60%));
}

/* Progress Labels */
.progress-labels span {
    color: var(--text-secondary) !important;
    font-weight: 600;
}

.progress-time {
    color: var(--text-secondary) !important;
    font-weight: 500;
}

/* Dropdown Components */
.dropdown-trigger {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color);
    color: var(--text-primary) !important;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}
 .dropdown-item.active {
  background: var(--bg-card) !important;
}

.dropdown-section {
    color: var(--text-muted) !important;
    font-weight: 600;
     background: var(--bg-secondary);
}

.dropdown-trigger:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-color);
}

.dropdown-trigger.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px hsla(233, 67%, 56%, 0.1);
}

.dropdown-menu {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.dropdown-item {
    color: var(--text-primary) !important; 
    transition: all 0.2s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--bg-secondary) !important;
}

.system-switch-btn {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.system-switch-btn:hover {
    background: var(--bg-card);
}

/* Footer */
footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-light);
    color: var(--text-secondary);
}



/* Error States */
.error-state {
    background: var(--bg-primary);
}
.error-content {
    background: var(--bg-primary);
  
}

/* Main Title */
.main-title {
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-controls {
        gap: 10px;
    }
    
    .theme-btn {
        width: 40px;
        height: 40px;
    }
}

/* ===== PWA INSTALL BUTTON ===== */
.install-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.install-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.4);
}

.install-btn.show {
    opacity: 1;
    transform: translateY(0);
}

/* Hide install button when app is already installed */
@media (display-mode: standalone) {
    .install-btn {
        display: none !important;
    }
}