/* Styl ciemny + wysoki kontrast; lewy panel z listą zadań */
:root{
  --bg: #0f1115;
  --panel: #151a21;
  --text: #eafdf6;
  --muted: #9eb1ab;
  --accent: #19ffb8;
  --accent2: #10b981;
  --btn: #0e2a32;
  --danger: #ff5b5b;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  background: radial-gradient(900px 300px at 50% -10%, #103, transparent), var(--bg);
}
.layout{display:grid; grid-template-columns: 300px 1fr; min-height:100vh;}
.sidebar{
  border-right: 1px solid #1f2d2a;
  background: linear-gradient(#1119, #1119), radial-gradient(500px 150px at 50% -10%, #0b523f, transparent);
  padding:16px 14px;
}
.sidebar h2{
  margin:4px 0 10px;
  color:var(--accent);
  text-shadow:0 0 8px #19ffb888;
}
#taskList{list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px}
#taskList li{
  display:flex; align-items:center; gap:8px;
  padding:10px 12px;
  border:1px solid #25322e;
  border-radius:12px;
  background:#0a0e13;
  cursor:pointer;
  transition:.12s;
}
#taskList li:hover{transform:translateX(2px)}
#taskList li .badge{margin-left:auto; font-size:12px; opacity:.8; background:#07333a; padding:2px 6px; border-radius:999px; border:1px solid #274b47}
#taskList li.active{outline:2px solid var(--accent2); box-shadow:0 0 12px #19ffb855;}
.tip{color:#b9c7c2; font-size:12px; margin-top:12px; opacity:.8}
.content{padding:16px 18px;}
.task-header h1{margin:0 0 6px; text-shadow:0 0 10px #19ffb850}
.task-header p{margin:0 0 8px; color:var(--muted)}
.io{display:flex; gap:10px; flex-wrap:wrap; margin: 10px 0 6px;}
.io label{display:flex; align-items:center; gap:6px}
.io input{background:#0a0d12;color:#dff; border:1px solid #2a3733; border-radius:8px; padding:8px 10px; min-width:170px}
.editor{margin-top:8px}
.editor-toolbar{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:8px}
button{
  background:var(--btn);
  border:1px solid #2a3733;
  color:var(--text);
  padding:8px 12px;
  border-radius:10px;
  cursor:pointer;
}
button:hover{transform:translateY(-1px)}
#code{
  width:100%;
  min-height:280px;
  background:#07090e;
  color:#e6fff9;
  border:1px solid #2a3733;
  border-radius:10px;
  padding:12px;
  font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  resize: vertical;
}
.preview{margin-top:12px}
#console{
  background:#020409;
  padding:10px;
  border:1px dashed #25322e;
  border-radius:10px;
  min-height:90px;
  overflow:auto;
}
.html-preview{margin-top:8px; padding:10px; background:#0b1017; border:1px dashed #28363b; border-radius:10px; min-height:44px}
.success{box-shadow:0 0 0 2px #1d6 inset}
.fail{box-shadow:0 0 0 2px var(--danger) inset}
@media (max-width: 980px){
  .layout{grid-template-columns: 1fr}
  .sidebar{position:sticky; top:0; z-index:1}
}

footer{
  text-align:center;
  color:#888;
  padding:20px 0;
  border-top:1px solid #1f2d2a;
  margin-top:30px;
  font-size:14px;
}
