#colorpicker-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mode-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.mode-button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.mode-button:hover {
    background: #e9ecef;
}

.mode-button.active {
    background: #5E35B1;
    color: white;
}

.mode-panel {
    display: none;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.mode-panel.active {
    display: block;
}

/* Wheel Mode */
.color-wheel {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    position: relative;
    background: conic-gradient(
        red, yellow, lime, cyan, blue, magenta, red
    );
    border-radius: 50%;
    cursor: crosshair;
}

.color-controls {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Gallery Mode */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Upload Mode */
.upload-area {
    border: 2px dashed #5E35B1;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-area:hover {
    background: #f8f9fa;
}

.upload-area i {
    font-size: 48px;
    color: #5E35B1;
    margin-bottom: 16px;
}

/* Color Result */
.color-result {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.selected-color {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.color-preview {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.color-values {
    flex: 1;
}

.color-values > div {
    margin: 5px 0;
    font-family: monospace;
    font-size: 14px;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
}

.history-color {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.history-color:hover {
    transform: scale(1.1);
}
