.seoimgbp-container {
    max-width: 1200px;
    margin: 20px 0;
}

.seoimgbp-header {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.seoimgbp-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.seoimgbp-stat-item {
    flex: 1;
}

.seoimgbp-stat-number {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.seoimgbp-stat-missing .seoimgbp-stat-number { 
    color: #dc3232; 
}

.seoimgbp-stat-compress .seoimgbp-stat-number { 
    color: #ffb900; 
}

.seoimgbp-stat-total .seoimgbp-stat-number { 
    color: #00a32a; 
}

.seoimgbp-stat-label {
    font-size: 0.9em;
    color: #666;
}

.seoimgbp-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.seoimgbp-search-wrapper {
    position: relative;
}

#seoimgbp-search {
    width: 300px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.seoimgbp-table-wrapper {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    overflow: hidden;
}

.seoimgbp-table {
    margin: 0;
}

.seoimgbp-table th {
    background: #f1f1f1;
    font-weight: 600;
}

.seoimgbp-image-cell {
    display: flex;
    align-items: center;
}

.seoimgbp-image-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
}

.seoimgbp-image-info h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
}

.seoimgbp-image-info p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.seoimgbp-alt-status {
    display: flex;
    align-items: center;
}

.seoimgbp-alt-missing {
    color: #dc3232;
    font-weight: 600;
}

.seoimgbp-alt-present {
    color: #00a32a;
}

.seoimgbp-size-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.seoimgbp-compress-badge {
    background: #ffb900;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.seoimgbp-compressing-badge {
    background: #0073aa;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.seoimgbp-post-link {
    color: #0073aa;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.seoimgbp-post-link:hover {
    text-decoration: underline;
}

.seoimgbp-actions {
    display: flex;
    gap: 8px;
}

.seoimgbp-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.seoimgbp-btn-edit {
    background: #0073aa;
    color: #fff;
}

.seoimgbp-btn-compress {
    background: #ffb900;
    color: #fff;
}

.seoimgbp-btn:hover {
    opacity: 0.8;
}

.seoimgbp-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.seoimgbp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.seoimgbp-pagination button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 3px;
}

.seoimgbp-pagination button:hover:not(:disabled) {
    background: #f1f1f1;
}

.seoimgbp-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.seoimgbp-pagination .active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.seoimgbp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seoimgbp-modal-content {
    background: #fff;
    border-radius: 4px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.seoimgbp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.seoimgbp-modal-header h3 {
    margin: 0;
}

.seoimgbp-modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.seoimgbp-modal-close:hover {
    color: #000;
}

.seoimgbp-modal-body {
    padding: 20px;
}

.seoimgbp-image-preview {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

#seoimgbp-modal-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.seoimgbp-image-info h4 {
    margin: 0 0 8px 0;
}

.seoimgbp-image-info p {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #666;
}

.seoimgbp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.seoimgbp-form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    box-sizing: border-box;
}

.seoimgbp-help-text {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

.seoimgbp-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #ddd;
}

.seoimgbp-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: seoimgbp-spin 1s linear infinite;
}

@keyframes seoimgbp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .seoimgbp-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .seoimgbp-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    #seoimgbp-search {
        width: 100%;
    }
    
    .seoimgbp-table-wrapper {
        overflow-x: auto;
    }
    
    .seoimgbp-image-preview {
        flex-direction: column;
    }
    
    #seoimgbp-modal-image {
        align-self: center;
    }
}