:root{
  --bg:#0f1724;
  --card:#0b1220;
  --accent:#ff8a00;
  --muted:#9aa8b2;
  --glass: rgba(255,255,255,0.04);
}

*{box-sizing:border-box}
html,body,#root{height:100%;margin:0;padding:0}
body{
  font-family: Inter, Roboto, "Segoe UI", Arial, sans-serif;
  background: linear-gradient(180deg,#ffecd2 0%, #fcb69f 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

/* Layout */
.app {
  width:100%;
  max-width:1100px;
  display:grid;
  grid-template-columns: 1fr;
  gap:20px;
}

.header {
  text-align:center;
  margin-bottom:4px;
}
.header h1{
  margin:0;
  font-size:1.4rem;
  color:#3b2f00;
  letter-spacing:0.2px;
}
.header p{margin:6px 0 0;color:var(--muted)}

.editor-preview {
  display:grid;
  grid-template-columns: 1fr;
  gap:18px;
}

/* Desktop layout */
@media(min-width:900px){
  .editor-preview{grid-template-columns: 1fr 1fr}
}

/* Card common */
.card{
  background: rgba(255,255,255,0.9);
  border-radius:12px;
  padding:14px;
  box-shadow: 0 10px 30px rgba(10,10,10,0.12);
  min-height:220px;
  display:flex;
  flex-direction:column;
}

/* Editor */
#editor {
  width:100%;
  height:420px;
  resize:vertical;
  padding:12px;
  border-radius:8px;
  border:1px solid rgba(0,0,0,0.06);
  font-family: 'Source Code Pro', monospace;
  font-size:14px;
  line-height:1.45;
  color:#122;
  background: linear-gradient(180deg, #fff 0%, #fffefe 100%);
}

/* Preview */
#preview {
  width:100%;
  min-height:420px;
  overflow:auto;
  padding:6px 4px;
}

/* Preview content styling */
#preview h1{font-size:1.6rem;color:#3b2f00;margin:10px 0}
#preview h2{font-size:1.25rem;color:#4b3b00;margin:8px 0}
#preview p{color:#222;line-height:1.6}
#preview code{background:#f3f4f6;padding:2px 6px;border-radius:6px;font-family: 'Source Code Pro', monospace}
#preview pre{background:#0b1220;color:#e6eef8;padding:12px;border-radius:8px;overflow:auto}
#preview blockquote{border-left:4px solid #ffb347;padding-left:12px;color:#5b3d00;background:linear-gradient(90deg, rgba(255,255,255,0.02), transparent);margin:10px 0;border-radius:6px}
#preview img{max-width:100%;border-radius:8px;margin-top:8px}
#preview ul{padding-left:20px;margin:8px 0}
#preview strong{color:#2e1a00}

/* Footer */
.footer{
  margin-top:10px;
  text-align:center;
  color:var(--muted);
  font-size:13px;
}
