:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --text-dark: #1e293b;
  --text-medium: #475569;
  --text-light: #64748b;
  --bg-light: #f8fafc;
  --border-light: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  line-height: 1.5;
  min-height: 100vh;
  padding: 1rem;
  background: url('https://stweatherapp.z16.web.core.windows.net/weatherappwallpaper.jpg') no-repeat center center fixed;
  background-size: cover;
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.4);
  z-index: -1;
}

.main-container {
  background: white;
  max-width: 800px;
  margin: 2rem auto;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(2px);
}

.app-header {
  text-align: center;
  margin-bottom: 2rem;
}

h1 {
  color: var(--text-dark);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}

.search-bar {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

input#city-input {
  flex: 1;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  outline: none;
  background: white;
  transition: all 0.2s;
  color: var(--text-dark);
}

input#city-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

button:hover {
  background: var(--primary-dark);
}

.weather-container {
  margin-bottom: 2.5rem;
}

.current-weather {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.weather-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.weather-now {
  font-size: 1.25rem;
  color: var(--text-medium);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.weather-now .temp {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 1rem;
  color: var(--text-dark);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-light);
}

.forecast-section {
  margin-top: 2rem;
}

.forecast-section.ml-forecast {
  background: rgba(248, 250, 252, 0.7);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 2.5rem;
}

.forecast-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
}

.forecast-item {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.forecast-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.weather-icon {
  width: 24px;
  height: 24px;
}

.temp {
  font-weight: 600;
  color: var(--primary-dark);
}

.error-message {
  color: #dc2626;
  font-weight: 500;
}

@media (max-width: 640px) {
  .main-container {
    padding: 1.5rem;
    margin: 1rem auto;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  .search-bar {
    flex-direction: column;
  }
  
  input#city-input {
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
  }
  
  button {
    border-radius: var(--radius-sm);
    justify-content: center;
  }
}
