*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial,sans-serif;
    height:100vh;
    overflow:hidden;
    background:#f3f4f6;
}

.container{
    display:flex;
    height:100vh;
}

.sidebar{
    width:340px;
    background:#0f172a;
    color:white;
    padding:20px;
    overflow-y:auto;
}

.brand{
    margin-bottom:25px;
    padding-bottom:15px;
    border-bottom:1px solid #334155;
}

.brand h1{
    font-size:26px;
    margin-bottom:4px;
}

.brand p{
    color:#cbd5e1;
}

.section{
    margin-bottom:20px;
}

.section h2,
.section h3{
    color:#f59e0b;
    margin-bottom:10px;
}

label{
    display:block;
    margin-bottom:5px;
    font-size:14px;
    color:#dbeafe;
}

input,
textarea,
button{
    width:100%;
}

input,
textarea{
    padding:10px;
    border:none;
    border-radius:6px;
    margin-bottom:10px;
}

button{
    padding:12px;
    border:none;
    border-radius:6px;
    cursor:pointer;
    color:white;
    background:#2563eb;
    margin-bottom:8px;
}

button:hover{
    opacity:.95;
}

.green{
    background:#059669;
}

.red{
    background:#dc2626;
}

.workspace{
    flex:1;
    position:relative;
}

.canvas-wrapper{
    width:100%;
    height:100%;
    padding:20px;
}

#planCanvas{
    width:100%;
    height:100%;
    background:white;
    border-radius:10px;
    box-shadow:0 5px 20px rgba(0,0,0,.15);
    touch-action:none;
}

#hint{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    background:#111827;
    color:white;
    padding:15px;
    border-radius:8px;
}

.hidden{
    display:none;
}

.camera-item{
    background:#1e293b;
    padding:10px;
    border-radius:6px;
    margin-bottom:8px;
}

.camera-item button{
    margin-top:8px;
}

/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 768px) {

    body{
        overflow:auto;
    }

    .container{
        flex-direction:column;
        height:auto;
        min-height:100vh;
    }

    .sidebar{
        width:100%;
        height:auto;
        padding:15px;
    }

    .brand h1{
        font-size:22px;
    }

    .section{
        margin-bottom:15px;
    }

    .workspace{
        width:100%;
        height:70vh;
        min-height:500px;
    }

    .canvas-wrapper{
        padding:10px;
        height:100%;
    }

    #planCanvas{
        width:100%;
        height:100%;
        min-height:450px;
    }

    input,
    textarea,
    button{
        font-size:16px; /* Prevent zoom on iPhone */
    }

    button{
        padding:14px;
    }

    #hint{
        width:85%;
        text-align:center;
        font-size:14px;
    }

}

@media (max-width: 480px){

    .sidebar{
        padding:12px;
    }

    .brand h1{
        font-size:20px;
    }

    .brand p{
        font-size:13px;
    }

    .section h2,
    .section h3{
        font-size:16px;
    }

    .workspace{
        height:65vh;
    }

    #planCanvas{
        min-height:400px;
    }

}
