* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #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 {
  text-align: center;
  margin-bottom: 25px;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 5px;
}

header  p{
  font-size: 1rem;
  opacity: 0.9;
  max-width: 95%;
  margin: 0 auto;
}

.content-container {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.left-section,
.right-section {
  flex: 1;
  background: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.left-section:hover,
.right-section:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.section-title {
  color: #1e40af;
  margin-bottom: 15px;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid #dbeafe;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
}

.input-group input {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  background-color: #f9fafb;
}

.input-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
  background-color: #fff;
}

.button-group {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.action-btn {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.calculate-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
}

.calculate-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.copy-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.copy-btn:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

.clear-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.clear-btn:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3);
}

.result-card {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  padding: 25px;
  padding-top: 15px;
  border-radius: 16px;
  border: 1px solid #bae6fd;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #dbeafe;
  font-size: 1.2rem;
}

.result-item:last-child {
  border-bottom: none;
}

.result-item .label {
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-item .value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #10b981;
}

.motivation-line {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  padding: 10px;
  border-radius: 12px;
  margin-top: 20px;
  text-align: center;
  font-size: 1.25rem;
  color: #92400e;
  font-weight: 500;
  line-height: 1.6;
  border: 1px solid #fde68a;
}

.highlight {
  color: #1d4ed8;
  font-weight: 700;
  font-size: 1.3rem;
}

.details-table {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  margin-top: 1.5rem;
}

.table-header,
.table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  padding: 1.2rem;
  text-align: center;
  font-size: 1rem;
}

.table-header {
  background: linear-gradient(135deg, #576fa2, #4b567d);
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
}

.table-row {
  border-bottom: 1px solid #e2e8f0;
  transition: background 0.3s ease;
}

.table-row:nth-child(even) {
  background-color: #f9fafb;
}

.table-row:hover {
  background: #f0f9ff;
}

.empty-state {
  text-align: center;
  color: #64748b;
  font-size: 1.3rem;
  padding: 3rem;
  opacity: 0.8;
}

.empty-state-icon {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  opacity: 0.3;
}

.footer {
  margin-top: 25px;
  padding: 20px;
  text-align: center;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.footer-content {
  margin: 0 auto;
}

.footer h3 {
  color: #1e40af;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footer p {
  color: #4b5563;
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

.features {
  display: flex;
  justify-content: center;
  gap: 35px;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.feature {
  background: #f9fafb;
  border-radius: 12px;
  padding: 1.5rem;
  width: 240px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.feature:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: #3b82f6;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature h4 {
  color: #1e40af;
  margin-bottom: 0.8rem;
}

.feature p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.footer .copyright {
  margin-top: 25px;
  color: #6b7280;
  font-size: 0.9rem;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  margin-bottom: 0;
}

.notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(37, 99, 235, 0.95);
  color: white;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.notice.show {
  opacity: 1;
}
