* {
  margin: 0;
  padding: 0;

}

body {
  background-color: #f1f2f3;
}

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

.container *{
  box-sizing: border-box;
}

header {
  margin-bottom: 20px;
  text-align: center;
}

header h1 {
  font-size: 2.1rem;
  margin-bottom: 5px;
}

header p{
  font-size: 1rem;
  opacity: 0.9;
  margin: 0 auto;
}


.main-content {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.input-section,
.output-section {
  flex: 1;
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.section-title {
  font-size: 18px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2c3e50;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1f2f3;
}

.section-title span {
  font-size: 24px;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #34495e;
}

input[type="text"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

input[type="text"]:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

textarea {
  width: 100%;
  height: 350px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  resize: none;
  line-height: 1.5;
  transition: border-color 0.3s;
}

textarea:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.json-input {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.button-group {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.btn {
  padding: 12px 36px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background-color: #3498db;
  color: white;
}

.btn-primary:hover {
  background-color: #2980b9;
}

.btn-secondary {
  background-color: #2ecc71;
  color: white;
}

.btn-secondary:hover {
  background-color: #27ae60;
}

.btn-warning {
  background-color: #e74c3c;
  color: white;
}

.btn-warning:hover {
  background-color: #c0392b;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid #3498db;
  color: #3498db;
}

.btn-outline:hover {
  background-color: #3498db;
  color: white;
}

.java-output {
  flex-grow: 1;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  overflow: auto;
  font-size: 15px;
  line-height: 1.5;
  position: relative;
  height: 630px;
}

.java-output pre {
  white-space: pre-wrap;
}

.output-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.features {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
}

.features-title {
  font-size: 20px;
  text-align: center;
  margin-bottom: 25px;
  color: #2c3e50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s;
  border: 1px solid #eee;
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 15px;
}

.feature-title {
  font-size: 18px;
  margin-bottom: 10px;
  color: #2c3e50;
}

.feature-desc {
  color: #7f8c8d;
  line-height: 1.6;
}

.notice-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

.notice {
  background-color: rgba(44, 62, 80, 0.95);
  color: white;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
}

.notice.show {
  opacity: 1;
  transform: translateY(0);
}

footer {
  text-align: center;
  font-size: 0.95rem;
  color: #7f8c8d;
}

.keyword {
  color: #3498db;
}

.class-name {
  color: #e74c3c;
}

.comment {
  color: #7f8c8d;
}

.string {
  color: #2ecc71;
}
