/**
 * Image Cleanup Manager Admin Styles
 */

.image-cleanup-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.image-cleanup-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    flex-basis: calc(50% - 10px);
    min-width: 300px;
}

.image-cleanup-card h2 {
    margin-top: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.scan-results {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.size-options {
    margin: 15px 0;
}

.size-options label {
    display: block;
    margin-bottom: 8px;
}

.image-count {
    display: inline-block;
    background: #f0f0f0;
    border-radius: 3px;
    padding: 0 6px;
    margin-left: 5px;
    font-size: 12px;
    color: #666;
}

.action-buttons {
    margin: 20px 0;
}

.results-preview {
    margin-top: 15px;
}

#images-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.preview-image-container {
    position: relative;
    width: 100px;
    height: 100px;
    border: 1px solid #ddd;
    background: #f7f7f7;
    overflow: hidden;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.preview-image-size {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 10px;
    padding: 3px;
    text-align: center;
}

.progress-bar {
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 3px;
    margin: 10px 0;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: #2271b1;
    width: 0;
    transition: width 0.3s;
}

.status-message {
    margin: 10px 0;
    padding: 10px;
    border-left: 4px solid #00a32a;
    background: #f0f6fc;
}

.status-message.error {
    border-color: #d63638;
}

#trash-stats {
    background: #f7f7f7;
    padding: 10px;
    border-radius: 3px;
    margin-bottom: 15px;
}

/* Loading spinner */
.spinner-container {
    display: inline-block;
    margin-left: 5px;
    vertical-align: middle;
}

.spinner {
    background: url(spinner.gif) no-repeat;
    background-size: 20px 20px;
    display: inline-block;
    visibility: hidden;
    vertical-align: middle;
    opacity: 0.7;
    width: 20px;
    height: 20px;
}

.spinner.is-active {
    visibility: visible;
}

@media screen and (max-width: 782px) {
    .image-cleanup-card {
        flex-basis: 100%;
    }
}