.shape-panel {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-family: "Segoe UI", sans-serif;
}

.shape-panel .coloris {
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 4px;
    text-indent: -9999px;
    overflow: hidden;
    cursor: pointer;
    background-color: currentColor;
    box-shadow: inset 0 0 0 1px #ccc;
    flex-shrink: 0;
}

.shape-panel h3 {
    font-size: 16px;
    margin:auto;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
    text-align: center;
}

.shape-panel .row {
    display: flex;
    align-items: center;    
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    width: 100%;
}

.shape-panel .row label {
    font-size: 13px;
    color: #444;
    font-weight: 500;
    white-space: nowrap;
    flex: 1.5;                    /* ✅ allow more space for longer labels */
    min-width: 80px;              /* ✅ prevents "Stroke Width" from wrapping */
}

.shape-panel .row input[type="number"],
.shape-panel .row input[type="range"] {
    flex: 2;
    min-width: 0;
    box-sizing: border-box;
    padding: 4px 6px;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #fff;
}

.shape-panel input[type="range"] {
    height: 4px;
    accent-color: #3f80ff;
}

button[aria-labelledby="clr-open-label"] {
    display: none !important;
}

.shape-panel .checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.shape-panel .checkbox-row input[type="checkbox"] {
    margin-right: 4px;
    transform: scale(1.2);
}

/* 🌟 Layers Panel */
.layer-panel {
    background-color: #fdfdfd;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px;
    width: 90%;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    font-family: "Segoe UI", sans-serif;
    margin-top: 10px;
}

/* Panel Heading */
.layer-panel h3 {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 8px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid #eee;
    text-align: center;
    width: 100%;
    display: block;
    box-sizing: border-box;
    background: none;
    white-space: normal;
    word-break: break-word;
}

/* 🧱 Layer List */
.layer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: fit-content;
    max-height: 300px;           /* 🆕 Scrollable when long */
    overflow-y: auto;
}

/* Individual Layer Items */
.layer-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    font-size: 10px;
    color: #333;
    border-radius: 6px;
    transition: background-color 0.2s;
    cursor: pointer;
    border-bottom: 1px solid #eee; /* 🆕 Optional visual separation */
}

.layer-list li:hover {
    background-color: #f1f1f1;
}

.layer-list li.selected {
    background-color: #e0e0e0;
    font-weight: 600;
}

/* Layer Name Styling */
.layer-list li .layer-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Action Buttons Container */
.layer-list li .layer-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* Action Buttons */
.layer-list li .layer-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: #888;
    transition: color 0.2s, transform 0.1s;
}

.layer-list li .layer-actions button:hover {
    color: #000;
}

.layer-list li .layer-actions button:active {
    transform: scale(0.95); /* 🆕 subtle click effect */
}
