﻿

:root
{
    --ui-editor-input-color: rgba(30, 30, 30, 1.0);
    --ui-editor-input-size: 60%;
    --ui-editor-input-font-size: 12px;

    --ui-editor-button-color: rgba(50, 50, 50, 1.0);
    --ui-editor-button-hover-color: rgba(30, 30, 30, 1.0);

    --ui-editor-title-color: rgba(160, 160, 160, 1);
    --ui-editor-text-color: white;
}


/* -------------------- EDITOR COMMON GENERIC ELEMENTS -------------------- */

.editor-title
{
    position: relative;
    color: var(--ui-editor-title-color);
    padding: 6px;
    font-size: 20px;
    background-color: transparent;
}

.editor-label
{
    position: relative;
    color: white;
    padding: 4px;
    font-size: var(--ui-editor-input-font-size);
    text-wrap: nowrap;
    min-width: 0;
    overflow: clip;
    text-overflow: ellipsis;
    border: solid;
    border-color: rgba(200, 200, 200, 0);
    border-width: 2px;
    user-select: none;
}

.editor-button
{
    padding: 4px 12px;
    font-size: var(--ui-editor-input-font-size);
    text-align: left;
    cursor: pointer;
    border: none;
    width: 100%;
    border-radius: 2px;
    background-color: var(--ui-editor-button-color);
    color: var(--ui-editor-text-color);
    user-select: none;
    transition: background-color 0.1s;
}
    .editor-button:hover
    {
        background-color: var(--ui-editor-button-hover-color);
    }

.editor-color-picker
{
    padding: 0px;
    cursor: pointer;
    border: none;
    width: var(--ui-editor-input-size);
    background-color: var(--ui-editor-button-color);
    transition: background-color 0.1s;
}
    .editor-color-picker:hover
    {
        background-color: var(--ui-editor-button-hover-color);
    }

.editor-input
{
    padding: 4px 8px;
    font-size: var(--ui-editor-input-font-size);
    cursor: text;
    border: solid;
    border-color: rgba(200, 200, 200, 1);
    border-width: 2px;
    border-radius: 2px;
    min-width: 20px;
    width: var(--ui-editor-input-size);
    flex-shrink: 0;
    background-color: var(--ui-editor-input-color);
    color: var(--ui-editor-text-color);
    transition: background-color 0.1s;
}
    .editor-input:hover
    {
        background-color: var(--ui-editor-button-hover-color);
    }



.editor-checkbox
{
    display: inline-flex;
    cursor: pointer;
}
    .editor-checkbox input
    {
        display: none;
    }
.editor-checkbox-box
{
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-radius: 6px;
    background-color: var(--ui-editor-button-color);
    position: relative;
    transition: all 0.1s linear;
}
.editor-checkbox:hover .editor-checkbox-box
{
    background-color: var(--ui-editor-button-hover-color);
}
.editor-checkbox input:checked + .editor-checkbox-box
{
    background-color: var(--ui-editor-button-color);
}
    .editor-checkbox input:checked + .editor-checkbox-box::after
    {
        content: "✔";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #fff;
        font-size: 14px;
        font-weight: bold;
    }



.editor-space
{
    height: 10px;
    width: 100%;
    flex-shrink: 0;
    background-color: transparent;
    transition: 0.1s ease;
    pointer-events: none;
}
    .editor-space:hover
    {
        padding-bottom: 16px;
        border: 1px dashed #FFFFFF;
    }

.editor-space-h
{
    height: 100%;
    width: 8px;
    flex-shrink: 0;
    background-color: transparent;
    pointer-events: none;
}

@keyframes anim-pulse-02
{
    0%
    {
        background-color: rgba(255, 255, 255, 0);
    }

    50%
    {
        background-color: rgba(255, 255, 255, 0.2);
    }

    100%
    {
        background-color: rgba(255, 255, 255, 0);
    }
}


/* -------------------- EDITOR COMMON SPECIFIC ELEMENTS -------------------- */

#ui-editor-selection-rect-box
{
    position: absolute;
    border: 1px dashed #4aa3ff;
    background-color: rgba(74, 163, 255, 0.15);
    pointer-events: none;
    display: none;
    z-index: 9999;
}