.bulk-page-dup-container {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 20px;
}

.bulk-page-dup-panel {
	flex: 1;
	min-width: 300px;
	background: #fff;
	padding: 20px;
	border-radius: 5px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bulk-page-dup-checkbox-group {
	margin-bottom: 20px;
}

.bulk-page-dup-checkbox-group label {
	display: block;
	margin-bottom: 8px;
}

.bulk-page-dup-progress-container {
	margin: 20px 0;
}

.bulk-page-dup-progress-bar {
	height: 20px;
	background-color: #f1f1f1;
	border-radius: 10px;
	margin-bottom: 10px;
	overflow: hidden;
}

.bulk-page-dup-progress-bar-inner {
	height: 100%;
	background-color: #0073aa;
	width: 0%;
	transition: width 0.3s;
}

.bulk-page-dup-log-container {
	margin-top: 20px;
}

.bulk-page-dup-log {
	background: #f9f9f9;
	border: 1px solid #e5e5e5;
	border-radius: 3px;
	padding: 10px;
	max-height: 300px;
	overflow-y: auto;
}

.bulk-page-dup-log-entry {
	margin-bottom: 5px;
	padding: 5px;
	border-radius: 3px;
}

.bulk-page-dup-log-success {
	background-color: #ecf9ec;
	border-left: 3px solid #46b450;
}

.bulk-page-dup-log-error {
	background-color: #f9ecec;
	border-left: 3px solid #dc3232;
}

.bulk-page-dup-log-skipped {
	background-color: #f9f9ec;
	border-left: 3px solid #ffb900;
}

/* Preview panel styles */
.bulk-page-dup-preview {
	background: #f9f9f9;
	border: 1px solid #e5e5e5;
	border-radius: 3px;
	padding: 15px;
	margin-bottom: 20px;
}

.preview-field {
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
}

.preview-field:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.preview-field label {
	font-weight: 600;
	color: #23282d;
	display: inline-block;
	width: 120px;
}

.preview-field span {
	color: #0073aa;
	word-break: break-word;
}

#preview-slug {
	font-family: monospace;
	background: #fff;
	padding: 2px 6px;
	border-radius: 3px;
	border: 1px solid #ddd;
}

#preview-count {
	font-weight: 600;
}

#preview-panel h2 {
	margin-top: 0;
}

#parent-page-section {
	margin-bottom: 15px;
}

/* Dry Run Modal Styles */
.bpd-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.bpd-modal-content {
	background: #fff;
	border-radius: 8px;
	max-width: 900px;
	width: 100%;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

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

.bpd-modal-header h2 {
	margin: 0;
	font-size: 18px;
	color: #1d2327;
}

.bpd-modal-close {
	background: none;
	border: none;
	font-size: 28px;
	cursor: pointer;
	color: #787c82;
	line-height: 1;
	padding: 0;
	width: 30px;
	height: 30px;
}

.bpd-modal-close:hover {
	color: #1d2327;
}

.bpd-modal-body {
	padding: 25px;
	overflow-y: auto;
	flex: 1;
}

.bpd-modal-footer {
	padding: 15px 25px;
	border-top: 1px solid #e5e5e5;
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

/* Dry Run Summary */
.bpd-dry-run-summary {
	display: flex;
	gap: 20px;
	margin-bottom: 25px;
}

.bpd-summary-item {
	flex: 1;
	text-align: center;
	padding: 20px;
	border-radius: 8px;
	background: #f9f9f9;
}

.bpd-summary-total {
	background: #f0f6fc;
	border: 1px solid #c5d9ed;
}

.bpd-summary-create {
	background: #ecf9ec;
	border: 1px solid #a7d7a7;
}

.bpd-summary-skip {
	background: #fef8e7;
	border: 1px solid #f0c33c;
}

.bpd-summary-count {
	display: block;
	font-size: 32px;
	font-weight: 600;
	line-height: 1.2;
}

.bpd-summary-total .bpd-summary-count {
	color: #0073aa;
}

.bpd-summary-create .bpd-summary-count {
	color: #46b450;
}

.bpd-summary-skip .bpd-summary-count {
	color: #996800;
}

.bpd-summary-label {
	font-size: 13px;
	color: #50575e;
	margin-top: 5px;
	display: block;
}

/* Dry Run Table */
.bpd-dry-run-list-wrapper {
	max-height: 400px;
	overflow-y: auto;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
}

.bpd-dry-run-table {
	margin: 0;
	border: none;
}

.bpd-dry-run-table thead th {
	position: sticky;
	top: 0;
	background: #f9f9f9;
	border-bottom: 1px solid #e5e5e5;
	font-weight: 600;
}

.bpd-dry-run-table td,
.bpd-dry-run-table th {
	padding: 10px 12px;
	vertical-align: middle;
}

.bpd-dry-run-table code {
	background: #f0f0f1;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 12px;
}

.bpd-status-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 500;
}

.bpd-status-create {
	background: #ecf9ec;
	color: #1e7e1e;
}

.bpd-status-skip {
	background: #fef8e7;
	color: #8a6d00;
}

.bpd-reason-row {
	background: #fef8e7;
}

.bpd-reason-row td {
	padding: 5px 12px 10px 12px;
	color: #8a6d00;
	border-top: none;
}

tr.bpd-status-create {
	background: #f9fff9;
}

tr.bpd-status-skip {
	background: #fffdf5;
}

/* CSV Import styles */
.csv-import-section {
	margin-bottom: 15px;
}

.csv-upload-area {
	border: 2px dashed #c3c4c7;
	border-radius: 5px;
	padding: 20px;
	text-align: center;
	background: #f9f9f9;
	transition: all 0.2s ease;
	margin-bottom: 10px;
}

.csv-upload-area:hover,
.csv-upload-area.drag-over {
	border-color: #0073aa;
	background: #f0f6fc;
}

.csv-upload-area .dashicons-upload {
	font-size: 32px;
	width: 32px;
	height: 32px;
	color: #c3c4c7;
	margin-bottom: 10px;
}

.csv-upload-area:hover .dashicons-upload,
.csv-upload-area.drag-over .dashicons-upload {
	color: #0073aa;
}

.csv-upload-area p {
	margin: 5px 0;
	color: #646970;
}

.csv-upload-area .description {
	font-size: 12px;
	margin-top: 10px;
}

#csv-preview {
	background: #e7f3e7;
	border: 1px solid #46b450;
	border-radius: 3px;
	padding: 10px 15px;
	margin-bottom: 10px;
}

