/* style.css - simple responsive layout */
*{box-sizing:border-box}
body{font-family:Arial,Helvetica,sans-serif;margin:0;background:#f5f7fb;color:#222}
header{padding:18px;text-align:center;background:#2b6cb0;color:white}
header h1{margin:0;font-size:20px}
main{display:flex;gap:16px;padding:18px}
.left,.center,.right{background:white;padding:12px;border-radius:8px;box-shadow:0 2px 6px rgba(0,0,0,0.08)}
.left{width:260px}
.center{flex:1;min-width:420px}
.right{width:240px}

.board{position:relative;padding:12px;border:1px solid #e3e8ef;border-radius:8px;background:linear-gradient(#fff,#f6fbff)}
.arduino-label{font-weight:600;margin-bottom:10px;text-align:center}
.component{display:flex;align-items:center;flex-direction:column;margin:8px}
.led-wrap{margin-bottom:12px}
.led{width:28px;height:28px;border-radius:50%;background:#333;box-shadow:inset 0 -2px 4px rgba(0,0,0,0.4)}
.led.on{background: #ff3b3b; box-shadow: 0 0 12px rgba(255,59,59,0.9)}
.comp-label{margin-top:6px;font-size:12px;color:#555}
.button-wrap .sim-button{padding:8px 12px;border-radius:6px;border:1px solid #ccc;background:#fff;cursor:pointer}
.pin-list{font-size:12px;color:#666;margin-top:8px}

.controls{margin-top:12px;display:flex;gap:8px;flex-wrap:wrap}
.controls button{padding:8px 12px;border-radius:6px;border:none;background:#2b6cb0;color:white;cursor:pointer}
.controls button#stopBtn{background:#c53030}
.controls button#resetBtn{background:#718096}

textarea#code{width:100%;height:260px;font-family:monospace;padding:10px;border-radius:6px;border:1px solid #dfe7f2;resize:vertical}
.io{display:flex;gap:12px;margin-top:12px}
.serial{flex:1}
.serial-header{font-weight:600}
.serial-output{height:140px;background:#0f1724;color:#dbeafe;padding:8px;border-radius:6px;overflow:auto;font-family:monospace}
.serial-output .line{margin:0 0 6px}
#serialInput{width:calc(100% - 80px);padding:6px;margin-top:8px}
#serialSend{padding:6px 8px;margin-left:6px}

.projects{width:220px}
.project-list{margin-top:8px;border:1px solid #edf2f7;padding:8px;border-radius:6px;height:160px;overflow:auto}
.project-item{padding:6px;border-bottom:1px dashed #eef2f7;display:flex;justify-content:space-between;align-items:center}
.project-item button{padding:4px 6px;border-radius:4px;border:none;background:#2b6cb0;color:white;cursor:pointer;font-size:12px}

.help ul{padding-left:18px;margin:6px 0}
footer{text-align:center;padding:8px;color:#666}
@media(max-width:980px){main{flex-direction:column} .left,.right{width:100%}}
