
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #e6f2f0;
  color: #333;
  transition: background 0.3s, color 0.3s;
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
html {
   height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

body.dark {
  background: #1e1e1e;
  color: #f1f1f1;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: #00796b;
  color: white;
}

.header h1 {
  font-size: 1.2rem;
  margin: 0;
}

/* New styles */
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}


#themeToggle {
  font-size: 14px;
  padding: 6px 10px;
  background-color: #004d40;
  color: white;
  border: none;
  cursor: pointer;
}
.container {
  margin-top: 5%;
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 10px;
  gap: 20px;
}
.editor-section {
  flex: 1 1 48%;
  display: flex;
  flex-direction: column;
  padding:0;
}
.editor-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.editor-controls button,
.editor-controls select,
.editor-controls input[type="file"] {
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
}
.editor {
  border: 1px solid #ccc;
}
#errorBox {
  margin-top: 10px;
  color: red;
}
@media (max-width: 768px) {
  .editor-section {
    flex: 1 1 100%;
  }
}


.title-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-link {
  background: #004d40;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
}
.nav-link:hover {
  background: #00695c;
}

.editor {
  height: 300px;         /* 👈 You must set a height */
  width: 100%;
  border: 1px solid #ccc;
  font-size: 14px;
}

.site-footer {
  background-color: #004d40;
  color: #fff;
  text-align: center;
  padding: 12px 20px;
  font-size: 14px;
  margin-top: 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 960px;
  margin: 0 auto;
  align-items: center;
}

.footer-link {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.footer-link:hover {
  text-decoration: underline;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo {
  height: 2rem;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
  background: #00695c;
}
.site-title {
  font-size: 1.5rem;
  font-weight: bold;
}

.custom-upload {
  display: inline-block;
  padding: 6px 12px;
  background-color: #004d40;
  color: white;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
}


