#rmbg-form {
    margin-top: 15px;
}

.rmbg-image-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rmbg-image-list li {
    margin: 0;
    border-bottom: none;
}

#rmbg_api_key {
    width: 400px;
}

.submit-wrapper {
    display: flex;
    align-items: center;
}

.submit-wrapper .button {
    margin-left: 10px;
}

.ml-10 {
    margin-left: 10px !important;
}

.rmbg-error-row {
    background-color: #ffebee !important;
    border-left: 4px solid #f44336 !important;
}

.rmbg-error-row:hover {
    background-color: #ffcdd2 !important;
}

.processed-image {
    background-color: #dff0d8 !important;
    opacity: 0.7;
}

.error-image {
    background-color: #f2dede !important;
}

#rmbg-remove-background.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Original and Output Image Display Styles - Inline Layout */
.rmbg-image-comparison {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    margin-left: 8px;
    padding: 6px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.rmbg-image-item {
    text-align: center;
    min-width: 0;
}

.rmbg-image-label {
    font-weight: 600;
    font-size: 11px;
    color: #333;
    margin-bottom: 4px;
    display: block;
    white-space: nowrap;
}

.rmbg-image-container {
    position: relative;
    display: inline-block;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.rmbg-image-container:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.rmbg-image-preview {
    width: 30px;
    height: 30px;
    object-fit: cover;
    display: block;
    border: none;
}

.rmbg-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.rmbg-image-container:hover .rmbg-image-overlay {
    opacity: 1;
}

.rmbg-external-link-icon {
    color: white;
    font-size: 20px;
    text-decoration: none;
}

.rmbg-external-link-icon:before {
    content: "\2197";
    font-weight: bold;
}

.rmbg-error-message {
    color: #d32f2f;
    font-size: 12px;
    font-style: italic;
    margin-top: 4px;
}

/* Row layout for main image and processed images */
.rmbg-image-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.rmbg-main-content {
    flex: 1;
    min-width: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .rmbg-image-row {
        flex-direction: column;
    }
    
    .rmbg-image-comparison {
        margin-left: 0;
        justify-content: center;
    }
    
    .rmbg-image-preview {
        width: 25px;
        height: 25px;
    }
    
    .rmbg-image-label {
        font-size: 10px;
    }
}