body {
    margin: 0;
    display: flex;
    height: 100vh;
    font-family: 'Merriweather', serif;
    flex-direction: row;
  }
  
  #sidebar {
    order:1;
    width: 35%;
    overflow-y: auto;
    background-color: #f9f9f9;
    border-right: 1px solid #ddd;
    padding: 10px;
  }
  
  .sidebar-controls {
    background-color: #f0f0f0;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
  }
  
  .sidebar-controls label {
    display: block;
    margin-top: 6px;
    font-size: 0.85em;
  }
  
  .sidebar-controls input {
    width: 100%;
    margin-bottom: 6px;
  }
  
  .sidebar-controls button {
    width: 100%;
    background-color: #0044cc;
    color: white;
    border: none;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .sidebar-controls button:hover {
    background-color: #003399;
  }
  
  
  #map {
    width: 65%;
    height: 100vh;
    order:2;
  }
  
  /* Kart tasarımı */
  .quake-card {
    border-bottom: 1px solid #ccc;
    padding: 10px 8px;
    position: relative;
    font-family: 'Merriweather', serif;
  
  }
  
  .quake-card h2 {
    font-size: 1.8em;
    margin: 0;
    float: left;
    width: 50px;
    color: #222;
  }
  
  .quake-details {
    margin-left: 60px;
  }
  
  .quake-location {
    font-weight: bold;
    color: #0044cc;
    font-size: 1em;
    text-decoration: none;
  }
  
  .quake-time {
    font-size: 0.9em;
    color: #444;
    margin: 4px 0;
  }
  
  .quake-info {
    font-size: 0.9em;
    color: #222;
    margin-top: 4px;
  }
  
  .quake-info span {
    display: inline-block;
    margin-right: 8px;
  }
  
  .mmi-badge, .alert-badge {
    font-weight: bold;
    font-size: 0.8em;
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff;
  }
  
  .alert-badge {
    background-color: green;
  }
  
  .mmi-V {
    background-color: #4CAF50;
  }
  
  .mmi-VI {
    background-color: #FF9800;
  }
  
  .mmi-VII {
    background-color: #f1c40f;
    color: #000;
  }
  
  .quake-depth {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.9em;
    color: #666;
  }
  
  
  #loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #0044cc;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
  }
  
  .loading-text {
    font-size: 1.2em;
    color: #444;
    font-family: 'Merriweather', serif;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  
  #info-footer {
    font-size: 0.85em;
    color: #777;
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    border-top: 1px solid #ccc;
    background-color: #f2f2f2;
  }
  
  .download-widget {
    background: #ffffffdd;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    font-family: 'Merriweather', serif;
    text-align: center;
  }
  
  .download-widget button {
    background-color: #0044cc;
    border: none;
    padding: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .download-widget button:hover {
    background-color: #003399;
  }
  
  .download-widget i {
    color: white;
    font-size: 13px;
  }
  
  
  
  
  .mag-button-widget {
    background: #ffffffdd;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    font-family: 'Merriweather', serif;
    margin-top: 10px;
    text-align: center;
  }
  
  .mag-filter-buttons {
    display: flex;
    gap: 6px;
  }
  
  .mag-btn {
    padding: 6px 10px;
    font-size: 0.85em;
    background-color: #0044cc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .mag-btn.active {
    background-color: #003399;
  }
  
  
  .date-radio-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
  }
  
  .date-radio-buttons label {
    background-color: #e0e0e0;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9em;
    cursor: pointer;
    user-select: none;
  }
  
  .date-radio-buttons input[type="radio"] {
    display: none;
  }
  
  .date-radio-buttons input[type="radio"]:checked + span,
  .date-radio-buttons label:has(input[type="radio"]:checked) {
    background-color: #0044cc;
    color: white;
  }
  
  
  @media (max-width: 768px) {
    body {
      flex-direction: column;
    }
  
    #map {
      order:1;
      width: 100%;
      height: 50vh;
    }
  
    #sidebar {
      order:2;
      width: 100%;
      height: 50vh;
      overflow-y: scroll;
      border-right: none;
      border-top: 1px solid #ddd;
    }
    .quake-card {
      display: flex;
      flex-direction: column;
      padding: 12px;
      position: relative;
    }
  
    .quake-card h2 {
      float: none;
      width: auto;
      margin: 0 0 6px 0;
      font-size: 1.6em;
    }
  
    .quake-details {
      margin-left: 0;
    }
  
    .quake-depth {
      position: relative;
      top: auto;
      right: auto;
      font-size: 0.9em;
      margin-top: 6px;
      align-self: flex-end;
      color: #666;
    }
  
  
  }
  
  
  
  /* Reset view and additional widget styles */
  .reset-view-widget {
    background: #ffffffdd;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    font-family: 'Merriweather', serif;
    text-align: center;
  }

  .reset-view-widget button {
    background-color: #0044cc;
    border: none;
    padding: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .reset-view-widget button:hover {
    background-color: #003399;
  }

  .reset-view-widget i {
    color: white;
    font-size: 13px;
  }