.palette-generator-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.palette-generator-upload h2 {
    color: #23282d;
    margin-bottom: 15px;
}

.upload-area {
    margin: 20px 0;
}

.upload-box {
    border: 2px dashed #ccc;
    border-radius: 5px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.upload-box:hover {
    border-color: #999;
}

.inputfile {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.upload-button {
    display: inline-block;
    padding: 12px 20px;
    background: #f0f0f0;
    color: #23282d;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-button:hover {
    background: #e5e5e5;
}

.upload-button .dashicons {
    vertical-align: middle;
    margin-right: 5px;
}

.file-info {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
}

.file-requirements {
    margin-top: 5px;
    font-size: 0.8em;
    color: #999;
}

.image-preview-container {
    margin: 30px 0;
}

.image-preview-container h3 {
    margin-bottom: 10px;
}

.image-preview-wrapper {
    max-width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.image-preview-wrapper img {
    display: block;
    max-width: 100%;
    height: auto;
}

.palette-results {
    margin: 30px 0;
}

.palette-results h3 {
    margin-bottom: 15px;
}

.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.color-swatch {
    width: 100px;
    height: 100px;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.color-swatch:hover {
    transform: scale(1.05);
}

.color-code {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    text-align: center;
    font-size: 0.8em;
    font-family: monospace;
}

.color-tooltip {
    position: absolute;
    top: -30px;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8em;
    opacity: 0;
    transition: opacity 0.2s ease, top 0.2s ease;
    pointer-events: none;
    white-space: nowrap;
}

.color-swatch:hover .color-tooltip {
    opacity: 1;
    top: 5px;
}

.download-button {
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.download-button:hover {
    background: #008ec2;
}

.palette-error {
    color: #dc3232;
    background: #f7f7f7;
    border-left: 4px solid #dc3232;
    padding: 12px;
    margin: 20px 0;
    display: none;
}

@media (max-width: 600px) {
    .color-swatch {
        width: 80px;
        height: 80px;
    }
    
    .upload-box {
        padding: 20px 10px;
    }
}