.color-picker-bar {
    background-color: var(--color-light-gray);
    padding: var(--spacing-lg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: var(--spacing-lg);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

[data-theme="dark"] .color-picker-bar {
    background-color: rgba(255, 255, 255, 0.05);
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

#base-color-picker {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: none;
    padding: 0;
}

#base-color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

#base-color-picker::-webkit-color-swatch {
    border: 2px solid var(--color-border);
    border-radius: 50%;
}

#base-color-hex {
    padding: 0.8rem;
    font-size: 1.2rem;
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
    text-transform: uppercase;
    width: 120px;
    text-align: center;
}

/* Palettes Sections */
.palettes-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.palette-section h3 {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge {
    font-size: 0.75rem;
    background-color: var(--color-blue);
    color: var(--color-white);
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

[data-theme="dark"] .desc {
    color: #aaa;
}

/* Swatches */
.swatch-row {
    display: flex;
    gap: 10px;
    height: 120px;
}

.color-swatch {
    flex: 1;
    border-radius: var(--radius);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 15px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.color-swatch:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.swatch-label {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 5px 10px;
    border-radius: 4px;
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
    font-size: 0.9rem;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.color-swatch::after {
    content: "COPY";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.color-swatch:hover::after {
    opacity: 1;
}

@media (max-width: 600px) {
    .swatch-row {
        height: 100px;
    }
    .swatch-label {
        font-size: 0.75rem;
        padding: 3px 5px;
    }
}