/* public/css/customized/weather.css */
:root {
  --primary-color: #46546C;
  --primary-gradient: linear-gradient(135deg, #2C3E50 0%, #46546C 100%);
  --accent-color: #00D2FF;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --text-main: #2C3E50;
  --text-muted: #5a6a7f;
  --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.weather-item {
  background: var(--primary-color) !important;
  color: #fff !important;
}

#content {
  background-color: #f1f5f9;
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

/* Glassmorphism Cards */
.weather-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.weather-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
}

/* Hero Section */
.weather-hero {
  background: var(--primary-gradient);
  border-radius: 20px;
  padding: 3rem;
  color: white;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.weather-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.weather-hero h2 {
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Selection Section */
.region_select_section {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.form-select {
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 0.6rem 1rem;
  transition: border-color 0.2s;
}

.form-select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.1);
}

.form-label {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

/* Forecast Section */
.forecast-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0;
  scroll-behavior: smooth;
}

.forecast-card {
  min-width: 220px;
  flex: 0 0 auto;
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid #eef2f7;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.forecast-card .date {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.forecast-card .weather-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto;
}

.forecast-card .temp-main {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0.5rem 0;
}

.forecast-card .details {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: left;
  margin-top: 1rem;
}

.data-row {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  border-bottom: 1px solid #f8fafc;
}

/* Stats Cards */
.stat-card {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  border-radius: 15px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(70, 84, 108, 0.1);
  color: var(--primary-color);
}

/* Chart Section */
.chart-container-wrapper {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Notifications */
.mssg {
  padding: 1rem 1.5rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  font-weight: 500;
  display: none;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.success_msg_sctn {
  background-color: #d1fae5;
  color: #065f46;
}

.location_not_found_sctn {
  background-color: #fee2e2;
  color: #991b1b;
}

/* Custom Scrollbar */
.forecast-container::-webkit-scrollbar {
  height: 6px;
}

.forecast-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.forecast-container::-webkit-scrollbar-track {
  background: transparent;
}