/* ===============================
   Таблица городов
=============================== */

.cities-table-container {
    max-width: 100%;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  }
  
  .cities-table-header {
    text-align: center;
    margin-bottom: 20px;
  }
  
  .cities-table-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 5px;
    color: #333;
  }
  
  .cities-table-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
  }
  
  .cities-count {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-top: 5px;
    text-align: center;
    padding-left: 24px;
  }
  
  .city-search,
  #city-search {
    display: block;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 20px;
    padding: 10px 15px;
    font-size: 16px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 8px;
  }
  
  #cities-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 16px;
  }
  
  #cities-table thead {
    background-color: #0073aa;
    color: #000;
  }

  #cities-table th {
    padding: 12px 15px;
    border: 1px solid #ccc;
  }
  #cities-table td {
    padding: 2px 15px;
    border: 1px solid #ddd;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}
  
  .cities-table__cell {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
  }
  
  #cities-table th:nth-child(1),
  #cities-table td:nth-child(1) {
    width: 7%;
    text-align: center;
  }
  
  #cities-table th:nth-child(2),
  #cities-table td:nth-child(2),
  #cities-table th:nth-child(3),
  #cities-table td:nth-child(3) {
    width: 30%;
  }
  
  #cities-table th:nth-child(4),
  #cities-table td:nth-child(4) {
    width: 33%;
  }
  
  #cities-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
  }
  
  #cities-table tbody tr:hover td {
    background-color: #f1f1f1;
  }
  
  #cities-table td[colspan="4"] {
    text-align: center;
    color: #393939;
    padding: 20px;
  }
  
  /* ===============================
     Пагинация
  =============================== */
  
  #cities-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 40px 0;
    font-size: 16px;
  }
  
  .page-link {
    cursor: pointer;
    color: #0073aa;
    padding: 2px 6px;
    text-decoration: none;
    border-radius: 4px;
  }
  
  .page-link:hover {
    background-color: #f0f0f0;
  }
  
  .page-link.active {
    font-weight: bold;
    color: #000;
    background-color: #ddd;
  }
  
  /* ===============================
     Виджет погоды
  =============================== */
  
  .weather-widget-wrapper {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-width: 400px;
    background-color: #fff;
  }
  
  .weather-widget-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
    position: relative;
  }
  
  .weather-widget-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    margin: 15px auto;
    background-color: #ddd;
  }
  
  .weather-widget {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .weather-icon {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
  }
  
  .weather-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .weather-temp {
    font-size: 32px;
    font-weight: bold;
    margin: 0 0 5px;
    color: #222;
  }
  
  .weather-desc {
    margin: 0;
    color: #666;
    font-size: 16px;
  }
  
  .weather-error {
    color: #a00;
    font-style: italic;
  }
  
  /* ===============================
     Загрузка / Спиннер
  =============================== */
  
  .loading-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
  
  .spinner {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .spinner::after {
    content: "";
    width: 10px;
    height: 10px;
    border: 4px solid #ccc;
    border-top-color: #38af8e;
    border-radius: 50%;
    animation: spin 0.4s linear infinite;
  }
  
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  