* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  padding: 0 15px;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  border-bottom: 2px solid;
  flex-wrap: wrap;
}

.hero h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.9rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.1s;
}

.btn:active {
  transform: scale(0.95);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.main {
  display: flex;
  min-height: calc(100vh - 80px);
  flex-wrap: wrap;
}

.editor-section {
  width: 50%;
  display: flex;
  flex-direction: column;
  padding: 15px;
  min-height: calc(100vh - 120px);
}

.editor-section h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 600;
}

textarea, #outputContent {
  width: 100%;
  height: calc(100vh - 180px);
  border: 1px solid;
  border-radius: 6px;
  padding: 15px;
  font-size: 1rem;
  resize: none;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

textarea {
  font-family: 'Courier New', monospace;
}

#outputContent {
  overflow-y: auto;
  padding: 20px;
}

/* Responsive Breakpoints */
@media screen and (max-width: 1024px) {
  .editor-section {
    width: 100%;
    min-height: auto;
  }

  .main {
    flex-direction: column;
    min-height: auto;
  }

  textarea, #outputContent {
    height: 50vh;
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .buttons {
    margin-top: 15px;
    justify-content: center;
  }
}

@media screen and (max-width: 768px) {
  .hero {
    padding: 10px 15px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .btn {
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  .btn svg {
    width: 16px;
    height: 16px;
  }

  textarea, #outputContent {
    font-size: 0.9rem;
    padding: 10px;
  }
}

@media screen and (max-width: 480px) {
  .buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .editor-section h2 {
    font-size: 1.2rem;
  }
}

/* Light Theme */
.light-theme {
  background-color: #f4f6f9;
  color: #2c3e50;
  border-color: #e0e4e8;
}

.light-theme .btn {
  background-color: #3498db;
  color: white;
}

.light-theme .btn:hover {
  background-color: #2980b9;
}

/* Dark Theme */
.dark-theme {
  background-color: #1a1a2e;
  color: #e0e0e0;
  border-color: #333645;
}

.dark-theme .btn {
  background-color: #4a4e69;
  color: white;
}

.dark-theme .btn:hover {
  background-color: #5c6bc0;
}

/* Markdown Styling */
.markdown-body {
  line-height: 1.6;
  padding: 2px 15px;
}

.markdown-body h1, .markdown-body h2, .markdown-body h3 {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid;
}

.markdown-body code {
  background-color: rgba(0,0,0,0.1);
  padding: 2px 4px;
  border-radius: 4px;
}

.markdown-body pre {
  background-color: rgba(0,0,0,0.05);
  padding: 15px;
  border-radius: 6px;
  overflow-x: auto;
  word-wrap: break-word;
}