* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

header {
  width: 100%;
  text-align: center;
  margin: 30px auto;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 5px;
  color: #2c3e50;
}

header p {
  font-size: 1rem;
  color: #7f8c8d;
  line-height: 1.6;
}

.container {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: auto;
  gap: 20px;
  flex: 1;
}

.container *{
  box-sizing: border-box;
}

.input-section {
  flex: 1;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.results-section {
  flex: 1.5;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #34495e;
  font-size: 1.1rem;
}

textarea {
  width: 100%;
  height: 380px;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1.1rem;
  resize: vertical;
  transition: border-color 0.3s;
}

textarea:focus {
  border-color: #3498db;
  outline: none;
}

.example {
  font-size: 0.95rem;
  color: #7f8c8d;
  margin-top: 8px;
  font-style: italic;
}

.buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.btn {
  flex: 1;
  padding: 14px;
  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: #3498db;
  color: white;
}

.btn-clear {
  background: #e74c3c;
  color: white;
  flex: 1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn:active {
  transform: translateY(1px);
}

.btn-calculate:hover {
  background: #2980b9;
}

.btn-clear:hover {
  background: #c0392b;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.result-card {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.result-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.result-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #7f8c8d;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
  min-height: 50px;
  display: flex;
  align-items: center;
}

.result-description {
  font-size: 0.95rem;
  color: #7f8c8d;
  margin-top: 10px;
  line-height: 1.5;
}

.divider {
  height: 1px;
  background: #e0e0e0;
  margin: 30px 0;
}

footer {
  text-align: center;
  padding: 30px 20px;
  color: #7f8c8d;
  font-size: 1rem;
}

.error {
  color: #e74c3c;
  margin-top: 10px;
  font-weight: 500;
}

.highlight {
  background: #fff9db;
  border-left: 4px solid #ffd43b;
  padding: 15px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}

.highlight p{
  margin-top: 6px;
  color: #666;
}