.csv-file-info {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.csv-file-info .dashicons-media-spreadsheet {
	color: #46b450;
}

#csv-file-name {
	font-weight: 600;
}

#csv-clear {
	color: #b32d2e;
	margin-left: auto;
}

#csv-row-count {
	margin: 5px 0 0 0;
	font-size: 12px;
	color: #646970;
}

/* Enhanced Template Selector styles */
.template-selector-wrapper {
	position: relative;
}

.template-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	max-height: 300px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #ddd;
	border-top: none;
	border-radius: 0 0 3px 3px;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
	z-index: 1000;
}

.template-dropdown-item {
	display: flex;
	align-items: center;
	padding: 8px 12px;
	cursor: pointer;
	border-bottom: 1px solid #f0f0f0;
	transition: background 0.15s;
}

.template-dropdown-item:hover,
.template-dropdown-item.highlighted {
	background: #f0f7fc;
}

.template-dropdown-item:last-child {
	border-bottom: none;
}

.template-dropdown-thumb {
	width: 40px;
	height: 40px;
	margin-right: 10px;
	border-radius: 3px;
	object-fit: cover;
	background: #f0f0f0;
	flex-shrink: 0;
}

.template-dropdown-thumb.no-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	color: #999;
}

.template-dropdown-info {
	flex: 1;
	min-width: 0;
}

.template-dropdown-title {
	font-weight: 500;
	color: #23282d;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.template-dropdown-meta {
	font-size: 11px;
	color: #666;
	margin-top: 2px;
}

.template-dropdown-status {
	display: inline-block;
	padding: 1px 6px;
	border-radius: 3px;
	font-size: 10px;
	text-transform: uppercase;
	margin-right: 8px;
}

.template-dropdown-status.publish {
	background: #ecf9ec;
	color: #2e7d32;
}

.template-dropdown-status.draft {
	background: #fff3e0;
	color: #e65100;
}

.template-dropdown-status.private {
	background: #fce4ec;
	color: #c2185b;
}

.template-dropdown-empty {
	padding: 15px;
	text-align: center;
	color: #666;
}

/* Selected template info display */
.selected-template-info {
	display: flex;
	align-items: center;
	padding: 10px;
	margin-top: 10px;
	background: #f9f9f9;
	border: 1px solid #e5e5e5;
	border-radius: 3px;
}

.selected-template-info .template-thumbnail {
	width: 60px;
	height: 60px;
	margin-right: 12px;
	border-radius: 3px;
	overflow: hidden;
	background: #e0e0e0;
	flex-shrink: 0;
}

.selected-template-info .template-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.selected-template-info .template-thumbnail .no-thumbnail {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 11px;
	color: #999;
	text-align: center;
}

.selected-template-info .template-details {
	flex: 1;
	min-width: 0;
}

