body{
margin:0;
font-family:Segoe UI,Arial;
background:#0f172a;
color:white;
}

/* HEADER */

header{
display:flex;
justify-content:space-between;
align-items:center;
background:#111827;
padding:15px 30px;
border-bottom:1px solid #1f2937;
}

header h1{
font-size:20px;
}

/* LAYOUT */

.container{
display:grid;
grid-template-columns:220px 1fr 1fr;
height:90vh;
}

/* SIDEBAR */

.sidebar{
background:#111827;
padding:20px;
border-right:1px solid #1f2937;
}

.sidebar ul{
list-style:none;
padding:0;
}

.sidebar li{
padding:8px;
border-radius:6px;
cursor:pointer;
}

.sidebar li:hover{
background:#1f2937;
}

/* EDITOR */

.editor{
display:flex;
flex-direction:column;
}

textarea{
flex:1;
background:#020617;
color:#e2e8f0;
border:none;
padding:20px;
font-family:monospace;
font-size:14px;
}

/* BUTTONS */

button{
background:#2563eb;
border:none;
color:white;
padding:8px 14px;
border-radius:6px;
cursor:pointer;
}

button:hover{
background:#1d4ed8;
}

.controls{
padding:10px;
background:#020617;
border-top:1px solid #1f2937;
}

/* PREVIEW */

.preview{
background:white;
}

iframe{
width:100%;
height:100%;
border:none;
}

/* LOGIN */

.login-body{
display:flex;
justify-content:center;
align-items:center;
height:100vh;
}

.login-box{
background:#111827;
padding:40px;
border-radius:10px;
width:300px;
text-align:center;
}

.login-box input{
width:100%;
padding:10px;
margin:10px 0;
border:none;
border-radius:6px;
}

.login-box button{
width:100%;
}