#previewContainer img {
    max-width: 100%;
    max-height: 400px;
    border: 2px solid #ddd;
    border-radius: 10px;
    margin-top: 15px;
    object-fit: contain;
}


.color-box {
    width: 100px;
    height: 100px;
    margin: 10px;
    border-radius: 8px;
    position: relative;
    text-align: center;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.color-box:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.color-hex {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.4);
    padding: 3px;
}

.copied-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: #fff;
    padding: 3px 6px;
    border-radius: 5px;
    font-size: 12px;
    animation: fadeOut 1s forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.saved-palette {
    display: flex;
    margin: 10px;
    overflow: hidden;
}

.saved-color {
    width: 40px;
    height: 40px;
}

.saved-color:first-child {
    border-radius: 5px 0 0 5px;
}

.saved-color:last-child {
    border-radius: 0 5px 5px 0;
}

.delete-palette {
    padding: 3px 6px;
    font-size: 14px;
    line-height: 1;
}

#harmonyContainer .card {
    overflow: hidden;
}

#harmonyContainer .card-header {
    background: #f8f9fa;
    font-size: 16px;
}

#harmonyContainer .color-box {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
}

#harmonyContainer .color-hex {
    position: absolute;
    bottom: 5px;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 2px 4px;
}

#savedPalettesContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#contrastResults table td {
    vertical-align: middle;
    font-weight: bold;
}

.bg-color-option {
    min-width: 100px;
}

.bg-color-option:hover {
    transform: scale(1.05);
    border: 1px solid #C3002F !important;
}

.bg-color-option.selected {
    border: 1px solid #C3002F !important;
}

.color-preview {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    display: inline-block;
    border: 1px solid #ccc;
}