.forge-container {
    width: 100%;
    height: 512px;
    position: relative;
    overflow: hidden;
    user-select: none;
    touch-action: none;
}

.forge-image-container:not(.plain) {
    background-color: #cccccc;
    background-image:
        linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%, #eee),
        linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%, #eee);
    background-size: 20px 20px;
    background-position:
        0 0,
        10px 10px;
}

.forge-image-container {
    width: 100%;
    height: calc(100% - 6px);
    position: relative;
    overflow: hidden;
}

.forge-image {
    position: absolute;
    top: 0;
    left: 0;
    background-size: contain;
    background-repeat: no-repeat;
    cursor: grab;
    max-width: unset !important;
    max-height: unset !important;
}

.forge-image:active {
    cursor: grabbing;
}

.forge-file-upload {
    display: none;
}

.forge-toolbar-static {
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 10 !important;
    background: rgba(47, 47, 47, 0.8);
    padding: 6px 10px;
    opacity: 1 !important;
}

.forge-toolbar {
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 10;
    background: rgba(47, 47, 47, 0.8);
    padding: 6px 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.forge-toolbar .forge-btn,
.forge-toolbar-static .forge-btn {
    padding: 2px 6px;
    border: none;
    background-color: #4a4a4a;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.forge-toolbar .forge-btn,
.forge-toolbar-static .forge-btn:hover {
    background-color: #5e5e5e;
}

.forge-toolbar .forge-btn,
.forge-toolbar-static .forge-btn:active {
    background-color: #3e3e3e;
}

.forge-toolbar-box-a {
    flex-wrap: wrap;
}

.forge-toolbar-box-b {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.forge-color-picker-block {
    display: flex;
    align-items: center;
}

.forge-range-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.forge-toolbar-color {
    border: none;
    background: none;
    padding: 3px;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.forge-toolbar-color::-webkit-color-swatch-wrapper {
    padding: 0;
    border-radius: 50%;
}

.forge-toolbar-color::-webkit-color-swatch {
    border: none;
    border-radius: 50%;
    background: none;
}

.forge-toolbar-label {
    color: white !important;
    padding: 0 4px;
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.forge-scribble-indicator {
    position: relative;
    border-radius: 50%;
    border: 1px solid;
    pointer-events: none;
    display: none;
    width: 80px;
    height: 80px;
}

.forge-upload-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30%;
    height: 30%;
    transform: translate(-50%, -50%);
}
