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

body{
	margin:0;
    padding:0;
    font-family:Segoe UI,sans-serif;
    background:#f5f6fa;
}

.app{
	width:950px;
    margin:20px auto;
    display:flex;
    /* height:100vh; */
	gap:15px;
    align-items:flex-start;
}

/* LEFT */

.sidebar{
    width:120px;
    background:#ffffff;
    padding:15px;
    box-shadow:0 0 15px rgba(0,0,0,.1);
}

.sidebar h3{
    margin-bottom:15px;
}


.tools{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.tool-btn{

    width:60px;
    height:60px;
    margin:0 auto 12px;
    display:flex;
    justify-content:center;
    align-items:center;
    border:none;
    border-radius:16px;
    background:#f5f6fa;
    cursor:pointer;
}

.tool-btn img{
    width:34px;
    height:34px;
}

.tool-btn span{

    display:none;
}

.tool-btn:hover{

    background:#ececec;
}

.tool-btn.active{

    background:#5b5ce2;

    border:3px solid #ffffff;

    box-shadow:
    0 0 0 3px #5b5ce2;
}
.tool-btn.active img{

    filter:
    brightness(0)
    invert(1);
}


/* CENTER */

.canvas-area{
    width:680px;
    background:#ffffff;    
    padding:15px;
    display:flex;
    justify-content:center;
    align-items:center;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
}

canvas{
    display:block;
    border-radius:12px;
    background:#ffffff;
    border:1px solid #ede8e8;
}

/* RIGHT */

.palette-panel{
    width:115px;
    background:#ffffff;    
    padding:15px;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
}

.palette-panel h3 {
   margin-bottom: 15px;
}	

#palette{
    display:grid;
    grid-template-columns:
    repeat(2,1fr);
    gap:8px;
    margin-bottom:20px;
}

.color-btn{
    width:25px;
    height:25px;
    border-radius:50%;
    cursor:pointer;
    border:3px solid #fff;
    box-shadow:0 2px 8px rgba(0,0,0,.2);
    transition:.2s;
}

.color-btn:hover{
    transform:scale(1.1);
}

.color-btn.active{
	transform:scale(1.15);
    border:3px solid #000;
}

#colorPicker{
    width:100%;
    height:50px;
    border:none;
	cursor:pointer;
}

.action-buttons{

    margin-bottom:20px;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.action-btn{

    width:70px;
    height:50px;
    border:none;
    border-radius:14px;
    cursor:pointer;     
}

.action-btn img{

    width:50px;
    height:50px;
}

/* UNDO */

.undo-btn:hover{

    transform:translateY(-2px);

    box-shadow:
    0 8px 20px rgba(0,0,0,.15);
}

/* SAVE */

.save-btn:hover{

    transform:translateY(-2px);

    box-shadow:
    0 10px 25px rgba(79,70,229,.45);
}




