/**
 * CSV to Search — public styles.
 *
 * @package CsvToSearch
 */

.cts-wrap {
	max-width: 100%;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Tabs */
.cts-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 16px;
}

.cts-tab {
	padding: 10px 20px;
	border: none;
	color: #fff;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	border-radius: 4px 4px 0 0;
	transition: opacity 0.2s;
}

.cts-tab:hover,
.cts-tab:focus {
	opacity: 0.85;
}

.cts-tab.active {
	opacity: 1;
}

/* Search form */
.cts-search-form {
	margin-bottom: 20px;
}

.cts-input-group {
	display: flex;
	gap: 0;
}

.cts-input {
	flex: 1;
	padding: 8px 12px;
	font-size: 15px;
	border: 1px solid #ccc;
	border-right: none;
	border-radius: 4px 0 0 4px;
	outline: none;
}

.cts-input:focus {
	border-color: #0073aa;
	box-shadow: 0 0 0 1px #0073aa;
}

.cts-btn {
	padding: 8px 24px;
	color: #fff;
	border: none;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	border-radius: 0 4px 4px 0;
	transition: background-color 0.2s;
	white-space: nowrap;
}

/* Results */
.cts-result-count {
	margin: 16px 0 8px;
	font-size: 14px;
}

.cts-table-wrap {
	overflow-x: auto;
}

.cts-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.cts-table th,
.cts-table td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid #e5e5e5;
}

.cts-table th {
	font-weight: 600;
	background: #f7f7f7;
	white-space: nowrap;
}

.cts-table tr:hover td {
	background: #f9f9f9;
}

/* List display */
.cts-list-item {
	padding: 16px 0;
	border-bottom: 1px solid #e5e5e5;
}

.cts-list-item:last-child {
	border-bottom: none;
}

.cts-list-field {
	margin-bottom: 4px;
	font-size: 14px;
}

.cts-field-label {
	font-weight: 600;
}

/* Pagination */
.cts-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 20px;
}

.cts-page-btn {
	padding: 6px 12px;
	cursor: pointer;
	font-size: 14px;
	border: 1px solid;
	border-radius: 3px;
	transition: opacity 0.2s;
}

.cts-page-btn:hover,
.cts-page-btn:focus {
	opacity: 0.8;
}

/* Status messages */
.cts-no-results,
.cts-error,
.cts-searching {
	padding: 16px;
	font-size: 14px;
	border-radius: 4px;
}

.cts-no-results {
	background: #f0f0f1;
	color: #50575e;
}

.cts-error {
	background: #fcf0f1;
	color: #8a1f11;
}

.cts-searching {
	color: #666;
}

.cts-upgrade-notice {
	background: #fff8e5;
	border-left: 4px solid #ffb900;
	padding: 12px 16px;
	margin-bottom: 16px;
	font-size: 13px;
}

/* Responsive */
@media (max-width: 600px) {
	.cts-input-group {
		flex-direction: column;
	}

	.cts-input {
		border-right: 1px solid #ccc;
		border-radius: 4px 4px 0 0;
	}

	.cts-btn {
		border-radius: 0 0 4px 4px;
	}

	.cts-tabs {
		flex-direction: column;
	}

	.cts-tab {
		border-radius: 4px;
	}
}
