.color-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: space-evenly;
    align-items: flex-start;
}
.color-group {
    padding: 5px;
    border-radius: 8px;
    width: 15%;
    transition: transform 0.2s, opacity 0.2s;
}
.color-group.dragging {
    opacity: 0.8;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.input-group input[type="text"] {
    width: 100px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.input-group input[type="color"] {
    width: 100px;
}
.color-preview {
    font-size: 0.6rem;
    height: 60px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
    position: relative;
    cursor: move;
    touch-action: none;
}
.error {
    color: red;
    font-size: 12px;
    height: 14px;
    margin: 5px 0;
}
.palette-preview {
    display: flex;
    height: 50px;
    margin-top: 20px;
    border-radius: 4px;
    overflow: hidden;
}
.palette-color {
    flex: 1;
}
@media (max-width: 600px) {
    .color-group {
        width: 100%;
    }
}