* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  max-width: 1640px;
  min-width: 1240px;
  width: 100%;
  margin: 25px auto;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

header {
  margin-bottom: 25px;
  text-align: center;
}

header h1 {
  font-size: 2.1rem;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

header p {
  font-size: 1rem;
  opacity: 0.9;
}

.warp-box{
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
}
.input-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 10px;
}

.input-group {
  margin-bottom: 15px;
}

.container label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: bold;
  color: #555;
}

.container input,
.container select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}

.container input:focus,
.container select:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 25px;
}

button {
  padding: 14px 64px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.calculate-btn {
  background-color: #3498db;
  color: white;
}

.example-btn {
  background-color: #2ecc71;
  color: white;
}

.clear-btn {
  background-color: #e74c3c;
  color: white;
}

button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.result-section {
  margin-bottom: 25px;
}

.result-section h2{
  font-size: 20px;
  margin-bottom: 10px;
}
.result-row {
  display: flex;
  gap: 20px;
}

.result-box {
  flex: 1;
  border-radius: 12px;
  padding: 15px;
  background-color: #fff;
}

.result-title {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 15px;
  color: #2c3e50;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #eee;
}

.result-label {
  font-size: 15px;
  color: #555;
}

.result-value {
  font-weight: bold;
  color: #3498db;
}

#savedInterest,table td span{
  color: #2ecc71;
}

.detail-section {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.detail-box {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 15px;
  background-color: #f9f9f9;
}

.detail-title {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 15px;
  color: #2c3e50;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-title button{
  padding: 10px 24px;
  font-size: 16px;
  border: 1px solid #ddd;
}

.detail-content {
  display: none;
  margin-top: 15px;
  max-height: 400px;
  overflow: auto;
}

.detail-content.show {
  display: block;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th,
td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

tbody th,
tbody td{
  font-size: 13px;
}

th {
  background-color: #f2f2f2;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

.footer {
  text-align: center;
  color: #777;
  font-size: 15px;
}

.features {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.feature {
  flex: 1;
  padding: 15px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.feature-title {
  font-size: 18px;
  font-weight: bold;
  color: #3498db;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature p{
  margin-top: 15px;
  color: #666;
  font-size: 15px;
}

.notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px 30px;
  border-radius: 4px;
  z-index: 1000;
  display: none;
  max-width: 600px;
  text-align: center;
}

.capital {
  color: #8a8a8a;
  font-weight: normal;
  font-size: 14px;
}
