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

  body {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(to bottom, #e3f2fd, #ffffff);
    color: #333;
    line-height: 1.6;
    padding: 0 20px;
    transition: background-color 0.3s ease-in-out;
  }
  
  /* Heading Style */
  h1 {
    text-align: center;
    margin-top: 40px;
    font-size: 2.8rem;
    color: #0277bd;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    transition: color 0.3s ease;
  }
  
  h1:hover {
    color: #01579b;
  }
  
  /* Container Style */
  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
  }
  
  /* Button Styles */
  .btn-primary {
    background-color: #0277bd;
    color: #fff;
    padding: 14px 28px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.1);
  }
  
  .btn-primary:hover {
    background-color: #01579b;
    transform: scale(1.05);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15);
  }
  
  /* Modal Styles */
  .modal-content {
    border-radius: 12px;
    background-color: #fff;
    padding: 25px;
    max-width: 500px;
    margin: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .modal-header {
    border-bottom: 2px solid #0277bd;
    text-align: center;
  }
  
  .modal-header h5 {
    font-size: 1.6rem;
    color: #0277bd;
  }
  
  .modal-body {
    margin-top: 15px;
    padding: 0 10px;
    text-align: center;
  }
  
  .modal-body h3 {
    font-size: 1.3rem;
    color: #333;
  }
  
  .modal-body .col-6 {
    font-weight: bold;
  }
  
  /* Add a Hover Effect Over Cards */
  .card {
    transition: transform 0.3s, box-shadow 0.3s ease;
  }
  
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  }
  
  /* Weather Information Table */
  table {
    width: 100%;
    margin-top: 30px;
    border-collapse: collapse;
  }
  
  table th,
  table td {
    padding: 12px 20px;
    text-align: center;
    border: 1px solid #ddd;
  }
  
  table th {
    background-color: #0277bd;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
  }
  
  table tr:nth-child(even) {
    background-color: #f2f2f2;
  }
  
  table tbody tr:hover {
    background-color: #d1e7dd; /* Light green */
  }
  
  table thead {
    background-color: #343a40; /* Dark gray */
  }
  
  table th,
  table td {
    padding: 12px 20px;
    font-size: 1rem;
  }
  
  .loader {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #0277bd; /* Blue */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: auto;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* Input Fields */
  input,
  select {
    padding: 12px;
    margin: 12px 0;
    border-radius: 10px;
    border: 1px solid #ccc;
    width: 100%;
    max-width: 300px;
    font-size: 1rem;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1);
  }
  
  input[type="text"] {
    margin-right: 10px;
  }
  
  #weathercity,
  #countrycode {
    margin-top: 12px;
  }
  
  /* Form Style */
  form {
    text-align: center;
    margin-top: 20px;
  }
  
  form input,
  form select {
    font-size: 1rem;
    width: 45%;
  }
  
  /* Footer Style */
  footer {
    text-align: center;
    margin-top: 50px;
    font-size: 1rem;
    color: #0277bd;
  }
  
  footer a {
    text-decoration: none;
    color: #0277bd;
    transition: color 0.3s ease;
  }
  
  footer a:hover {
    color: #01579b;
    text-decoration: underline;
  }
  
  /* Responsive Layout */
  @media (max-width: 768px) {
    .container {
      margin-top: 20px;
    }
  
    h1 {
      font-size: 2rem;
    }
  
    .modal-content {
      padding: 15px;
    }
  
    input,
    select {
      width: 100%;
    }
  
    table {
      font-size: 0.9rem;
    }
  }
  