/* Utility classes */
.csv-importer__hidden {
	display: none !important;
}

.csv-importer {
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 1.5rem;
	background: #fafafa;
	transition: all 0.2s ease;
}

.csv-importer:hover {
	border-color: #1976d2;
	background: #f9f9f9;
}

.csv-importer h3 {
	margin: 0 0 0.5rem 0;
	font-size: 1.1rem;
	font-weight: 600;
	color: #333;
}

.csv-importer p {
	margin: 0 0 1rem 0;
	font-size: 0.9rem;
	color: #666;
}

.csv-importer-file-input {
	margin-bottom: 1rem;
}

.csv-importer-file-input input {
	width: 100%;
	padding: 0.5rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 0.9rem;
	background: white;
}

.csv-importer-file-input input:focus {
	outline: none;
	border-color: #1976d2;
	box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

.csv-importer-page-selector {
	margin-bottom: 1rem;
}

.csv-importer-page-selector label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
	font-weight: 500;
	color: #333;
}

/* Autocomplete styles */
.csv-importer-autocomplete-wrapper {
	position: relative;
	width: 100%;
}

.csv-importer-autocomplete-input {
	width: 100%;
	padding: 0.5rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 0.9rem;
	background: white;
	box-sizing: border-box;
}

.csv-importer-autocomplete-input:focus {
	outline: none;
	border-color: #1976d2;
	box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

.csv-importer-autocomplete-dropdown {
	display: none;
	position: absolute;
	z-index: 1000;
	background: white;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	max-height: 300px;
	overflow-y: auto;
	width: 100%;
	margin-top: 2px;
}

.csv-importer-autocomplete-dropdown--visible {
	display: block;
}

.csv-importer-autocomplete-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.csv-importer-autocomplete-option {
	padding: 0.6rem;
	cursor: pointer;
	transition: background-color 0.2s;
	font-size: 0.9rem;
}

.csv-importer-autocomplete-option:hover {
	background-color: #f5f5f5;
}

.csv-importer-file-info {
	background: white;
	border: 1px solid #e0e0e0;
	padding: 0.75rem;
	border-radius: 4px;
	margin-bottom: 1rem;
	font-size: 0.85rem;
	text-align: left;
	color: #555;
}

.csv-importer-file-info #csv-importer-fileDetails {
	margin-bottom: 0.75rem;
}

