  :root {
      --primary: #0ea5e9;
      --primary-dark: #0284c7;
      --secondary: #ef4444;
      --secondary-dark: #dc2626;
      --dark: #1e293b;
      --light: #f8fafc;
      --gray: #64748b;
      --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
      --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

    body {
      font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
      background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
      color: var(--dark);
      min-height: 100vh;
      transition: var(--transition);
    }

    body.dark-mode {
      --light: #1e293b;
      --dark: #f8fafc;
      --gray: #94a3b8;
      background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    }

    header {
      background: var(--dark);
      color: var(--light);
      padding: 1.5rem 2rem;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
      position: sticky;
      top: 0;
      z-index: 1000;
      transition: var(--transition);
    }

    .header-content {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .logo-section {
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    .logo-section img {
      height: 40px;
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0% { transform: scale(1); }
      50% { transform: scale(1.05); }
      100% { transform: scale(1); }
    }

    h1 {
      font-size: 1.8rem;
      font-weight: 700;
    }

    .powered {
      font-size: 0.9rem;
      color: var(--gray);
      margin-top: 0.2rem;
    }

    .header-controls {
      display: flex;
      gap: 1rem;
      align-items: center;
    }

    .theme-toggle {
      background: rgba(255, 255, 255, 0.1);
      border: none;
      color: var(--light);
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: var(--transition);
    }

    .theme-toggle:hover {
      background: rgba(255, 255, 255, 0.2);
      transform: rotate(20deg);
    }

    .refresh-btn {
      background: var(--primary);
      border: none;
      color: white;
      padding: 0.5rem 1rem;
      border-radius: 50px;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      cursor: pointer;
      font-weight: 600;
      transition: var(--transition);
    }

    .refresh-btn:hover {
      background: var(--primary-dark);
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4);
    }

    .refresh-btn.spinning i {
      animation: spin 1s linear infinite;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    .container {
      max-width: 1200px;
      margin: 2rem auto;
      padding: 0 1.5rem;
    }

    .stats-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1.5rem;
      margin-bottom: 2rem;
    }

    .stat-card {
      background: var(--light);
      border-radius: 16px;
      padding: 1.5rem;
      box-shadow: var(--card-shadow);
      display: flex;
      align-items: center;
      gap: 1rem;
      transition: var(--transition);
      animation: fadeInUp 0.5s ease forwards;
      opacity: 0;
    }

    .stat-card:nth-child(1) { animation-delay: 0.1s; }
    .stat-card:nth-child(2) { animation-delay: 0.2s; }
    .stat-card:nth-child(3) { animation-delay: 0.3s; }
    .stat-card:nth-child(4) { animation-delay: 0.4s; }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .stat-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

    .stat-icon {
      width: 60px;
      height: 60px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
    }

    .stat-icon.terkini {
      background: rgba(239, 68, 68, 0.1);
      color: var(--secondary);
    }

    .stat-icon.terkuat {
      background: rgba(245, 158, 11, 0.1);
      color: #f59e0b;
    }

    .stat-icon.terdalam {
      background: rgba(59, 130, 246, 0.1);
      color: #3b82f6;
    }

    .stat-icon.total {
      background: rgba(16, 185, 129, 0.1);
      color: #10b981;
    }

    .stat-info h3 {
      font-size: 0.9rem;
      color: var(--gray);
      margin-bottom: 0.3rem;
    }

    .stat-value {
      font-size: 1.5rem;
      font-weight: 700;
    }

    .map-section {
      background: var(--light);
      border-radius: 16px;
      padding: 1.5rem;
      margin-bottom: 2rem;
      box-shadow: var(--card-shadow);
      animation: fadeInUp 0.5s ease 0.5s forwards;
      opacity: 0;
    }

    .section-title {
      font-size: 1.3rem;
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    #map {
      height: 400px;
      border-radius: 12px;
      overflow: hidden;
    }

    .filter-section {
      background: var(--light);
      border-radius: 16px;
      padding: 1.5rem;
      margin-bottom: 2rem;
      box-shadow: var(--card-shadow);
      animation: fadeInUp 0.5s ease 0.6s forwards;
      opacity: 0;
    }

    .filter-controls {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      margin-top: 1rem;
    }

    .filter-group {
      flex: 1;
      min-width: 200px;
    }

    .filter-group label {
      display: block;
      margin-bottom: 0.5rem;
      font-weight: 600;
      color: var(--gray);
    }

    .filter-group input,
    .filter-group select {
      width: 100%;
      padding: 0.7rem;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      background: var(--dark);
      color: var(--light);
      transition: var(--transition);
    }

    .filter-group input:focus,
    .filter-group select:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    }

    .filter-btn {
      background: var(--primary);
      color: white;
      border: none;
      padding: 0.7rem 1.5rem;
      border-radius: 8px;
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition);
      display: flex;
      align-items: center;
      gap: 0.5rem;
      align-self: flex-end;
    }

    .filter-btn:hover {
      background: var(--primary-dark);
      transform: translateY(-2px);
    }

    .gempa-container {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
      gap: 1.5rem;
      margin-bottom: 2rem;
    }

    .gempa-card {
      background: var(--light);
      border-radius: 16px;
      overflow: hidden;
      box-shadow: var(--card-shadow);
      transition: var(--transition);
      animation: fadeInUp 0.5s ease forwards;
      opacity: 0;
      position: relative;
    }

    .gempa-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

    .gempa-card.pinned {
      border-left: 5px solid var(--secondary);
      animation: pulse-border 2s infinite;
    }

    @keyframes pulse-border {
      0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
      70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
      100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
    }

    .gempa-header {
      padding: 1.5rem;
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
      color: white;
      position: relative;
    }

    .gempa-header.pinned {
      background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    }

    .gempa-date {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.5rem;
    }

    .gempa-magnitude {
      font-size: 2rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
    }

    .gempa-location {
      font-size: 1rem;
      opacity: 0.9;
    }

    .gempa-badge {
      position: absolute;
      top: 1rem;
      right: 1rem;
      background: rgba(255, 255, 255, 0.2);
      padding: 0.3rem 0.8rem;
      border-radius: 50px;
      font-size: 0.8rem;
      font-weight: 600;
    }

    .gempa-body {
      padding: 1.5rem;
    }

    .gempa-info {
      display: flex;
      flex-direction: column;
      gap: 0.8rem;
    }

    .info-row {
      display: flex;
      align-items: flex-start;
      gap: 0.8rem;
    }

    .info-icon {
      width: 24px;
      height: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--primary);
      margin-top: 2px;
    }

    .info-text {
      flex: 1;
    }

    .info-label {
      font-weight: 600;
      margin-bottom: 0.2rem;
      color: var(--gray);
      font-size: 0.9rem;
    }

    .info-value {
      color: var(--dark);
    }

    .gempa-actions {
      display: flex;
      gap: 0.8rem;
      margin-top: 1.5rem;
    }

    .action-btn {
      flex: 1;
      padding: 0.7rem;
      border: none;
      border-radius: 8px;
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
    }

    .copy-btn {
      background: rgba(14, 165, 233, 0.1);
      color: var(--primary);
    }

    .copy-btn:hover {
      background: var(--primary);
      color: white;
    }

    .map-btn {
      background: rgba(16, 185, 129, 0.1);
      color: #10b981;
    }

    .map-btn:hover {
      background: #10b981;
      color: white;
    }

    .modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.7);
      z-index: 2000;
      align-items: center;
      justify-content: center;
      animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    .modal-content {
      background: var(--light);
      border-radius: 16px;
      width: 90%;
      max-width: 800px;
      max-height: 90%;
      overflow: auto;
      animation: slideUp 0.3s ease;
    }

    @keyframes slideUp {
      from {
        transform: translateY(50px);
        opacity: 0;
      }
      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    .modal-header {
      padding: 1.5rem;
      border-bottom: 1px solid #e2e8f0;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .modal-title {
      font-size: 1.5rem;
      font-weight: 700;
    }

    .modal-close {
      background: none;
      border: none;
      font-size: 1.5rem;
      cursor: pointer;
      color: var(--gray);
      transition: var(--transition);
    }

    .modal-close:hover {
      color: var(--secondary);
      transform: rotate(90deg);
    }

    .modal-body {
      padding: 1.5rem;
    }

    #modal-map {
      height: 400px;
      border-radius: 12px;
      margin-bottom: 1.5rem;
    }

    .notification {
      position: fixed;
      bottom: 2rem;
      right: 2rem;
      background: var(--dark);
      color: var(--light);
      padding: 1rem 1.5rem;
      border-radius: 12px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
      display: flex;
      align-items: center;
      gap: 1rem;
      transform: translateX(400px);
      transition: transform 0.3s ease;
      z-index: 3000;
    }

    .notification.show {
      transform: translateX(0);
    }

    .notification-icon {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .notification-content h4 {
      margin-bottom: 0.3rem;
    }

    .notification-content p {
      font-size: 0.9rem;
      opacity: 0.8;
    }

    footer {
      background: var(--dark);
      color: var(--light);
      padding: 2rem;
      text-align: center;
      margin-top: 3rem;
    }

    .footer-content {
      max-width: 1200px;
      margin: 0 auto;
    }

    .footer-links {
      display: flex;
      justify-content: center;
      gap: 2rem;
      margin-bottom: 1rem;
    }

    .footer-links a {
      color: var(--gray);
      text-decoration: none;
      transition: var(--transition);
    }

    .footer-links a:hover {
      color: var(--primary);
    }

    .loading {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 200px;
    }

    .spinner {
      width: 50px;
      height: 50px;
      border: 5px solid rgba(14, 165, 233, 0.2);
      border-top-color: var(--primary);
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }

    @media (max-width: 768px) {
      .header-content {
        flex-direction: column;
        gap: 1rem;
      }

      .gempa-container {
        grid-template-columns: 1fr;
      }

      .filter-controls {
        flex-direction: column;
      }

      .filter-group {
        width: 100%;
      }

      .footer-links {
        flex-direction: column;
        gap: 1rem;
      }
    }
