:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --text-color: #2b2d42;
    --light-color: #f8f9fa;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #4361ee 0%, #3f37c9 50%, #4cc9f0 100%);
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--gradient);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-color);
    transition: background 0.5s ease-in-out;
  }
  
  @keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  .weather-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
  
  .weather-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  }
  
  .app-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    color: white;
  }
  
  .search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    width: 100%;
  }
  
  .select-wrapper {
    flex: 1;
  }
  
  #city-input {
    width: 100%;
  }
  
  /* Ensure Select2 appears correctly */
  .select2-container {
    width: 100% !important;
  }
  
  .select2-selection--single {
    height: 48px !important;
    display: flex !important;
    align-items: center;
    font-size: 16px;
    padding: 0 10px;
    border-radius: 10px;
    border: none;
    background-color: white;
    color: #333;
    box-shadow: none;
  }
  
  .select2-selection__rendered {
    line-height: 48px !important;
  }
  
  .select2-selection__arrow {
    height: 100% !important;
  }
  
  #city-input-btn {
    background-color: var(--accent-color);
    border: none;
    border-radius: 10px;
    padding: 12px;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
    height: 48px;
    width: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  #city-input-btn:hover {
    background-color: var(--primary-color);
  }
  
  .weather-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
  }
  
  .temperature-display {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  #temperature {
    font-size: 36px;
    font-weight: 600;
  }
  
  #weather-icon {
    width: 80px;
    height: 80px;
    animation: fadeIn 1s ease-in-out, float 2s infinite ease-in-out alternate;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
  }
  
  @keyframes float {
    from { transform: translateY(0px); }
    to { transform: translateY(-5px); }
  }
  
  .weather-desc {
    text-align: center;
    font-size: 16px;
    margin-top: 10px;
  }
  
  .temp-bar {
    width: 100%;
    height: 10px;
    background: rgba(67, 97, 238, 0.2);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;
  }
  
  .temp-bar-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 1s ease-in-out;
  }
  
  .weather-details {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
  }
  
  .detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
  }
  
  .footer-note {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #aaa;
  }
  
  @media (prefers-color-scheme: dark) {
    body {
      background: #121212;
      color: white;
    }
    .weather-card {
      background: rgba(255, 255, 255, 0.2);
      border: 1px solid rgba(255, 255, 255, 0.4);
    }
  }
  
