/* Palet Warna */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem; /* Padding untuk perangkat kecil */
  }
  
  .container {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
    text-align: center;
    margin: 0 auto; /* Pusatkan container secara horizontal */
  }
  
  h1 {
    color: #493D9E;
    font-size: 1.8rem;
  }
  
  p {
    margin-bottom: 1.5rem;
    text-align: left;
    font-size: 1rem;
    color: #6b7280;
  }
  
  form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  label {
    font-weight: bold;
    color: #555;
    font-size: 1rem;
    text-align: left;
  }
  
  input {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    width: 100%; /* Input penuh lebar */
  }
  
  input:focus {
    outline: none;
    border-color: var(--primary-color);
  }
  
  button {
    padding: 0.75rem;
    background-color: #6C63FF;
    color: white;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    width: 100%; /* Tombol penuh lebar */
  }
  
  button:hover {
    background-color: #FF6584;
  }
  
  .results {
    margin-top: 1.5rem;
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }
  
  /* Responsive Design */
  @media (max-width: 600px) {
    h1 {
      font-size: 1.5rem; /* Ukuran font lebih kecil untuk layar kecil */
    }
  
    p {
      font-size: 0.9rem;
    }
  
    button {
      font-size: 0.9rem;
    }
  
    .action-buttons {
      flex-direction: column; /* Tombol menjadi vertikal di layar kecil */
    }
  
    #copyAllButton, #clearButton {
      width: 100%; /* Tombol penuh lebar */
    }
  }

  /* Tambahkan CSS untuk tombol loading */
button.loading {
    background-color: #6c757d; /* Warna abu-abu saat loading */
    cursor: not-allowed;
    position: relative;
  }
  
  button.loading::after {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  @keyframes spin {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }

/* Styling untuk tombol Copy All dan Clear */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  #copyAllButton, #clearButton {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  #copyAllButton {
    background-color: #8174A0;;
  }
  
  #copyAllButton:hover {
    background-color: #382f7f;
  }
  
  #clearButton {
    background-color: #e7c59f; /* Warna merah untuk Clear */
    color: white;
  }
  
  #clearButton:hover {
    background-color: #ad885f;
  }