/* *{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:"Helvetica";
}

html,body{
    width: 100%;
}
html{
    background-color: var(--bg-primary-color);
    color: var(--text-primary-color);
}

main{
    width: 100%;
}

main section{
    width: 100%;
    padding: var(--padding-2xl);
    display: flex;
    gap: var(--gutter-lg);
}

.btn{
    padding: var(--padding-sm) var(--padding-lg);
    border: none;
    outline: none;
    border-radius: var(--border-radius-md);
    -webkit-border-radius: var(--border-radius-md);
    -moz-border-radius: var(--border-radius-md);
    -ms-border-radius: var(--border-radius-md);
    -o-border-radius: var(--border-radius-md);
    background-color: var(--bg-active-color);
    cursor: pointer;
    color: var(--text-active-color);
}

#reset-btn{
    color: var(--text-primary-color);
    background-color: var(--bg-danger-color);
}

#downlode-btn{
    color: var(--text-primary-color);
    background-color: var(--bg-susses-color);
}

main section .left{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gutter-lg);
    width: 70%;
}
main section .right{
    width: 30%;
    background-color: var(--bg-secondry-color);
    padding: var(--padding-lg);
    border-radius: var(--border-radius-xl);
    -webkit-border-radius: var(--border-radius-xl);
    -moz-border-radius: var(--border-radius-xl);
    -ms-border-radius: var(--border-radius-xl);
    -o-border-radius: var(--border-radius-xl);
}

main section .top{
    display: flex;
    align-items: center;
    gap: var(--gutter-md);
}

main section .bottom{
    background-color: var(--bg-secondry-color);
    width: 100%;
    padding: var(--padding-sm);
    aspect-ratio: 5/3;
    border-radius: var(--border-radius-sm);
    -webkit-border-radius: var(--border-radius-sm);
    -moz-border-radius: var(--border-radius-sm);
    -ms-border-radius: var(--border-radius-sm);
    -o-border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid;
}
main section .bottom .placeholder{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gutter-md);
    opacity: .5;
}
main section .bottom .placeholder i{
    font-size: 10rem;
}
main section .bottom .placeholder p{
    font-size: var(--font-size-xl);
}

main section .right{
    display: flex;
    flex-direction: column;
    gap: var(--gutter-md);
}

main section .right .filters{
    display: flex;
    flex-direction: column;
    gap: var(--gutter-md);

}
main section .right .filter{
    width: 100%;
}

main section .right .filter input{
    width: 100%;
    outline: none;
    margin-top: var(--margin-sm);
    appearance: none;
}
main section .right .filter input::-webkit-slider-runnable-track{
    height: 3px;
    background-color: var(--bg-active-color);
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    cursor: pointer;
}
main section .right .filter input::-webkit-slider-thumb {
    cursor: pointer;
    appearance: none;
    width: 20px;
    height: 20px;
    background-color: red;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    margin-top: -8.3px;
}

canvas{
    max-width: 95%;
    max-height: 95vh;
    display: none;
} */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Helvetica, sans-serif;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.editor {
    display: flex;
    gap: var(--gap);
    padding: 1.5rem;
}

/* ---------- LEFT ---------- */
.left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

.top {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.bottom {
    background: var(--bg-secondary);
    flex: 1;
    border-radius: var(--radius);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

canvas {
    max-width: 100%;
    max-height: 100%;
    display: none;
}

.placeholder {
    text-align: center;
    opacity: 0.5;
}

.placeholder i {
    font-size: 6rem;
}

/* ---------- RIGHT ---------- */
.right {
    width: 320px;
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--radius);
    overflow-y: auto;
}

.filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter input {
    width: 100%;
}

/* ---------- BUTTONS ---------- */
.btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    background: var(--bg-light);
    color: var(--text-dark);
}

.btn.danger { background: var(--danger); color: #fff; }
.btn.success { background: var(--success); color: #fff; }

/* 🔥 MOBILE UX (IMPORTANT PART) */
@media (max-width: 768px) {
    .editor {
        flex-direction: column;
        padding: 0.5rem;
    }

    .right {
        width: 100%;
        max-height: 45vh;
        overflow-y: auto;
        position: sticky;
        bottom: 0;
    }

    .top {
        justify-content: space-between;
    }
}
