
.weather-header {
  text-align: center;
  margin: 1.5rem auto;
  color: #007c91; /* accent color from your buttons */
}

.weather-header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.weather-header p {
  font-size: 1.1rem;
  color: #555;
  font-weight: 500;
}

.weather-container {
  display: grid;
  grid-template-columns: 1fr 3fr; /* left wider, right narrower */
  gap: 2rem;
  max-width: 1200px;
  min-height: 70vh; /* allow it to grow if content expands */
  margin: 2rem auto;
  padding: 2rem;
  background: #e0f7fa;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden; /* prevent scrollbar */
}
.weather-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background:  #ffffff;
  padding: 2rem;
  border-radius: 15px;
  height: 100%; /* fills left side fully */
  box-sizing: border-box; /* respect padding inside height */
}

.weather-right {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background-color: #f1f8f9;
  padding: 2rem;
  border-radius: 15px;
  height: 100%;
  box-sizing: border-box;
}

#weather {
  min-height: 200px;
}

.gif {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  overflow: hidden;
  width: 300px;        /* fixed width */
  height: 250px;       /* fixed height */
  border-radius: 15px;
 
}

.gif img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* ensures GIF covers container without stretching */
  border-radius: 15px;
}


#search-form {
  display: flex;
  gap: 10px;
}

/* Input field */
#city-input {
  height: 20px;
  flex: 1;
  padding: 0.5rem 1.2rem;
  border-radius: 50px; /* fully rounded */
  border: 1px solid #ccc;
  outline: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

#city-input:focus {
  border-color: #00bcd4;
  box-shadow: 0 0 8px rgba(0, 188, 212, 0.4);
}

/* Buttons */
#submit-btn,
#unit-toggle {
  height: 36px;
  padding: 0.7rem 1.5rem;
  border-radius: 50px; /* fully rounded for sleek look */
  border: none;
  background: linear-gradient(135deg, #00bcd4, #00acc1);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}
#submit-btn {
  font-size: 0.8rem;
  padding: 0 1rem;
}

#submit-btn:hover,
#unit-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
  background: linear-gradient(135deg, #00acc1, #0097a7);
}

#submit-btn:active,
#unit-toggle:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 188, 212, 0.3);
}

.weather-main {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
}
.weather-icon {
  width: 120px;  /* increase size */
  height: 120px; /* keep square */
  object-fit: contain; /* avoids distortion */
}

.weather-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
}

.temperature {
  font-size: 2rem;
  font-weight: bold;
  color: #00796b;
}

.conditions {
  font-size: 1.1rem;
  color: #555;
}

.cards {
  display: flex;
  gap: 1rem;
  justify-content: space-between; /* space evenly */
  flex-wrap: nowrap; /* wrap na ho */
  padding: 0.5rem 0;
}

.card {
  flex: 1;                /* har card equal space le */
  min-width: 80px;        /* chhoti width */
  max-width: 120px;       /* agar aur chhoti ho toh limit */
  background: #ffffff10;  /* translucent look */
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 0.5rem;
  text-align: center;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}



/* Card hover effect */
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

/* Card headings (like Sunrise, Sunset, etc.) */
.card .datetime:first-child {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffda79;   /* golden highlight for titles */
  margin-bottom: 0.5rem;
}

/* Card values (actual data like time, % etc.) */
.card .datetime:last-child {
  font-size: 1.1rem;
  font-weight: bold;
  color:#00796b;
}

#today-details {
  font-size: 1.2rem;       /* thoda bada aur prominent */
  font-weight: 700;       
  color:   #158190;    
  margin-bottom: 0.8rem;  
 
  letter-spacing: 0.5px;   
}


.weekly-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1rem;
  background-color: #f1f8f9;
  padding: 1rem;
  border-radius: 12px;
  overflow-y: auto; /* scroll if needed */
  height: calc(100% - 300px); /* adjust based on upper content */
}

.weekly-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.05);
}

.weekly-card .day-name {
  font-weight: 600;
}

.weekly-card .weekly-icon {
  width: 40px;
  height: 40px;
}

.weekly-card .temp {
  font-weight: 500;
}

.weekly-card .desc {
  font-size: 0.9rem;
  color: #555;
}


#app-footer {
  background-color: #2c3e50;  /* Dark blue/gray instead of black */
  color: #f1c40f;             /* Golden/yellow text for warmth */
  text-align: center;
  padding: 15px 0;
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  position: relative;  /* stays at bottom naturally */
  width: 100%;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
}

#app-footer p {
  margin: 0;
}