#drawingmenu{
    position: absolute;
    left: 80px;
    width: 75px;
    margin-top: 10.2%;
    height: fit-content;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 4px 4px 4px 0px rgba(0, 0, 0, 0.14);
    scale: 0.9;
    user-select: none;

    display: none;
    flex-direction: column;
    justify-content: flex-start; /* Align from top */
    align-items: center;         /* Center items horizontally */
    gap: 10px;                   /* Adjust spacing between items */
    padding-top: 20px;
    padding-bottom: 20px;
}
#stroke, #stroke_width {
            font-size: 11px;
            font-weight: 600;
            color: #495057;
            text-align: center;
            margin-bottom: 5px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-family: Rubik;

        }

        /* Color options container */
        .color-container {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 6px;
            margin-top: 8px;
        }

        /* Individual color options */
        .color-option {
            width: 28px;
            height: 28px;
            border-radius: 6px;
            cursor: pointer;
            border: 2px solid transparent;
            transition: all 0.2s ease;
            position: relative;
        }

        .color-option:hover {
            transform: scale(1.1);
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }

        .color-option.selected {
            border-color: #007bff;
            box-shadow: 0 0 0 2px rgba(0,123,255,0.3);
        }

        /* Specific colors */
        #draw_color1 { background-color: #dc3545; } /* Red */
        #draw_color2 { background-color: #007bff; } /* Blue */
        #draw_color3 { background-color: #28a745; } /* Green */
        #draw_color4 { background-color: #212529; } /* Black */

        /* Width options container */
        .width-container {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-top: 8px;
            align-items: center;
        }

        /* Width option styling */
        .width-option {
            width: 50px;
            height: 20px;
            background-color: #f8f9fa;
            border: 2px solid #dee2e6;
            border-radius: 4px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            position: relative;
        }

        .width-option:hover {
            border-color: #007bff;
            background-color: #e7f3ff;
        }

        .width-option.selected {
            border-color: #007bff;
            background-color: #cce7ff;
        }

        /* Width preview lines */
        .width-line {
            background-color: #495057;
            border-radius: 1px;
            width: 30px;
        }

        #width1 .width-line { height: 1px; }
        #width2 .width-line { height: 3px; }
        #width3 .width-line { height: 5px; }

        /* Eraser styling */
        #eraser {
            width: 50px;
            height: 35px;
            background-color: #f8f9fa;
            border: 2px solid #dee2e6;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            font-size: 18px;
            margin-top: 5px;

        }

        #eraser:hover {
            border-color: #dc3545;
            background-color: #fff5f5;
        }

        #eraser.selected {
            border-color: #dc3545;
            background-color: #ffe6e6;
        }
        #eraser img {
            width: 30px;
            height: 30px;
        }
 #straight-line-mode {
            width: 55px;
            height: 40px;
            background-color: #f8f9fa;
            border: 2px solid #dee2e6;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            font-size: 9px;
            font-weight: 600;
            color: #495057;
            text-align: center;
            line-height: 1.1;
            padding: 4px;
        }

        #straight-line-mode:hover {
            border-color: #28a745;
            background-color: #f0fff4;
        }

        #straight-line-mode.selected {
            border-color: #28a745;
            background-color: #d4edda;
            color: #155724;
        }

        #straight-line-mode::before {
            content: "📏";
            font-size: 14px;
            margin-bottom: 2px;
        }
  

#drawing-area{
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: auto;
    overflow: visible;
    z-index: 1;
    pointer-events: all;
}
#paths-diagram{
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: auto;
    overflow: visible;
    z-index: 1;
    pointer-events: all;
}
#cropContainer:has(#elements.force-draw-cursor),
#elements.force-draw-cursor,
#elements.force-draw-cursor * {
  cursor: url('./images/whiteboard/drawcursor-mac.svg') 6 13, auto !important;
}
#cropContainer:has(#elements.force-erase-cursor),
#elements.force-erase-cursor,
#elements.force-erase-cursor * {
  cursor: url('./images/whiteboard/menuclear-small-mac.svg') 10 9, auto !important;
}