* {
  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 {
  width: 100%;
  margin-bottom: 25px;
  text-align: center;
}

header h1 {
  font-size: 28px;
  margin-bottom: 5px;
}

header p {
  font-size: 16px;
  opacity: 0.9;
}

.editor-container {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.editor-section,
.preview-section {
  flex: 1;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.section-header {
  background-color: #2c3e50;
  color: white;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title {
  font-weight: bold;
  font-size: 1.1em;
}

.section-actions {
  display: flex;
  gap: 10px;
}

.btn {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background-color 0.2s;
}

.btn:hover {
  background-color: #2980b9;
}

.btn-secondary {
  background-color: #95a5a6;
}

.btn-secondary:hover {
  background-color: #7f8c8d;
}

.btn-success {
  background-color: #27ae60;
}

.btn-success:hover {
  background-color: #219955;
}

#editor {
  width: 100%;
  height: 700px;
  border: none;
  padding: 15px;
  font-family: "Consolas", "Monaco", monospace;
  font-size: 14px;
  resize: none;
  box-sizing: border-box;
}

#preview {
  width: 100%;
  height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 15px;
  box-sizing: border-box;
}

#preview svg {
  max-width: 100%;
  max-height: 100%;
}

.controls {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 15px;
}

.control-group {
  display: flex;
  gap: 15px;
  align-items: center;
}

.control-group select {
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid #ddd;
  background-color: white;
  font-size: 0.9em;
}

.control-group .btn{
  padding: 10px 36px;
}

.examples {
  margin-bottom: 20px;
}

.example-btn {
  background-color: #ecf0f1;
  border: 1px solid #bdc3c7;
  padding: 8.75px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  transition: all 0.2s;
}

.example-btn:hover {
  background-color: #d6eaf8;
  border-color: #3498db;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}

.feature-card {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2em;
  margin-bottom: 15px;
}

.feature-title {
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #2c3e50;
}

footer {
  text-align: center;
  color: #7f8c8d;
  font-size: 0.9em;
}

.notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #2c3e50;
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
}

.notice.show {
  opacity: 1;
}

.loading {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2em;
  color: #7f8c8d;
}

.loading.show {
  display: block;
}
