* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
}

body {
  background: linear-gradient(145deg, #f0f7f0 0%, #e2efe5 100%);
  min-height: 100vh;
  padding: 20px;
}

.app-wrapper {
  max-width: 1300px;
  margin: 0 auto;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  padding: 16px 28px;
  border-radius: 48px;
  box-shadow: 0 8px 20px rgba(0, 40, 20, 0.08);
  margin-bottom: 20px;
  border: 1px solid rgba(80, 140, 100, 0.2);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  background: #2a7a3b;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 10px rgba(42, 122, 59, 0.3);
}

.app-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #1c4b2a;
}

.app-title span {
  font-weight: 300;
  color: #3d7a4b;
}

.status-badge {
  background: #1e3b24;
  color: #d4edda;
  padding: 8px 20px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.live-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #3ddc84;
  border-radius: 50%;
  animation: pulse-dot 1.6s infinite;
  margin-right: 4px;
}

@keyframes pulse-dot {
  0% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.3); }
  100% { opacity: 0.4; transform: scale(0.9); }
}

.location-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  padding: 10px 20px;
  border-radius: 40px;
  margin-bottom: 20px;
  border: 1px solid rgba(80, 140, 100, 0.15);
  flex-wrap: wrap;
}

.location-bar select {
  padding: 6px 16px;
  border-radius: 30px;
  border: 1px solid #8ab89a;
  background: white;
  font-size: 14px;
  color: #1c4b2a;
  font-weight: 500;
  cursor: pointer;
  outline: none;
}

.location-bar select:focus {
  border-color: #2a7a3b;
  box-shadow: 0 0 0 3px rgba(42, 122, 59, 0.2);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 800px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    border-radius: 28px;
  }
}

.card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border-radius: 32px;
  padding: 20px 22px 26px;
  box-shadow: 0 12px 30px rgba(0, 30, 10, 0.08);
  border: 1px solid rgba(120, 180, 130, 0.2);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.card-header h3 {
  font-weight: 600;
  font-size: 18px;
  color: #1d4626;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header h3 i {
  color: #2f8e46;
  font-size: 18px;
  width: 28px;
  text-align: center;
}

.chip {
  background: #d8ebdd;
  padding: 4px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  color: #1a4a26;
}

.chart-container {
  position: relative;
  height: 200px;
  margin-top: 6px;
}

.chart-container-sm {
  height: 150px;
}

.value-box {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 14px;
  padding: 0 6px;
}

.current-value {
  font-size: 28px;
  font-weight: 700;
  color: #0f3d1c;
}

.current-value small {
  font-size: 16px;
  font-weight: 400;
  color: #40734e;
  margin-left: 6px;
}

.trend-badge {
  background: #e5f3e8;
  padding: 6px 14px;
  border-radius: 40px;
  font-size: 14px;
  color: #1c592b;
}

.info-bar {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 13px;
  color: #1b4a28;
  background: #dff0e3;
  padding: 8px 16px;
  border-radius: 60px;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Weather Current */
.weather-current {
  background: linear-gradient(135deg, rgba(42, 122, 59, 0.08), rgba(80, 180, 120, 0.08));
  border-radius: 20px;
  padding: 16px 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(80, 140, 100, 0.15);
}

.weather-main {
  display: flex;
  align-items: center;
  gap: 20px;
}

.weather-icon {
  font-size: 48px;
  color: #f5a623;
}

.weather-temp {
  font-size: 36px;
  font-weight: 700;
  color: #1c4b2a;
}

.weather-desc {
  font-size: 16px;
  color: #2d5f3b;
  margin-top: 4px;
  text-transform: capitalize;
}

.weather-details {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.weather-details span {
  font-size: 14px;
  color: #1b4a28;
  background: rgba(255, 255, 255, 0.5);
  padding: 4px 12px;
  border-radius: 20px;
}

.weather-details i {
  color: #2a7a3b;
  width: 18px;
}

.weather-sun {
  display: flex;
  gap: 20px;
  margin-top: 8px;
  font-size: 13px;
  color: #2d5f3b;
}

.weather-sun i {
  color: #f5a623;
}

/* Forecast Cards */
.forecast-cards {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding: 4px 2px;
}

.forecast-card {
  flex: 0 0 auto;
  min-width: 80px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 10px 12px;
  text-align: center;
  border: 1px solid rgba(80, 140, 100, 0.1);
}

.forecast-card .fc-time {
  font-size: 12px;
  color: #1b4a28;
  font-weight: 600;
}

.forecast-card .fc-icon {
  font-size: 24px;
  margin: 4px 0;
}

.forecast-card .fc-temp {
  font-size: 16px;
  font-weight: 700;
  color: #1c4b2a;
}

.forecast-card .fc-humid {
  font-size: 11px;
  color: #40734e;
}

.status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(6px);
  border-radius: 60px;
  padding: 12px 24px;
  border: 1px solid rgba(100,160,110,0.2);
  margin: 10px 0 16px;
}

.footer-note {
  text-align: center;
  margin-top: 28px;
  color: #2d5f3b;
  font-size: 14px;
  opacity: 0.7;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-note i {
  color: #2f8e46;
}

.sim-status {
  background: #deefe2;
  border-radius: 40px;
  padding: 4px 16px 4px 12px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Scrollbar */
.forecast-cards::-webkit-scrollbar {
  height: 4px;
}

.forecast-cards::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
  border-radius: 10px;
}

.forecast-cards::-webkit-scrollbar-thumb {
  background: #8ab89a;
  border-radius: 10px;
}