/* Extra small devices (phones, 600px and down) 
@media only screen and (max-width: 600px) {} */

* {
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-weight: bold;
}

body {
    overflow: hidden;
}

button {
    border: none;
    cursor: pointer;
}

/* Geral */
.w-100 {
    width: 100%;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.center {
    justify-content: center;
    align-items: center;
}

.items-center {
    align-items: center;
}

.items-end {
    align-items: flex-end;
}

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between !important;
}

.wrap {
    flex-wrap: wrap;
}

.desktop-only {
    display: none;
}

.mobile-only {
    display: flex;
}

/* Custom input number */
.input-number {
    overflow: hidden;
    display: flex;
    height: 30px;
    margin: 5px;
    border-radius: 5px;
    border: 1px solid #D9D9D9;
}

.input-number button {
    display: flex;
    width: 20px;
    height: 100%;
    justify-content: center;
    align-items: center;
    background-color: #000;
    border: none;
}

.input-number input {
    display: flex;
    width: 30px;
    padding: .25rem;
    text-align: center;
    border: none;
    justify-content: center;
    align-items: center;
}

/* Dropdown popup */
.dropdown {
    position: relative;
    width: 100px;
    border-radius: 5px;
    border: 1px solid #D9D9D9;
}

.btn-dropdown {
    display: flex;
    width: 100%;
    height: 30px;
    padding: .1rem .5rem;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    color: #000;
    font-size: .7em;
    font-weight: bold;
    border-radius: 5px;
}

.dd-popup {
    position: absolute;
    overflow-y: auto;
    z-index: 20;
    top: -20px;
    max-width: 150px;
    max-height: 70vh;
    width: auto;
    height: auto;
    display: none;
    flex-direction: column;
    background: #fff;
    border: '1px solid gray';
    box-shadow: 5px 5px 10px rgba(50, 50, 50, .4);
}

.dd-popup button {
    white-space: nowrap;
    height: 30px;
    padding: .5rem;
    color: #000 !important;
    background-color: #fff !important;
}

/* Menu */
.menu, .bottom-menu {
    overflow: hidden;
    width: 100%;
    height: 50px;
    padding: 0px 0px;
    align-items: center;
    justify-content: space-between;
    gap: 0px;
    border: 1px solid #D9D9D9;
}

.bottom-menu {
    gap: 0px;
}

.btn-toolbar {
    position: relative;
    width: 50px;
    height: 50px;
    background-color: #fff;
}

.btn-export {
    position: absolute;
    top: 55px;
    right: 5px;
    height: 30px;
    padding: .5rem;
    z-index: 2;
    gap: 5px;
    color: #fff;
    background-color: #1941D2;
    border-radius: 5px;
}

/* Container */
.container {
    height: calc(100vh - 80px);
    width: 100%;
}

.editor-container {
    overflow: auto;
    position: relative;
    height: 100%;
    width: 100%;
    max-height: calc(100vh - 100px);
}

.editor-wrapper {
    position: relative;
}

.overlay-drag {
    display: none;
    position: absolute;
    z-index: 1;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background:
        /*transparent*/
        rgba(255, 255, 255, .2);
}

.box-actions {
    position: fixed;
    z-index: 2;
    right: 10px;
    bottom: 60px;
}

.box-actions .btn-toolbar {
    border-radius: 10px;
}

.title-control {
    height: 30px;
    max-width: 100px;
    padding: .25rem;
    border: 1px solid #D9D9D9;
    border-radius: 5px;
}