.selected-template-info .template-details strong {
	display: block;
	color: #23282d;
	font-size: 14px;
	margin-bottom: 4px;
}

.selected-template-info .template-meta {
	font-size: 12px;
	color: #666;
}

/* History/Rollback section styles */
.bulk-page-dup-history-container {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}

.bulk-page-dup-history-item {
	background: #f9f9f9;
	border: 1px solid #e5e5e5;
	border-radius: 3px;
	padding: 12px;
	margin-bottom: 10px;
}

.bulk-page-dup-history-item:last-child {
	margin-bottom: 0;
}

.history-item-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 8px;
}

.history-item-info {
	flex: 1;
}

.history-item-title {
	font-weight: 600;
	color: #23282d;
	margin-bottom: 4px;
}

.history-item-meta {
	font-size: 12px;
	color: #666;
}

.selected-template-info .template-status {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 11px;
	text-transform: uppercase;
	margin-right: 10px;
}

.selected-template-info .template-status.publish {
	background: #ecf9ec;
	color: #2e7d32;
}

.selected-template-info .template-status.draft {
	background: #fff3e0;
	color: #e65100;
}

.selected-template-info .template-status.private {
	background: #fce4ec;
	color: #c2185b;
}

#clear-template {
	margin-left: 10px;
	padding: 0 8px;
	min-height: 28px;
	line-height: 26px;
	font-size: 16px;
	color: #a00;
}

#clear-template:hover {
	color: #dc3232;
	border-color: #dc3232;
}

/* Results log improvements */
.results-summary {
	display: flex;
	gap: 15px;
	margin-bottom: 12px;
	padding: 10px;
	background: #f9f9f9;
	border-radius: 3px;
}

.summary-item {
	padding: 5px 12px;
	border-radius: 3px;
	font-size: 13px;
	font-weight: 500;
}

.summary-item span {
	font-weight: 700;
	margin-right: 3px;
}

.summary-success {
	background: #ecf9ec;
	color: #2e7d32;
}

.summary-skipped {
	background: #fff8e5;
	color: #826200;
}

.summary-error {
	background: #f9ecec;
	color: #a00;
}

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

.log-filters {
	display: flex;
	gap: 5px;
}

.log-filter.active {
	background: #0073aa;
	color: #fff;
	border-color: #0073aa;
}

.log-actions {
	display: flex;
	gap: 5px;
}

/* Progress feedback styles */
.bulk-page-dup-progress-details {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin: 10px 0;
	font-size: 13px;
}

#progress-current-item {
	color: #0073aa;
	font-style: italic;
}

#progress-eta {
	color: #666;
	font-weight: 500;
}

/* Taxonomy section styles */
#taxonomy-section {
	margin-bottom: 15px;
}

.taxonomy-group {
	margin-bottom: 15px;
	padding: 10px;
	background: #f9f9f9;
	border: 1px solid #e5e5e5;
	border-radius: 3px;
}

.taxonomy-group h4 {
	margin: 0 0 10px 0;
	font-size: 13px;
	color: #23282d;
}

.taxonomy-terms {
	max-height: 150px;
	overflow-y: auto;
}

.taxonomy-terms label {
	display: block;
	margin-bottom: 5px;
	font-size: 13px;
}

.taxonomy-terms input[type="checkbox"] {
	margin-right: 5px;
}

.taxonomy-empty {
	color: #666;
	font-style: italic;
	font-size: 12px;
}

/* Validation styles */
.validation-message {
	margin-top: 8px;
	padding: 8px 12px;
	border-radius: 3px;
	font-size: 13px;
}

.validation-message.error {
	background: #f9ecec;
	border-left: 3px solid #dc3232;
	color: #a00;
}

.validation-message.warning {
	background: #fff8e5;
	border-left: 3px solid #ffb900;
	color: #826200;
}

.validation-message.success {
	background: #ecf9ec;
	border-left: 3px solid #46b450;
	color: #2e7d32;
}

.validation-message.info {
	background: #e8f4fd;
	border-left: 3px solid #0073aa;
	color: #004a73;
}

.values-info {
	margin-top: 8px;
	font-size: 13px;
	color: #666;
}

.values-info .warning {
	color: #826200;
	margin-left: 10px;
}

.values-info .warning::before {
	content: "⚠ ";
}

/* Input validation states */
#placeholder-text.has-error,
#replacement-values.has-error {
	border-color: #dc3232;
}

#placeholder-text.has-warning,
#replacement-values.has-warning {
	border-color: #ffb900;
}

#placeholder-text.has-success,
#replacement-values.has-success {
	border-color: #46b450;
}