.csv-importer-upload-button {
	background: linear-gradient(135deg, #1976d2, #1565c0);
	color: white;
	border: none;
	padding: 0.6rem 1.2rem;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 500;
	transition: all 0.2s ease;
	box-shadow: 0 2px 4px rgba(25, 118, 210, 0.2);
	min-width: 120px;
}

.csv-importer-upload-button:hover:not(:disabled) {
	background: linear-gradient(135deg, #1565c0, #0d47a1);
	box-shadow: 0 4px 8px rgba(25, 118, 210, 0.3);
}

.csv-importer-upload-button:disabled {
	background: #e0e0e0;
	color: #9e9e9e;
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

.csv-importer-upload-button:active:not(:disabled) {
	box-shadow: 0 2px 4px rgba(25, 118, 210, 0.2);
}

.csv-importer-result {
	margin-top: 1rem;
	border-radius: 4px;
	font-size: 0.9rem;
	text-align: left;
	padding: 1rem;
	background-color: white;
	border: 1px solid #e0e0e0;
}

.csv-importer__success {
	color: #2e7d32;
	border: 1px solid #a5d6a7;
}

.csv-importer__error {
	background: #ffebee;
	color: #c62828;
	border: 1px solid #ef9a9a;
}

.csv-importer__info {
	background: #e3f2fd;
	color: #1976d2;
	border: 1px solid #90caf9;
}

.csv-importer__spinner {
	display: inline-block;
	width: 0.9rem;
	height: 0.9rem;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: white;
	animation: spin 0.8s linear infinite;
	margin-right: 0.5rem;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* File input styling */
.csv-importer-styled-file-input {
	padding: 8px 12px;
	border: 2px solid #ddd;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	font-size: 14px;
	transition: border-color 0.2s;
	margin-bottom: 1rem;
}

.csv-importer-styled-file-input:hover {
	border-color: #007acc;
}

/* File details container */
.csv-importer-file-details {
	margin-bottom: 1rem;
}

/* Import progress styling */
.csv-importer-import-progress {
	background: #e3f2fd;
	border: 1px solid #1976d2;
	padding: 1rem;
	border-radius: 4px;
}

.csv-importer-import-progress-content {
	margin-top: 0.5rem;
}

.csv-importer-progress-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.5rem;
}

.csv-importer-progress-status {
	font-weight: 500;
	color: var(--status-color, #1976d2);
}

.csv-importer-progress-percentage {
	font-size: 0.9rem;
}

.csv-importer-progress-bar {
	width: 100%;
	background-color: #e0e0e0;
	border-radius: 4px;
	height: 8px;
	overflow: hidden;
}

.csv-importer-progress-bar-fill {
	height: 100%;
	width: var(--progress-width, 0%);
	background-color: var(--status-color, #1976d2);
	transition: width 0.3s ease;
}

.csv-importer-progress-details {
	margin-top: 0.5rem;
	font-size: 0.85rem;
	color: #666;
}

.csv-importer-progress-processing {
	margin-top: 0.5rem;
	font-size: 0.85rem;
	color: #1976d2;
}

/* Import summary styling */
.csv-importer-import-summary {
	margin-top: 1rem;
	padding: 1rem;
	border-radius: 4px;
	font-size: 0.9rem;
	border: 1px solid #e0e0e0;
	background: #fafafa;
	color: #333;
}

.csv-importer-summary-title {
	color: #333;
}

.csv-importer-summary-header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.csv-importer-summary-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	color: #333;
}

.csv-importer-summary-grid div {
	padding: 0.5rem;
	border-radius: 3px;
	background: #fff;
	border: 1px solid #e0e0e0;
	color: #333;
}

/* Error message styling */
.csv-importer-concurrent-error {
	background: #ffebee;
	border: 1px solid #ef9a9a;
	padding: 1rem;
	border-radius: 4px;
	margin: 0 0 1rem 0;
}

/* Checkbox and label styling */
.csv-importer-checkbox-container {
	display: flex !important;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9rem;
	margin-bottom: 1rem;
}

.csv-importer-checkbox-container input[type="checkbox"] {
	margin: 0;
	width: 16px;
	height: 16px;
	cursor: pointer;
}

.csv-importer-checkbox-label {
	font-weight: 500;
}

.csv-importer-checkbox-warning {
	font-size: 0.8rem;
	color: #666;
	margin-left: 2.25rem;
	margin-top: -0.5rem;
}

.csv-importer-field-hint {
	font-size: 0.8rem;
	color: #666;
	margin-left: 0.5rem;
	margin-top: -0.5rem;
}

/* Cancel button styling */
.csv-importer-cancel-button {
	background: linear-gradient(135deg, #1976d2, #1565c0);
	color: white;
	border: none;
	padding: 0.5rem 1rem;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.85rem;
	font-weight: 500;
	transition: all 0.2s ease;
	box-shadow: 0 2px 4px rgba(25, 118, 210, 0.2);
}

.csv-importer-cancel-button:hover:not(:disabled) {
	background: linear-gradient(135deg, #1565c0, #0d47a1);
	box-shadow: 0 4px 8px rgba(25, 118, 210, 0.3);
}

.csv-importer-cancel-button:disabled {
	background: #e0e0e0;
	color: #9e9e9e;
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

.csv-importer-cancel-button:active:not(:disabled) {
	box-shadow: 0 2px 4px rgba(25, 118, 210, 0.2);
}

/* Queued status styling */
.csv-importer-progress-queued {
	margin-top: 0.5rem;
	font-size: 0.85rem;
	color: #1976d2;
}
