/* Basic styles for BugWP Rollback plugin */
.bugwp-search-widget {
    max-width: 600px;
    margin: 1em auto;
}

.bugwp-search-label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.bugwp-search-input {
    width: 100%;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.bugwp-search-results {
    position: relative;
    margin-top: 4px;
    border: 1px solid #ddd;
    background: #fff;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.bugwp-search-results .bugwp-result-item {
    display: flex;
    align-items: flex-start;
    padding: 8px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.bugwp-search-results .bugwp-result-item:hover {
    background-color: #f5f5f5;
}

.bugwp-result-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    flex-shrink: 0;
}

.bugwp-result-details {
    flex-grow: 1;
}

.bugwp-result-details .result-name {
    font-weight: 600;
    margin-bottom: 2px;
}
.bugwp-result-details .result-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.bugwp-result-meta {
    font-size: 12px;
    color: #888;
}

/* Plugin page styles */
.bugwp-plugin-page .plugin-header {
    background: #fafafa;
    padding: 20px;
    border: 1px solid #e5e5e5;
    margin-bottom: 20px;
    text-align: center;
}

.bugwp-plugin-page .plugin-header img.plugin-icon {
    border-radius: 8px;
    margin-bottom: 10px;
}

.bugwp-versions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.bugwp-versions-table th, .bugwp-versions-table td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}

.bugwp-versions-table .bugwp-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    margin-left: 6px;
    color: #fff;
}

.bugwp-badge.recommended {
    background-color: #2d9d2d;
}

.bugwp-badge.dangerous {
    background-color: #c43c35;
}

.version-filters {
    margin-bottom: 10px;
}
.version-filter {
    margin-right: 8px;
    padding: 6px 12px;
    border: none;
    background-color: #f0f0f0;
    cursor: pointer;
    border-radius: 3px;
    font-size: 14px;
}
.version-filter:hover {
    background-color: #e0e0e0;
}

.version-row.older-than-10 {
    display: table-row;
}

/* Hide by default major filter classes; JS toggles them */
/* We'll not hide by CSS but JS will handle */

/* Version page styles */
.bugwp-version-page .version-header {
    background: #fafafa;
    padding: 20px;
    border: 1px solid #e5e5e5;
    margin-bottom: 20px;
    text-align: center;
}
.bugwp-version-page .version-download {
    padding: 20px;
    border: 1px solid #e5e5e5;
    background: #fff;
}