:root{
  --bg:#f5f8fb;
  --card:#ffffff;
  --accent:#2c88a7;
  --muted:#9aa6af;
  --radius:12px;
  --shadow: 0 8px 30px rgba(30,40,50,0.08);
}

/* reset */
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;width:100%;font-family:Inter,system-ui,Segoe UI,Roboto,Arial;background:var(--bg);color:#222}

/* main wrapper */
.editor{display:flex;align-items:center;justify-content:center;padding:18px;height:100vh}
.editor-wrapper{
  width:100%;
  max-width:1300px;
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
  border:1px solid rgba(30,40,50,0.06);
}

/* header */
.editor-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 18px;
  border-bottom:1px solid rgba(30,40,50,0.04);
  background: linear-gradient(90deg, rgba(255,255,255,0.6), rgba(255,255,255,0.4));
}
.project-title{font-weight:600;color:var(--accent)}
.file-name{font-weight:600;color:#333;margin-left:8px}
.header-actions .small-btn{
  background:transparent;border:1px dashed #d0d7dc;padding:6px 10px;border-radius:6px;cursor:pointer;font-size:13px;color:#333
}

/* main layout */
.editor-main{
  display:flex;
  gap:12px;
  padding:16px;
  align-items:stretch;
}

/* editor body */
.editor-body{flex:1;min-width:300px;border-radius:8px;overflow:hidden;border:1px solid rgba(30,40,50,0.05)}
.editor-code{height:480px} /* ace will fill this */

/* controls in middle */
.editor-controls{
  width:110px;
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg,#fbfeff,#f7fbfc);
  padding:12px;border-radius:8px;border:1px solid rgba(30,40,50,0.03)
}
.editor-btn{
  width:100%;
  padding:10px 12px;
  border-radius:8px;
  border:0;
  cursor:pointer;
  color:#fff;
  background:var(--accent);
  font-weight:600;
  box-shadow:0 6px 16px rgba(44,136,167,0.12);
  transition:transform .12s ease, box-shadow .12s;
}
.editor-btn:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(44,136,167,0.16)}
.editor-btn.editor-reset{background:#677381}
.editor-btn.editor-compile-only{background:#f39c12}

/* output */
.editor-output{flex:0 0 420px;min-width:280px;display:flex;flex-direction:column}
.output-header{padding:8px 12px;border-bottom:1px solid rgba(30,40,50,0.04);font-weight:600;color:#333}
.editor-console{background:#0b1220;color:#d8f8d8;padding:12px;height:480px;overflow:auto;border-radius:8px;border:1px solid rgba(30,40,50,0.04)}
.editor-console-logs{list-style:none;font-family:monospace;font-size:13px}

/* log styles */
.editor-console-logs li{padding:6px 0;border-bottom:1px dashed rgba(255,255,255,0.02)}
.log-info{color:#bfefff}
.log-warn{color:#ffd27f}
.log-error{color:#ff9b9b}

 
/* responsive */
@media (max-width:1050px){
  .editor-output{flex-basis:360px}
  .editor-code{height:420px}
}
@media (max-width:860px){
  .editor-main{flex-direction:column;padding:12px}
  .editor-controls{width:100%;flex-direction:row;padding:10px;border-radius:8px}
  .editor-output{width:100%}
  .editor-code{height:360px}
}


/* Minimal additions — preserves your existing classes */
.editor-main{display:flex;gap:12px;padding:16px;align-items:stretch}
.editor-body{flex:1;min-width:300px;border:1px solid rgba(0,0,0,0.06);border-radius:8px;overflow:hidden}
.editor-code{height:420px}
.editor-controls{width:110px;display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center}
.editor-btn{width:100%;padding:10px;border-radius:8px;border:0;cursor:pointer;background:#2c88a7;color:#fff}
.editor-output{flex:0 0 420px;min-width:260px;display:flex;flex-direction:column}
.editor-console{background:#0b1220;color:#d8f8d8;padding:12px;height:420px;overflow:auto;border-radius:8px}
.editor-console-logs{list-style:none;font-family:monospace;font-size:13px}
.editor-console-logs li{padding:6px 0;border-bottom:1px dashed rgba(255,255,255,0.02)}
.log-stdout{color:#bfefff}
.log-stderr{color:#ff9b9b}
@media (max-width:860px){
  .editor-main{flex-direction:column}
  .editor-code{height:320px}
  .editor-console{height:240px}
  .editor-controls{flex-direction:row;width:100%}
}
