/* =====================================
   DozeGear – Markdown to HTML Converter
   Final Polished CSS
===================================== */

.md2html-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  font-family: Arial, sans-serif;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.md2html-container h2 {
  color: #1F2937;
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 700;
}

.md2html-container label {
  display: block;
  margin-top: 18px;
  margin-bottom: 6px;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
}

#md-input {
  width: 100%;
  height: 190px;
  padding: 14px;
  font-family: monospace;
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
}

#md-input:focus {
  outline: none;
  border-color: #6366F1;
}

.md2html-buttons {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.md2html-buttons button,
#copy-btn {
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

#convert-btn {
  background: #6366F1;
  color: #ffffff;
}

#convert-btn:hover {
  background: #4F46E5;
}

#clear-btn {
  background: #F3F4F6;
  color: #1F2937;
}

#clear-btn:hover {
  background: #E5E7EB;
}

.output-box {
  margin-top: 14px;
  padding: 16px;
  background: #F9FAFB;
  border: 1px solid #D1D5DB;
  min-height: 180px;
  border-radius: 8px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.6;
}

.placeholder {
  color: #6B7280;
}

#copy-btn {
  margin-top: 12px;
  background: #16A34A;
  color: #ffffff;
}

#copy-btn:hover {
  background: #15803D;
}

#notice {
  margin-top: 10px;
  color: #16A34A;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .md2html-container {
    padding: 18px;
  }

  .md2html-buttons {
    flex-direction: column;
  }

  .md2html-buttons button,
  #copy-btn {
    width: 100%;
  }
}