/* General body styling */
* {
    box-sizing: border-box; /* Penting untuk kontrol lebar */
  }
  
  body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f0f4f8;
    color: #333;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Hindari scroll horizontal */
  }
  
  /* Main container styling */
  .container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    padding: 30px;
    max-width: 500px;
    width: 100%;
    margin: 20px;
    box-sizing: border-box;
  }
  
  /* Tabs */
  .tab-container {
    display: flex;
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
    width: 100%; /* Agar tab tidak melebar */
  }
  
  .tab {
    flex: 1;
    padding: 12px 0;
    cursor: pointer;
    background-color: #e0e0e0;
    text-align: center;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
  }
  
  .tab.active {
    background-color: #046937;
    color: #ffffff;
  }
  
  .tab:not(.active):hover {
    background-color: #c5c5c5;
  }
  
  .tab-content {
    display: none;
  }
  
  .tab-content.active {
    display: block;
  }
  
  /* Headings */
  h1 {
    color: #046937;
    font-size: 28px;
    margin-bottom: 25px;
    text-align: center;
  }
  
  /* Form group */
  .form-group {
    margin-bottom: 20px;
    text-align: left;
    width: 100%; /* Agar sesuai dengan lebar container */
  }
  
  label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
  }
  
  input,
  select,
  textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.3s;
    box-sizing: border-box; /* Penting */
  }
  
  input:focus,
  select:focus,
  textarea:focus {
    border-color: #046937;
    outline: none;
  }
  
  input[readonly] {
    background-color: #f1f1f1;
    color: #999;
    cursor: not-allowed;
  }
  
  /* Buttons */
  button,
  .reset-button,
  .sedekah-button,
  .zakat-button {
    display: inline-block;
    background-color: #046937;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 10px;
    text-align: center;
    text-decoration: none;
  }
  
  button:hover,
  .sedekah-button:hover,
  .zakat-button:hover {
    background-color: #03512a;
  }
  
  /* Reset button */
  .reset-button {
    background-color: transparent;
    color: #F6C215;
    border: 2px solid #F6C215;
  }
  
  .reset-button:hover {
    background-color: #F6C215;
    color: #fff;
  }
  
  /* Extra buttons */
  #buttons-below-nisab,
  #buttons-above-nisab {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
  }
  
  .reset-button,
  .action-button {
    width: auto;
    padding: 10px 16px;
  }
  
  /* Result box */
  #result {
    margin-top: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #046937;
    background-color: #f1fdf6;
    border: 1px solid #c3e6cb;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    line-height: 1.6;
  }

  a.btn-home {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #ffda0b, #f4a402);
    color: white;
    text-align: center;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease;
    margin-top: 20px;
}