#doodle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none; /* Disabled by default */
}

.doodle-button {
    position: absolute;
    color: black;
    bottom: 20px;
    right: 10px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-left: auto;
    align-self: flex-end;
    min-width: 40px;
    max-width: 40px;
    flex-shrink: 0;
}

.doodle-button svg {
    width: 20px; /* Set appropriate size for your icon */
    height: 20px;
}

#toolbox-toggle {
    width: 40px;
    height: 40px;
    min-width: 40px;
    max-width: 40px;
    flex-shrink: 0;
    padding: 0;
}

#doodle-controls {
    position: absolute;
    bottom: 20px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* background-color: white; */
    /* border-radius: 8px; */
    padding: 10px;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
    z-index: 1001;
    margin-left: auto;
    align-self: flex-end;
}

.control-button {
    background-color: #ffffff;
    border: 1px solid #ccc;
    /* padding: 8px 12px; */
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: right;
    justify-content: right;
    transition: background-color 0.2s ease-in-out, transform 0.1s;
    width: 40px;
    height: 40px;
    min-width: 40px;
    max-width: 40px;
    flex-shrink: 0;
    padding: 8px;
    margin-left: auto;
    align-self: flex-end;
}

.control-button:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
}

/* Toolbox styles */
#doodle-toolbox {
    position: sticky;
    top: 172px;
    right: 0px;
    display: flex;
    flex-direction: row;
    gap: 12px; /* Increased spacing */
    background-color: #ffffff;
    border-radius: 10px;
    padding: 5px 10px;  
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1002;
    /* min-width: 180px; */
    align-items: center; /* Align items horizontally */
    min-width: unset; /* Remove fixed width */
    width: auto; /* Allow it to size dynamically */
    display: none; /* Initially hidden */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s;

    justify-content: flex-end;
    margin-left: auto;
    right: 10px;
    /* left: auto; */
}

#doodle-toolbox.show {
    display: flex; /* Ensure it appears */
    opacity: 1;
    visibility: visible;
    width: auto;
    max-width: fit-content;
}

#doodle-toolbox label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0px;
    display: block;
    margin-right: 8px; /* Add spacing between label and input */
    white-space: nowrap; /* Prevent labels from wrapping */
}

#doodle-toolbox input,
#doodle-toolbox select {
    width: auto;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    background-color: #f9f9f9;
}

#doodle-toolbox input[type="color"] {
    width: 40px; /* Increase width */
    height: 40px; /* Increase height */
    border: 1px solid #ccc; /* Add a subtle border */
    border-radius: 6px; /* Rounded corners */
    cursor: pointer;
    padding: 2px;
}

#doodle-toolbox input[type="range"] {
    cursor: pointer;
}


/* Eraser button specific styles */
#eraser {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 8px; /* Add spacing between elements */
}

#eraser svg {
    fill: #333;
    width: 24px;
    height: 24px;
    transition: fill 0.2s ease-in-out;
}

#eraser:hover svg {
    fill: red;
}