/* ===========================
   AllWebApps Animation Studio
   Version 1.0
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:#101827;
    color:#ffffff;
    font-family:Arial,Helvetica,sans-serif;
    overflow-x:hidden;
}

/* ================= HEADER ================= */

.topbar{

    background:#1f2937;

    padding:25px;

    text-align:center;

    box-shadow:0 5px 15px rgba(0,0,0,.4);

}

.topbar h1{

    font-size:48px;

    margin-bottom:10px;

    font-weight:700;

}

.topbar p{

    font-size:22px;

    color:#cbd5e1;

}

/* ================= MAIN ================= */

.app{

    max-width:1700px;

    margin:30px auto;

    padding:20px;

    display:grid;

    grid-template-columns:340px 1fr;

    gap:30px;

}

/* ================= SIDEBAR ================= */

.sidebar{

    background:#1f2937;

    border-radius:18px;

    padding:28px;

    box-shadow:0 0 25px rgba(0,0,0,.35);

}

.sidebar h2{

    margin-bottom:25px;

    font-size:34px;

}

.form-group{

    margin-bottom:22px;

}

.form-group label{

    display:block;

    margin-bottom:8px;

    font-size:18px;

    font-weight:bold;

}

.form-group select{

    width:100%;

    height:48px;

    border:none;

    border-radius:10px;

    padding:0 15px;

    font-size:17px;

    background:white;

}

.form-group input[type=range]{

    width:100%;

    cursor:pointer;

}

/* ================= BUTTONS ================= */

.buttons{

    display:flex;

    flex-direction:column;

    gap:18px;

    margin-top:30px;

}

.buttons button{

    border:none;

    border-radius:12px;

    color:white;

    font-size:22px;

    cursor:pointer;

    height:60px;

    transition:.25s;

}

.buttons button:hover{

    transform:translateY(-2px);

}

#previewBtn{

    background:#2563eb;

}

#recordBtn{

    background:#dc2626;

}

#downloadBtn{

    background:#10b981;

}

/* ================= PREVIEW ================= */

.preview-area{

    display:flex;

    flex-direction:column;

}

.preview-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:20px;

}

.preview-header h2{

    font-size:34px;

}

#status{

    color:#22c55e;

    font-weight:bold;

    font-size:18px;

}

.canvas-wrapper{

    background:#000;

    border-radius:20px;

    border:2px solid #444;

    padding:10px;

    box-shadow:0 0 25px rgba(255,255,255,.08);

}

/* ================= CANVAS ================= */

canvas{

    display:block;

    width:100%;

    height:720px;

    background:black;

    border-radius:14px;

}

/* ================= FOOTER ================= */

footer{

    text-align:center;

    padding:30px;

    color:#94a3b8;

}

/* ================= MOBILE ================= */

@media(max-width:1100px){

.app{

    grid-template-columns:1fr;

}

.sidebar{

    width:100%;

}

.topbar h1{

    font-size:34px;

}

.topbar p{

    font-size:18px;

}

.preview-header{

    flex-direction:column;

    align-items:flex-start;

    gap:10px;

}

canvas{

    height:500px;

}

}