/* ==========================================================
   Demo Bonsai
   desktop.css
   Editor Desktop (>=901px)
==========================================================*/

@media screen and (min-width:901px){

/*==========================================================
    EDITOR
==========================================================*/

.editor{

    display:grid;

    grid-template-columns:minmax(0,1fr) 300px;

    gap:14px;

    align-items:start;

}


/*==========================================================
    TOOLBAR
==========================================================*/

.toolbar{

    display:flex;

    justify-content:space-between;

    align-items:center;

    height:66px;

    padding:8px 10px;

    background:#242424;

    border-radius:22px;

    overflow:hidden;

    border:1px solid rgba(255,255,255,.06);

    margin-bottom:12px;

}

.tool{

    flex:1;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    gap:3px;

    background:none;

    border:none;

    color:#ffffff;

    text-decoration:none;

    padding:0;

}

.tool-icon{

    width:28px;

    height:28px;

    object-fit:contain;

}

.tool-icon-big{

    width:32px;

    height:32px;

    font-size:34px;

    display:flex;

    justify-content:center;

    align-items:center;

}

.tool-text{

    margin-top:2px;

    font-size:12px;

    line-height:1;

    font-weight:500;

}


/*==========================================================
    CANVAS
==========================================================*/

.canvas-wrap{

    display:flex;

    justify-content:center;

    align-items:center;

    background:#1f1f1f;

    border-radius:24px;

    padding:8px;

    overflow:hidden;

    height:calc(100vh - 120px);

}

#canvas{

    max-width:100%;

    max-height:100%;

    width:auto;

    height:auto;

    display:block;

    border-radius:18px;

}


/*==========================================================
    SIDEBAR
==========================================================*/

.sidebar{

    display:flex;

    flex-direction:column;

    background:#fff;

    border-radius:20px;

    padding:8px;

    height:calc(100vh - 120px);

    overflow:hidden;

}

.sidebar-head{

    flex:0 0 auto;

    margin-bottom:10px;

}


/*==========================================================
    TABS
==========================================================*/

.tabs{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:6px;          /* trước là 14px */

    margin-bottom:10px;

}

.tab{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:4px;

    width:100%;

    height:32px;

    padding:0 6px;

    background:#fff;

    border:2px solid #ececec;

    border-radius:7px;

    font-size:12px;

    font-weight:600;

    color:#222;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;

}

.tab img{

    width:20px;

    height:20px;

    object-fit:contain;

    flex-shrink:0;

}


/*==========================================================
    THUMBNAIL
==========================================================*/

.thumbs{

    flex:1;

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:10px;

    overflow-y:auto;

    overflow-x:hidden;

    padding:4px;

    align-content:start;

    scrollbar-width:thin;

}

.thumbs::-webkit-scrollbar{

    width:8px;

}

.thumbs::-webkit-scrollbar-thumb{

    background:#bbb;

    border-radius:20px;

}

.thumbs::-webkit-scrollbar-track{

    background:#f3f3f3;

}

.thumb{

    width:100%;

    aspect-ratio:1;

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:14px;

    background:#f6f6f6;

    border:1px solid #ddd;

}

.thumb img{

    max-width:90%;

    max-height:90%;

    object-fit:contain;

}


/*==========================================================
    HINT
==========================================================*/

.hint{

    margin-top:10px;

    padding:8px;

    font-size:12px;

    color:#666;

    background:#f5f5f5;

    border-top:1px solid #e6e6e6;

}

}
.tab span:first-child{

    font-size:18px;

}