* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f0f4f8;
  color: #333;
}

.app-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

header {
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
}

header h1 {
  font-size: 2rem;
  color: #2c3e50;
}

.search-section {
  width: 100%;
  max-width: 400px;
  position: relative;
}

#search {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #3498db;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#search:focus {
  border-color: #2980b9;
  box-shadow: 0 0 8px rgba(52, 152, 219, 0.5);
}

.autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 250px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.autocomplete div {
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.autocomplete div:hover {
  background: #ecf0f1;
}

.navigation {
  margin: 20px 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
}

.dropdown-group {
  display: flex;
  align-items: center;
}

.dropdown-group label {
  margin-right: 8px;
}

.navigation select {
  padding: 8px 12px;
  border: 1px solid #3498db;
  border-radius: 4px;
  font-size: 1rem;
}

.history-section {
  width: 100%;
  max-width: 400px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-item {
  background: #ffffff;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-item:hover {
  background: #f9f9f9;
}

.history-date {
  font-size: 1rem;
  color: #2c3e50;
}

.history-temp {
  font-size: 1.2rem;
  font-weight: bold;
  color: #e74c3c;
}

/* Responsive Design */
@media (max-width: 480px) {
  header h1 {
    font-size: 1.5rem;
  }

  #search {
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .autocomplete div {
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .history-item {
    padding: 14px;
  }

  .history-date {
    font-size: 0.95rem;
  }

  .history-temp {
    font-size: 1.1rem;
  }
}
