.circleSideBar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    border-radius: 15px;
    height: auto;
    background-color: #232329;
    overflow: visible;
    padding: 5px 10px;
    transition: 0.5s;
    z-index: 100;
    display: flex;
    flex-direction: row;
    align-items: center;
    filter: blur(0px);
    opacity: 1;
}

.circleSideBar.hidden {
    opacity: 0;
    pointer-events: none;
    filter: blur(10px);
    transform: translateX(-50%) translateY(20px);
    transition: 0.5s;
    z-index: -1;
}

/*  Combined Labels  */
.circleColorLabel,
.circleBackgroundLabel,
.circleThicknessLabel,
.circleFillLabel,
.circleStyleLabel {
    display: none;
}


/* Combined containers for colors, backgrounds, thickness, and fill */
.circleColorscircle,
.circleBackground,
.circleThickness,
.circleFill,
.circleStyle {
    position: static;
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    height: 40px;
    gap: 5px;
    align-items: center;
    padding: 0 8px;
    box-sizing: border-box;
    border-right: 1px solid rgba(255,255,255,0.15);
}

.circleFill {
    border-right: none;
}

.circleThickness, .circleStyle {
    gap: 5px;
}


/* Combined styles for color, background and fill spans */
.circleColorscircle span,
.circleBackground span,
.circleFill span {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    margin: 0 5px;
    cursor: pointer;
    box-sizing: border-box;
    transition: 0.25s;
    flex-shrink: 0; /* Prevent shrinking */
}

/* Combined selected styles for color background and fill spans */
.circleColorscircle span.selected,
.circleBackground span.selected,
.circleFill span.selected {
    border: 2px solid #3c09d6;
    transform: scale(1.3); /* Using transform instead of scale */
    transition: 0.25s;
}

/* Color-specific styles */
.circleColorscircle span:nth-child(1) { background-color: #fff; }
.circleColorscircle span:nth-child(2) { background: #FF8383; }
.circleColorscircle span:nth-child(3) { background-color: #3A994C; }
.circleColorscircle span:nth-child(4) { background-color: #56A2E8; }
.circleColorscircle span:nth-child(5) { background: #FFD700; }

/* Background-specific styles */
.circleBackground span:nth-child(1) { background-color: #fff; }
.circleBackground span:nth-child(2) { background-color: #5B2D2D; }
.circleBackground span:nth-child(3) { background-color: #043B0C; }
.circleBackground span:nth-child(4) { background-color: #154163; }
.circleBackground span:nth-child(5) { 
    background-color: #ffffe000;  
    background-image: linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc), 
                      linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc);
    background-size: 12px 12px;
    background-position: 0 0, 6px 6px;
}


/* Thickness styles */
.circleThickness span {
    width: 40px;
    height: 40px;
    position: relative;
    left: 0;
    border-radius: 10px;
    margin: 0 5px;
    cursor: pointer;
    color: #fff;
    background: #31303B;
    align-items: center;
    justify-content: center;
    display: flex;
    font-size: 30px;
    transition: 0.25s;
    flex-shrink: 0; /* Prevent shrinking */
}

.circleThickness span.selected {
    background: #444480;
    transition: 0.25s;
}

.circleThickness span:nth-child(1) { font-weight: 100; }
.circleThickness span:nth-child(2) { font-weight: 500; }
.circleThickness span:nth-child(3) { font-weight: 700; }

/* Fill styles */



.circleFill span {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    margin: 0 5px;
    cursor: pointer;
    box-sizing: border-box;
    transition: 0.25s;
    background: #31303B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    text-transform: uppercase;
    flex-shrink: 0; /* Prevent shrinking */
}

.circleFill span.selected {
    background: #444480;
    transition: 0.25s;
}

/* Style styles */
.circleStyle span {
    width: 35px;
    height: 35px;
    left: 5%;
    border-radius: 10px;
    margin: 0; /* Remove left-right margins */
    cursor: pointer;
    color: #fff;
    background: #31303B;
    align-items: center;
    justify-content: center;
    display: flex;
    transition: 0.25s;
    border: 2px solid transparent;
    flex-shrink: 0; /* Prevent shrinking */
}

.circleStyle span.selected {
    background: #444480;
    border: 2px solid #3c09d6;
    transition: 0.25s;
    transform: scale(1.1); /* Using transform instead of scale */
}

.circleStyle span svg {
    width: 30px;
    height: 30px;
    stroke: #fff;
    transition: 0.25s;
}

.circleStyle span.selected svg {
    stroke: #FFD700;
}

.circleFill .circleFillStyleSpan svg {
    pointer-events: none;
  }
  