* {
  margin: 0;
  padding: 0;
}

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: 1.1rem;
  opacity: 0.9;
}

.main-content {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.input-section,
.output-section {
  flex: 1;
  max-width: calc(50% - 110px);
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.container h2 {
  font-size: 1.4rem;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: center;
  align-items: center;
  width: 180px;
  padding: 20px 0;
}

.btn {
  width: 180px;
  padding: 14px 20px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
}

.btn-convert {
  background: #3498db;
}

.btn-convert:hover {
  background: #2980b9;
}

.btn-copy {
  background: #2ecc71;
}

.btn-copy:hover {
  background: #27ae60;
}

.btn-example {
  background: #f39c12;
}

.btn-example:hover {
  background: #d35400;
}

.btn-clear {
  background: #e74c3c;
}

.btn-clear:hover {
  background: #c0392b;
}

textarea{
  border: 0;
}

.CodeMirror {
  height: 520px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.5;
}

.CodeMirror-focused {
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.output-section .CodeMirror {
  background-color: #f9f9f9;
}

footer {
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 20px;
  margin-top: 25px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.footer-section h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-section ul {
  list-style-type: none;
  padding-left: 5px;
  margin-top: 10px;
}

.footer-section li {
  margin-bottom: 12px;
  padding-left: 25px;
  position: relative;
  line-height: 1.5;
}

.footer-section li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #3498db;
  font-weight: bold;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.comparison-table th,
.comparison-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.comparison-table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.comparison-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 25px;
  background: #27ae60;
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

.notification.show {
  opacity: 1;
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 8px;
}

.badge-toml {
  background: #3498db;
  color: white;
}

.badge-json {
  background: #f39c12;
  color: white;
}

.badge-info {
  background: #2ecc71;
  color: white;
}
