* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  max-width: 1560px;
  min-width: 1240px;
  width: 100%;
  margin: 25px auto;
  color: #333;
  line-height: 1.6;
}

.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;
  gap: 15px;
}

header h1 span{
  font-size: 28px;
  color: #7f8c8d;
}

header p{
  font-size: 1rem;
  opacity: 0.9;
  max-width: 95%;
  margin: 0 auto;
}


.calculator {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 20px;
  margin-bottom: 25px;
}

.input-section {
  display: flex;
  gap: 30px;
}

.input-col {
  flex: 1;
}

.output-col {
  flex: 1;
}

.section-title {
  font-size: 20px;
  color: #2c3e50;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

textarea {
  width: 100%;
  height: 400px;
  padding: 15px;
  border: 2px solid #e0e6ed;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.3s;
  margin-bottom: 20px;
}

textarea:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.buttons {
  display: flex;
  gap: 20px;
}

.btn {
  padding: 12px 36px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: #3498db;
  color: white;
}

.btn-primary:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
  background: #2ecc71;
  color: white;
}

.btn-secondary:hover {
  background: #27ae60;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid #bdc3c7;
  color: #7f8c8d;
}

.btn-outline:hover {
  background: #f8f9fa;
  border-color: #95a5a6;
}

.btn-warning {
  background: #e74c3c;
  color: white;
}

.btn-warning:hover {
  background: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.result-card {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.result-value {
  font-size: 40px;
  font-weight: 700;
  color: #2c3e50;
  text-align: center;
  margin: auto 0;
}

.result-label {
  text-align: center;
  color: #7f8c8d;
  margin-top: 10px;
}

.input-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  overflow: hidden;
}

.input-table th {
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
  color: #2c3e50;
  border-bottom: 2px solid #e0e6ed;
}

.input-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #e0e6ed;
}

.input-table tr:last-child td {
  border-bottom: none;
}

.input-table-container{
  max-height: 300px;
  overflow: auto;
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin-top: 15px;
}

.positive {
  color: #2ecc71;
  font-weight: 500;
}

.negative {
  color: #e74c3c;
  font-weight: 500;
}

.info-sections {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.info-box {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.info-box h3 {
  font-size: 22px;
  color: #2c3e50;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-box p {
  margin-top: 10px;
}

.info-box ul {
  padding-left: 25px;
}

.info-box li {
  margin-top: 10px;
  opacity: 0.85;
}

.notice {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 30px;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  border-radius: 8px;
  font-size: 16px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  max-width: 80%;
  text-align: center;
}

.notice.show {
  opacity: 1;
}

footer {
  text-align: center;
  color: #7f8c8d;
  font-size: 14px;
}

.footer-content {
  max-width: 95%;
  margin: 0 auto;
}

.highlight {
  background: linear-gradient(120deg, #3498db, #2ecc71);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}
