*, *::before, *::after {
    box-sizing: border-box;
  }

  body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "San Francisco", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #fff;
    color: #111;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    font-size: 16px;
  }

  main {
    max-width: 440px;
    width: 100%;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 2rem 2.5rem 2.5rem;
    box-shadow: 0 4px 20px rgb(0 0 0 / 0.08);
  }

  h1 {
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #111;
    text-align: center;
  }

  label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
  }

  input[type="text"], input[type="number"] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
  }

  input[type="text"]:focus,
  input[type="number"]:focus {
    border-color: #0071e3;
    outline-offset: 2px;
    outline: 2px solid #a2c4fc;
  }

  button {
    margin-top: 1.5rem;
    width: 100%;
    background-color: #0071e3;
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.75rem 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  button:hover,
  button:focus {
    background-color: #005bb5;
    outline: none;
  }

  .result {
    margin-top: 2rem;
    background: white;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.05);
    color: #111;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.4;
  }

  .error {
    margin-top: 1.0rem;
    padding: 0.75rem 1rem;
    background-color: #ffebeb;
    color: #d32f2f;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
  }

  .toggle-container {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .toggle-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #0071e3;
  }
  
  .toggle-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
  }
  
/* Ensure copy slip button is properly styled and visible */
#copySlipContainer {
  margin-top: 1rem;
}

.copy-slip-btn {
  width: 100%;
  background-color: #34c759 !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: 0 !important; /* Override any margin conflicts */
}

.copy-slip-btn:hover,
.copy-slip-btn:focus {
  background-color: #2fb344 !important;
  outline: none;
}

.copy-slip-btn:disabled {
  background-color: #ccc !important;
  cursor: not-allowed;
}

  