* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;

}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1600px;
  min-width: 1240px;
  margin: 20px auto;
  color: #333;
}

.container *{
  box-sizing: border-box;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 25px;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 5px;
}

header p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 95%;
  margin: 0 auto;
  line-height: 1.6;
}

.tool-container {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.input-section {
  flex: 1;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 20px;
}

.result-section {
  flex: 1;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.section-title {
  font-size: 1.3rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2c3e50;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #34495e;
}

select,
input[type="text"] {
  width: 100%;
  padding: 14px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

select:focus,
input[type="text"]:focus {
  border-color: #3498db;
  outline: none;
}

textarea {
  width: 100%;
  height: 200px;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 8px;
  resize: vertical;
  font-size: 14px;
  line-height: 1.5;
}

textarea:focus {
  border-color: #3498db;
  outline: none;
}

.btn-group {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

button {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.calculate-btn {
  background: #3498db;
  color: white;
}

.calculate-btn:hover {
  background: #2980b9;
}

.copy-btn {
  background: #2ecc71;
  color: white;
}

.copy-btn:hover {
  background: #27ae60;
}

.clear-btn {
  background: #e74c3c;
  color: white;
}

.clear-btn:hover {
  background: #c0392b;
}

.result-content {
  flex: 1;
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.result-label {
  font-weight: 600;
  color: #34495e;
}

.result-value {
  color: #2c3e50;
  font-weight: 500;
}

.density-result {
  margin-top: 20px;
  padding: 20px;
  border-radius: 8px;
  background: #f8f9fa;
  text-align: center;
}

.density-value {
  font-size: 3rem;
  font-weight: 700;
  margin: 25px 0;
  color: #3498db;
}

.density-suggestion {
  font-size: 1.1rem;
  color: #7f8c8d;
  margin-top: 25px;
}

.density-status {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 20px;
  background: #2ecc71;
  color: white;
  font-weight: 600;
  margin-top: 25px;
}

.notice-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

.notice {
  background: rgba(52, 152, 219, 0.9);
  color: white;
  padding: 15px 30px;
  border-radius: 30px;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  display: none;
}

.info-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 20px;
  margin-bottom: 25px;
}

.info-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #2c3e50;
}

.info-content {
  line-height: 1.8;
  color: #34495e;
  margin: 0 auto;
}

.info-content p {
  margin-top: 15px;
  font-size: 1rem;
}

.highlight {
  background: #f1c40f;
  padding: 2px 5px;
  border-radius: 4px;
  font-weight: 600;
}
