@import '../scss/index.scss';

// Code Editor
.editor-container {
    width: 100%;

    // Dropdown
    .dropdown {
        width: auto;
        height: $dropdownHeight;
        background-color: white;
        position: absolute;
        z-index: 99;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16);
        display: inline-block;
        text-align: center;
        line-height: $dropdownHeight;
        border-radius: $dropdownRadius;
        padding-left: 8px;
        padding-right: 8px;
        border-radius: 5px;

        &:hover {
            background-color: $gainsboro;
        }
    }

    .my-input {
        margin: 20px;
        border: 20px;
        padding: 15px;
        background-color: #F0F0F0;
        font-size: 14px;
        width: 170px;
        border-radius: 5px;
        font-family: inherit;
    }

    .dropdown-content {
        position: absolute;
        background-color: white;
        min-width: 230px;
        overflow: auto;
        border: 1px solid #ddd;
        z-index: 1;
        max-height: 300px;
        border-radius: 5px;
        left: 0;

        li {
            color: black;
            padding: 12px 0 12px 22px;
            text-decoration: none;
            display: block;
            text-align: left;
            cursor: pointer;
            list-style-type: none;

            &:hover {
                background-color: #ddd;
            }
        }
    }

    .button-dropdown {
        height: inherit;
        background-color: transparent;
        border: none;
        width: 100%;
        color: black;
        padding: inherit;
        display: flex;
        align-items: center;
        gap: 8px;
        align-content: center;
        cursor: pointer;
    }
}

.input-wrapper {
    display: flex;
    align-items: flex-start;
}

.code-snippet-wrapper {
    width: 100%;
    height: 500px;
    position: relative;
}

.options-container {
    background-color: $white;
    overflow: auto;
    padding: 32px 21px 0;
    width: auto;
    flex-direction: column;
    align-items: center;
    height: auto;
    z-index: 999;
}

.options-config {
    display: flex;
    position: absolute;
    z-index: 2;
    right: 0;
    height: 100%;
    top: 0;
    overflow: hidden;
}

.search-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 18px;
}

.divider-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.first-row {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-bar {
    width: 100%;
    background-color: $white-smoke-2;
    margin-right: 14px;
    border-radius: 5px;
    padding: 15px;
    color: $dark-slate-gray-2;
    border: 0;
    @include arial-14-regular;
}

.more-options-button {
    background-color: $white-smoke-3;
    border-radius: 50px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border: 0;

    &:hover {
        background-color: $gainsboro;
    }
}

.button-options {
    border: 0;
    background-color: $white-smoke-3-blur-opac;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    width: 35px;
    height: 50px;
    border-radius: 0 0 0 15px;
    cursor: pointer;
    backdrop-filter: blur(0.8px);

    &:hover {
        background-color: $gainsboro;
    }
}

.copy-options {
    background-color: $light-blue;
    margin-right: 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 29.88px;
    height: 29.88px;
    cursor: pointer;
    border: 0;

    &:hover {
        background-color: $plum;
    }
}

.undo-options {
    background-color: $lavender;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    border: 0;

    &:hover {
        background-color: $dim-gray;
    }
}

.divider-title {
    width: 100%;
    margin-bottom: 12px;
}

.more-options {
    width: 129px;
    height: auto;
    position: absolute;
    top: 57px;
    right: 38px;
    background-color: white;
    z-index: 101;
    border-radius: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16);
}

.save-options {
    border: none;
    height: 46px;
    font-size: 14px;
    justify-content: space-evenly;
    align-items: center;
    display: flex;
    width: 100%;
    background-color: white;
    cursor: pointer;

    &:hover {
        background-color: $gainsboro;
    }
}

.delete-options {
    border: none;
    height: 46px;
    font-size: 14px;
    width: 100%;
    justify-content: space-evenly;
    align-items: center;
    display: flex;
    background-color: white;
    cursor: pointer;

    &:hover {
        background-color: $gainsboro;
    }
}