/* styles.css */
body {
  font-family: Arial, sans-serif;
  padding: 20px;
  max-width: 480px;
  margin: auto;
  background-color: #f9f9f9;
  color: #333;
  box-sizing: border-box;
}

h2 {
  text-align: center;
  margin-bottom: 1.2em;
}

label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 600;
  cursor: pointer;
}

input[type="number"],
input[type="radio"] {
  /* Make number input width responsive */
  font-size: 1em;
}

input[type="number"] {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: border-color 0.3s ease;
}

input[type="number"]:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 5px #007bff;
}

.radio-group {
  margin: 12px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.radio-group label {
  display: flex;
  align-items: center;
  font-weight: 500;
}

.radio-group input[type="radio"] {
  margin-right: 6px;
  cursor: pointer;
}

.result-block {
  margin-top: 24px;
  font-size: 1.1em;
  background: #fff;
  padding: 16px;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
  min-height: 90px;
  word-wrap: break-word;
}

button {
  margin-top: 18px;
  padding: 10px 24px;
  font-size: 1em;
  border: none;
  border-radius: 4px;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover, button:focus {
  background-color: #0056b3;
  outline: none;
}

@media (max-width: 400px) {
  .radio-group {
    flex-direction: column;
    gap: 8px;
  }
  
  button {
    width: 100%;
  }
}
.tab {
      overflow: hidden;
      border-bottom: 1px solid #ccc;
      background-color: #0056b3;
    }

    .tab button {
      background-color: inherit;
      float: left;
      border: none;
      outline: none;
      cursor: pointer;
      padding: 14px 16px;
      transition: 0.3s;
    }

    .tab button:hover {
      background-color: #007bff;
    }

    .tab button.active {
      background-color: #007bff;
    }

    .tabcontent {
      display: none;
      padding: 20px;
      border-top: none;
      background-color: #89b8ea;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
      border-radius: 5px;
      margin-top: 20px;
    }

    table {
      width: 100%;
      margin: 20px 0;
      border-collapse: collapse;
    }

    table,
    th,
    td {
      border: 1px solid black;
    }

    th,
    td {
      padding: 10px;
      text-align: left;
    }

    th {
      background-color: #d1e7dd;
    }

    tr:nth-child(even) {
      background-color: #f8f9fa;
    }

    tr:nth-child(odd) {
      background-color: #e9ecef;
    }

    tr.highlight {
      background-color: yellow;
    }

    #inputTable td {
      text-align: right;
    }

    #container {
      width: 90%;
      margin: 20px auto;
      background-color: #fff;
      padding: 20px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
      border-radius: 5px;
    }

    .resin-calculator-grid {
      display: flex;
      justify-content: center;
      padding: 40px 20px;
      font-family: 'League Spartan', sans-serif;
    }

    .resin-box {
      width: 100%;
      max-width: 540px;
      padding: 32px;
      border-radius: 20px;
      background: #fff7f3;
      border: 1px solid #f0d8d3;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .resin-box h3 {
      font-size: 20px;
      color: #2137f6;
      margin-bottom: 24px;
      font-weight: 700;
      text-align: center;
    }

    .resin-box label {
      font-weight: 70;
      font-size: 15px;
      display: block;
      margin-top: 2px;
    }

    .resin-box input {
      width: 100%;
      padding: 5px;
      margin-top: 2px;
      border-radius: 10px;
      border: 1px solid #ccc;
      font-size: 12px;
    }

    .resin-box button {
      margin-top: 24px;
      width: 100%;
      padding: 5px;
      background-color: #2137f6;
      color: #fff;
      font-weight: 700;
      border: none;
      border-radius: 12px;
      font-size: 12px;
      cursor: pointer;
      transition: background-color 0.3s ease, transform 0.3s ease;
    }

    .resin-box button:hover {
      background-color: #07116a;
      transform: scale(1.02);
    }

    .resin-result {
      margin-top: 15px;
      font-size: 17px;
      line-height: 1;
      color: #222;
      text-align: center;
    }

    .final-banner {
      margin-top: 30px;
      border: 2px dashed #2137f6;
      background-color: #fff;
      color: #222;
      font-weight: 500;
      padding: 10px;
      font-size: 16px;
      line-height: 1;
      border-radius: 14px;
      display: none;
    }

    .guidance-box {
      max-width: 1080px;
      margin: 40px auto;
      padding: 30px;
      background: #fff;
      border-left: 8px solid #2137f6;
      border-radius: 18px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.06);
      font-family: 'League Spartan', sans-serif;
    }

    .guidance-box h4 {
      font-size: 22px;
      color: #2137f6;
      margin-bottom: 18px;
    }

    .guidance-box li {
      font-size: 16px;
      line-height: 1.2;
      font-weight: 600;
      margin-bottom: 8px;
      color: #222;
    }