button .spinner {
	float: none;
	vertical-align: middle;
	margin: 0 4px 0 0;
}

#crp-post-list .ntdelbutton::before {
	background: none;
	color: #787c82;
	content: "\f153";
	display: block;
	font: normal 16px/20px dashicons;
	height: 20px;
	text-align: center;
	width: 20px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

#crp-post-list .ntdelbutton:hover:before {
	color: #d63638;
}

/* Drag and drop styling */
#crp-post-list {
	margin-top: 5px;
}

#crp-post-list li {
	cursor: move;
	margin-bottom: 5px;
	padding: 5px;
	border: 1px solid #dcdcde;
	background: #fff;
	position: relative;
	display: flex;
	align-items: center;
}

#crp-post-list li:hover {
	border-color: #8c8f94;
}

.crp-drag-handle {
	color: #787c82;
	margin-left: 5px;
	cursor: move;
}

.crp-drag-handle:hover {
	color: #2271b1;
}

.crp-sortable-placeholder {
	border: 1px dashed #b4b9be;
	background: #f8f8f8;
	height: 35px;
	margin-bottom: 5px;
}

a.crp_button {
	padding: 10px;
	text-decoration: none;
	text-shadow: none;
	border-radius: 3px;
	transition: all 0.3s ease 0s;
	margin-left: 10px;
	display: inline-block;
}

a.crp_button:hover {
	box-shadow: -3px 3px 10px #666;
}

a.crp_button.crp_button_green {
	color: #fff;
	background: #008000;
	border: 1px solid #003400;
}

a.crp_button.crp_button_green:hover {
	color: #fff;
	background: #006400;
}

a.crp_button.crp_button_red {
	color: #fff;
	background: #d63638;
	border: 1px solid #b92c2e;
}

a.crp_button.crp_button_red:hover {
	color: #fff;
	background: #b92c2e;
}

a.crp_button.crp_button_blue {
	color: #fff;
	background: #032075;
	border: 1px solid #001f5b;
}

a.crp_button.crp_button_blue:hover {
	color: #fff;
	background: #001f5b;
}

a.crp_button.crp_button_gold {
	color: #000;
	background: #ffbd59;
	border: 1px solid #ffa500;
}

a.crp_button.crp_button_gold:hover {
	color: #000;
	background: #ffa500;
}

/* Reindexing styles */
.dashicons.spin {
	-webkit-animation: crp-spin 2s infinite linear;
	animation: crp-spin 2s infinite linear;
}

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

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

/* Reindex Status Styling */
#crp-reindex-status {
	margin: 10px 0;
	padding: 10px 12px;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.5;
	border-right: 4px solid #72aee6;
	background-color: #f6f7f7;
	color: #000;
	transition: all 0.3s ease;
}

/* Success state - green with high contrast */
#crp-reindex-status.success {
	border-right-color: #00843c;
	background-color: #e6f6ed;
	color: #095228;
}

/* Error state - red with high contrast */
#crp-reindex-status.error {
	border-right-color: #b91c1c;
	background-color: #fce8e8;
	color: #7f1d1d;
}

/* Preparing state - blue with animation */
#crp-reindex-status.preparing {
	border-right-color: #2271b1;
	background-color: #f0f6fc;
	color: #135e96;
}

/* Progress bar animation */
@keyframes progress-bar-stripes {
	from {
		background-position: right 40px top 0;
	}
	to {
		background-position: 100% 0;
	}
}

/* Hover and focus states for better accessibility */
#crp-reindex-status:hover,
#crp-reindex-status:focus {
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

#crp-reindex-progress-container {
	display: none;
	margin-top: 10px;
}

#crp-reindex-progress-container.active {
	display: block;
}

.crp-progress-bar-wrapper {
	background: #e5e5e5;
	height: 25px;
	position: relative;
	border-radius: 3px;
	overflow: hidden;
}

#crp-progress-bar {
	background: #2271b1;
	height: 100%;
	transition: width 0.3s ease-in-out;
	border-radius: 3px;
}

#crp-progress-bar.preparing {
	background-image: linear-gradient(
		-45deg,
		rgba(255, 255, 255, 0.15) 25%,
		transparent 25%,
		transparent 50%,
		rgba(255, 255, 255, 0.15) 50%,
		rgba(255, 255, 255, 0.15) 75%,
		transparent 75%,
		transparent
	);
	background-size: 40px 40px;
	animation: progress-bar-stripes 2s linear infinite;
}

#crp-progress-text {
	position: absolute;
	right: 0;
	left: 0;
	top: 0;
	bottom: 0;
	color: #fff;
	text-align: center;
	line-height: 25px;
	font-weight: bold;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
}

/* Copy to clipboard button */
.crp-code-wrapper {
	position: relative;
}

.crp-code-wrapper pre {
	margin: 0;
	white-space: pre-wrap;
}

.crp-code-wrapper code {
	display: block;
}

.crp-copy-button {
	position: absolute;
	top: 1px;
	left: 1px;
	background: none;
	border: none;
	padding: 4px;
	cursor: pointer;
	color: #2271b1;
	transition: color 0.1s ease-in-out;
}

.crp-copy-button:hover {
	color: #135e96;
}

.crp-copy-button.copied {
	color: #00a32a;
}

/* Custom Tables Reindex Button Loading Animation */
#crp-start-reindex.loading.initial-loading {
	cursor: not-allowed;
	pointer-events: none;
}

#crp-start-reindex.loading:after,
.crp-reindex-progress.loading:after {
	content: "";
	display: inline-flex;
	width: 1em;
	height: 1em;
	border: 3px solid var(--wp-admin-theme-color, #ffffff);
	border-top-color: var(--wp-admin-theme-color-darker-20, #333333);
	border-left-color: var(--wp-admin-theme-color-darker-20, #333333);
	border-radius: 50%;
	animation: spin 2s linear infinite;
	-webkit-animation: spin 2s linear infinite;
	transform-origin: center center;
	vertical-align: middle;
	box-sizing: border-box;
	margin-right: 0.5em;
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(-360deg);
	}
}

@-webkit-keyframes spin {
	from {
		-webkit-transform: rotate(0deg);
	}

	to {
		-webkit-transform: rotate(-360deg);
	}
}

/* Network Tools Index Status Progress Bars */
.crp-index-status {
	position: relative;
	width: 100%;
	height: 24px;
	background: #f0f0f0;
	border-radius: 4px;
	overflow: hidden;
}

.crp-index-bar {
	height: 100%;
	transition: width 0.4s ease;
}

.crp-index-status span {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	text-align: center;
	line-height: 24px;
	font-weight: bold;
	color: #000;
	text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
}
