/* Styling untuk Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: auto;
    animation: fadeIn 0.5s ease-out;
  }
  
  .modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    margin: 20px;
    animation: slideIn 0.4s ease-out;
  }
  
  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .modal-header h2 {
    margin: 0;
    font-size: 20px;
  }
  
  .modal-header .close {
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
  }
  
  .modal-header .close:hover {
    transform: scale(1.2);
  }
  
  .modal-body {
    margin-top: 20px;
  }
  
  .modal-body label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    animation: fadeIn 0.8s ease-in;
  }
  
  .modal-body input,
  .modal-body select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
  }
  
  .modal-footer {
    text-align: right;
  }
  
  .modal-footer button {
    padding: 10px 20px;
    border: none;
    background-color: #25d366;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .modal-footer button:hover {
    background-color: #1da955;
  }
  
  /* Keyframes for Animations */
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  @keyframes slideIn {
    from {
      transform: translateY(-20px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
  
  /* Responsiveness */
  @media (max-width: 768px) {
    .modal-content {
      width: 95%;
      max-width: 350px;
      padding: 15px;
    }
  
    .modal-header h2 {
      font-size: 18px;
    }
  
    .modal-footer button {
      width: 100%;
      padding: 10px;
    }
  }
  
  @media (max-width: 480px) {
    .modal-content {
      width: 100%;
      margin: 0;
      border-radius: 0;
    }
  
    .modal-header h2 {
      font-size: 16px;
    }
  
    .modal-footer button {
      padding: 8px;
      font-size: 14px;
    }
  }
  