/* Unique prefix cp- stands for Color Palette to avoid conflicts */
.cp-palette-select-container {
    position: relative;
    width: 300px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.cp-palette-select-header {
    padding: 12px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.cp-palette-select-header:hover {
    border-color: #94a3b8;
}

.cp-palette-select-header.cp-active {
    border-radius: 8px 8px 0 0;
    border-bottom: none;
}

.cp-palette-colors {
    display: flex;
    gap: 8px;
}

.cp-color-preview {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.1);
}

.cp-palette-name {
    font-size: 14px;
    color: #1e293b;
}

.cp-chevron {
    border: solid #64748b;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.cp-active .cp-chevron {
    transform: rotate(-135deg);
}

.cp-palette-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.cp-palette-option {
    padding: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s ease;
}

.cp-palette-option:hover {
    background-color: #f8fafc;
}

.cp-palette-option:not(:last-child) {
    border-bottom: 1px solid #e2e8f0;
}