* {
  margin: 0;
  padding: 0;
}

body {
  background: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 25px auto;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

header {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

header h1 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
}

header p {
  font-size: 16px;
  opacity: 0.85;
}

.content-wrapper {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
}

.calculator-section, .info-section {
  flex: 1;
}

.section-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #c2d5ff;
  color: #182848;
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-group {
  margin-bottom: 25px;
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #444;
  font-size: 1.1rem;
}

.radio-group {
  display: flex;
  gap: 25px;
  margin-top: 5px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #4b6cb7;
}

input[type="number"] {
  width: 100%;
  padding: 14px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1.1rem;
  transition: border-color 0.3s;
}

input[type="number"]:focus {
  border-color: #4b6cb7;
  outline: none;
  box-shadow: 0 0 0 2px rgba(75, 108, 183, 0.2);
}

.unit {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #777;
}

.input-container {
  position: relative;
}

.button-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  flex: 1;
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-calculate {
  background: linear-gradient(to right, #4b6cb7, #3a56a0);
  color: white;
}

.btn-calculate:hover {
  background: linear-gradient(to right, #3a56a0, #2d4379);
  transform: translateY(-2px);
}

.btn-example {
  background: #e9f0ff;
  color: #4b6cb7;
  border: 2px solid #4b6cb7;
}

.btn-example:hover {
  background: #d6e2ff;
}

.btn-copy,
.btn-clear {
  background: #f8f9fa;
  color: #555;
  border: 2px solid #ddd;
}

.btn-copy:hover,
.btn-clear:hover {
  background: #f1f3f5;
  border-color: #ccc;
}

.result-container {
  background: white;
  border-radius: 12px;
  padding: 0 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  border-left: 5px solid #4b6cb7;
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.result-item:last-child {
  border-bottom: none;
}

.result-label {
  font-weight: 600;
  font-size: 1.2rem;
  color: #444;
}

.result-value {
  font-weight: 700;
  font-size: 1.4rem;
}

.risk-low {
  color: #2ecc71;
}

.risk-medium {
  color: #f39c12;
}

.risk-high {
  color: #e74c3c;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.card h3{
  margin: 15px 0;
  color: #4b6cb7;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  background-color: #f5f7fa;
  font-weight: 600;
  color: #4b6cb7;
}

tr:nth-child(even) {
  background-color: #f9fafb;
}

.step-list {
  padding-left: 25px;
}

.step-list li {
  margin-top: 12.5px;
  line-height: 1.6;
}

.formula {
  background: #f5f7ff;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
  font-family: monospace;
  font-size: 1.1rem;
  border-left: 4px solid #4b6cb7;
}

.example-box {
  background: #f9fafb;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
  border: 1px dashed #4b6cb7;
}

.example-box p{
  margin-top: 10px;
}

.example-box h3{
  font-size: 1.2rem;
  margin: 0;
  margin-bottom: 15px;
  color: #4b6cb7;
}
.notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 16px 35px;
  border-radius: 50px;
  font-size: 1.1rem;
  z-index: 1000;
  opacity: 0;
  transition: all 0.5s;
}

.notice.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.highlight {
  color: #4b6cb7;
  font-weight: 600;
}

.emoji {
  font-size: 1.4rem;
}

footer {
  text-align: center;
  color: #777;
}
