﻿.drawing-wrapper {
    width: 100%;
    max-width: 100%;
    font-family: "Inter", sans-serif;
    margin: 0 auto;
}

.drawing-toolbar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f7f7f7;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    flex-wrap: wrap;
}

.drawing-toolbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    border-top-style: dotted;
    padding-top: 6px;
    border-width: 1px;
    border-color: gray;
}

.drawing-toolbar-container span {
    font-size: 15px;
    display: block;
    text-align: center;
    padding: 10px;
    line-height: 20px;
}

.drawing-toolbar input[type="button"] {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    background: #e9e9e9;
    transition: background 0.2s;
}

    .drawing-toolbar input[type="button"]:hover {
        background: #d6d6d6;
    }

.drawing-toolbar input.active {
    background: #0078d7;
    color: #fff;
}

#eraserBtn.active {
    background: #dc3545 !important;
    color: #fff;
}

#clearBtn {
    background: #f44336;
    color: white;
}

    #clearBtn:hover {
        background: #d32f2f;
    }

select, input[type="color"] {
    height: 36px;
    border-radius: 6px;
    border: 1px solid #ccc;
    cursor: pointer;
    background: white;
    padding: 4px;
}

.canvas-scroll-container {
    width: 100%;
    border-radius: 10px;
    background: white;
    box-sizing: border-box;
    margin-bottom: 15px;
}

@media (min-width: 200px) {
    .canvas-scroll-container {
        position: relative;
        overflow: unset;
        height: 700px;
        border-style: solid;
        border-width: 1px;
        border-right: 30px solid transparent;
        border-color: #e8e8e8;
        background: white;
    }

        .canvas-scroll-container::after {
            content: "";
            position: absolute;
            top: 0;
            right: 0;
            width: 15px;
            height: 100%;
            background: linear-gradient(to left, #e8e8e8 10%, #f8f8f8 90%);
            pointer-events: none;
        }

    .canvas-container {
        height: 650px !important;
    }

    .canvas-scroll-container canvas {
        width: 100%;
        height: 650px !important;
        display: block;
        box-sizing: border-box;
    }
}


@media (min-width: 768px) {
    .canvas-scroll-container {
        overflow-y: scroll;
        overflow-x: hidden;
        scrollbar-gutter: stable both-edges;
        height: 500px;
        border: 1px solid #ccc;
    }

        .canvas-scroll-container::after {
            display: none;
        }

    .canvas-container {
        height: initial;
    }

    .canvas-scroll-container canvas {
        width: 100%;
        height: 2500px;
        display: block;
        box-sizing: border-box;
    }
}