.loader {
    position: absolute;
    bottom: 20%;
    right: 20%;
    width: 12px;
    height: 12px;
    border: 2px solid #1941D2;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: none;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.loader.ligth {
    position: static;
    border: 2px solid #fff;
    border-bottom-color: transparent;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Side menu */
.side-menu {
    display: none;
}

.side-menu button,
.btn-add {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    border: 1px solid #D9D9D9;
    background-color: #fff;
}

.btn-add {
    width: 40px;
    height: 40px;
}

/* Item menu */
.item-menu {
    position: absolute;
    width: auto;
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #D9D9D9;
}

.item-menu button,
.btn-icon {
    width: 50px;
    height: 50px;
    background-color: transparent;
}

.box-control {
    position: absolute;
    top: calc(100% + 2px);
    padding: .25rem;
    gap: 10px;
    border-radius: 5px;
    background: #fff;
    border: 1px solid #d9d9d9;
    box-shadow: 0px 0px 15px rgba(90, 90, 90, .5);
}

.box-control .input-text {
    width: 30px;
    height: 25px;
    padding: .25rem;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    outline: none;
}

.box-color-options {
    gap: 5px;
    margin-top: 10px;
}

.color-swatcher {
    width: 20px !important;
    height: 20px !important;
    border: 1px solid #D9D9D9;
    border-radius: 50%;
}

.btn-palette-control {
    width: 30px;
    height: 30px;
    background-image: url('/assets/colorful.png');
    background-repeat: no-repeat;
    background-size: 200%;
    background-position: center;
    border-radius: 5px;
    margin-right: .5rem;
}

.box-opacity {
    overflow: hidden;
    border-radius: 5px;
    border: 1px solid #D9D9D9;
}

.transparent-control {
    width: 30px !important;
    height: 30px !important;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==');
}

.transparent-overlay {
    width: 100%;
    height: 100%;
    background: transparent;
}

.opacity-control {
    max-width: 50px;
    height: 30px;
    padding: .25rem;
    border: none;
    outline: none;
    margin-right: 4px;
    border-radius: 5px;
}

/* Painel Detalhes */
.details-container {
    position: absolute;
    left: 100%;
    z-index: 3;
    overflow-y: auto;
    overflow-x: hidden;
    width: 300px;
    height: 100%;
    padding: 2.5%;
    border-left: 1px solid #D9D9D9;
    background: #fff;
    transition: .4s;
}

.details-container.open {
    transform: translateX(-100%);
}

.box-details {
    width: 100%;
    padding: .25rem 0px;
    gap: 10px;
    /*border-top: 1px solid #D9D9D9;*/
    border-bottom: 1px solid #D9D9D9;
}

.canvas-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
}

.details-options {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
}

.btn-details-shapes {
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 5px;
}

.box-details-controls {
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: .25rem 0px;
}

.btn-details-option {
    width: 30px;
    height: 30px;
    background-color: #fff;
    border-radius: 5px;
}

.btn-details-option.active {
    background-color: #000;
}

.details-control {
    height: 30px;
    padding: .25rem .5rem;
    align-items: center;
    border-radius: 5px;
    border: 1px solid #D9D9D9;
}

#itemMenuDetailsWrapper {
    min-height: 50px;
}

.btn {
    padding: .5rem .75rem;
    gap: 10px;
    border-radius: 5px;
    color: #fff;
    background-color: #000;
}

/* Bottom menu */
.bottom-menu {
    position: fixed;
    bottom: 0px;
    z-index: 4;
    width: 100%;
    padding: 0px 5px;
    align-items: center;
    justify-content: space-between;
    gap: 0px;
    background-color: #fff;
    border: 1px solid #D9D9D9;
}

.btn-whats {
    position: fixed;
    width: 30px;
    height: 30px;
    z-index: 10;
    bottom: 60px;
    left: 15px;
}

.btn-whats img {
    width: 100%;
    height: 100%;
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    .title-control {
        max-width: 120px;
    }

    .btn-whats {
        width: 40px;
        height: 40px;
    }

}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {

    .desktop-only {
        display: flex;
    }

    .mobile-only {
        display: none;
    }

    /* Menu */
    .menu {
        justify-content: flex-start;
        padding: 0px 20px;
    }

    .btn-export {
      position: static;
    }
    
    .editor-container {
        width: calc(100% - 410px);
        max-height: calc(100vh - 50px);
    }

    .toolbar-wrapper {
        position: absolute;
        left: 0px;
        top: 0px;
        width: 100%;
        padding: .25rem;
    }

    .btn-toolbar {
        width: 40px;
        height: 40px;
    }

    /* Side menu */
    .side-menu {
        display: flex;
        height: 100%;
        width: 60px;
        padding-top: 20px;
        gap: 5px;
        justify-content: flex-start;
        align-items: center;
        border: 1px solid #D9D9D9;
    }

    .btn-details-shapes {
        border: 1px solid #D9D9D9;
    }

    .container {
        height: calc(100vh - 50px);
    }

    .toolbar {
        position: relative;
        overflow: hidden;
        background-color: #fff;
        border-radius: 10px;
        border: 1px solid #D9D9D9;
    }

    .box-operations {
        margin-left: 50px;
    }

    /* Painel Detalhes */
    .details-container {
        position: relative;
        overflow-y: auto;
        overflow-x: hidden;
        width: 350px;
        height: 100%;
        left: 0px;
        padding: .5rem;
        /*padding: .25rem;*/
        border-left: 1px solid #D9D9D9;
    }

    .canvas-wrapper {
        height: 200px;
        position: relative;
    }

    #itemMenuDetailsWrapper {
        min-height: 30px;
    }

    /* Item menu */
    .item-menu button,
    .btn-icon {
        width: 30px;
        height: 30px;
    }

    .btn-whats {
        width: 50px;
        height: 50px;
        bottom: 10px;
        right: 10px !important;
        left: auto;
    }

}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {}