* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
  color: #333;
  line-height: 1.4;
  margin: 0;
  padding: 0;
  width: 1024px;
  height: 600px;
  overflow: hidden;
}

.dashboard {
  width: 1024px;
  height: 600px;
  margin: 0;
  padding: 5px;
  box-sizing: border-box;
}


main {
  display: block;
  height: 590px;
  overflow-y: auto;
}

.weather-section {
  background: white;
  padding: 8px;
  height: 100%;
  box-sizing: border-box;
}

.weather-section h2 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #34495e;
}

.weather-content {
  font-size: 1.1rem;
}

.loading {
  color: #7f8c8d;
  font-style: italic;
}

.current-weather {
  text-align: center;
  margin-bottom: 10px;
  padding: 6px;
  background: #f8f9fa;
  height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.current-icon {
  font-size: 2.5rem;
  margin-bottom: 2px;
}

.temperature {
  font-size: 2rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 2px;
}

.condition {
  font-size: 0.9rem;
  color: #34495e;
  text-transform: capitalize;
  margin-bottom: 2px;
}

.precipitation {
  font-size: 0.8rem;
  color: #7f8c8d;
  font-weight: bold;
}

.hourly-forecast {
  margin-bottom: 8px;
}

.hourly-forecast h3 {
  font-size: 1rem;
  color: #2c3e50;
  margin-bottom: 5px;
  text-align: center;
}

.hourly-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3px;
  margin-bottom: 5px;
}

.hourly-item {
  background: white;
  padding: 3px;
  text-align: center;
  border: 1px solid #e9ecef;
  height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hour-time {
  font-weight: bold;
  color: #2c3e50;
  font-size: 0.7rem;
  margin-bottom: 1px;
}

.hour-icon {
  font-size: 1.2rem;
  margin-bottom: 1px;
}

.hour-temp {
  font-size: 0.8rem;
  font-weight: bold;
  color: #e74c3c;
  margin-bottom: 1px;
}

.hour-precip {
  font-size: 0.7rem;
  color: #3498db;
  font-weight: bold;
  margin-bottom: 1px;
}

.hour-desc {
  font-size: 0.6rem;
  color: #7f8c8d;
  text-transform: capitalize;
}

.error {
  color: #e74c3c;
  font-style: italic;
  text-align: center;
}

/* Optimized for 1024x600 tablet - no responsive design needed */