/* =============================================================================
   Manfiet Migration Page Styles
   ============================================================================= */

/* ── Layout ───────────────────────────────────────────────────────────────── */

.manfiet-migration-wrap {
	max-width: 1200px;
}

/* ── Header ───────────────────────────────────────────────────────────────── */

.manfiet-migration-header {
	background: linear-gradient(135deg, #1e3a5f 0%, #0f5499 50%, #1a6ab5 100%);
	border-radius: 14px;
	padding: 36px 40px;
	margin-bottom: 32px;
	position: relative;
	overflow: hidden;
}

.manfiet-migration-header::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 80% 50%, rgba(255,255,255,0.07) 0%, transparent 65%);
	pointer-events: none;
}

.manfiet-migration-title {
	color: #fff;
	font-size: 26px;
	font-weight: 700;
	margin: 0 0 8px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.manfiet-migration-icon {
	font-size: 28px;
}

.manfiet-migration-subtitle {
	color: rgba(255,255,255,0.78);
	font-size: 14px;
	margin: 0;
	max-width: 600px;
	line-height: 1.6;
}

/* ── Two-column grid ──────────────────────────────────────────────────────── */

.manfiet-migration-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
	margin-bottom: 28px;
}

@media (max-width: 900px) {
	.manfiet-migration-grid {
		grid-template-columns: 1fr;
	}
}

/* ── Card ─────────────────────────────────────────────────────────────────── */

.manfiet-migration-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 32px 36px;
	box-shadow: 0 4px 24px rgba(0,0,0,0.06);
	transition: box-shadow 0.2s ease;
}

.manfiet-migration-card:hover {
	box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}

.manfiet-migration-card-header {
	margin-bottom: 28px;
}

.manfiet-migration-card-icon {
	width: 52px;
	height: 52px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	margin-bottom: 16px;
}

.manfiet-migration-card-icon--export {
	background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
	color: #2e7d32;
}

.manfiet-migration-card-icon--import {
	background: linear-gradient(135deg, #e3f2fd, #bbdefb);
	color: #1565c0;
}

.manfiet-migration-card-icon--rollback {
	background: linear-gradient(135deg, #ffebee, #ffcdd2);
	color: #c62828;
}

.manfiet-migration-card-title {
	font-size: 18px;
	font-weight: 700;
	color: #1e293b;
	margin: 0 0 6px;
}

.manfiet-migration-card-desc {
	font-size: 13px;
	color: #64748b;
	margin: 0;
	line-height: 1.5;
}

/* ── Section ──────────────────────────────────────────────────────────────── */

.manfiet-migration-section {
	margin-bottom: 24px;
}

.manfiet-migration-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #475569;
	margin-bottom: 12px;
}

.manfiet-migration-hint {
	font-size: 12px;
	color: #94a3b8;
	margin: -6px 0 12px;
	line-height: 1.5;
}

/* ── Checkboxes ───────────────────────────────────────────────────────────── */

.manfiet-migration-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 9px 12px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 13.5px;
	color: #1e293b;
	transition: background 0.15s ease;
	margin-bottom: 4px;
	line-height: 1.4;
}

.manfiet-migration-check:hover {
	background: #f8fafc;
}

.manfiet-migration-check--all {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	font-weight: 600;
	margin-bottom: 12px;
}

.manfiet-migration-check--all:hover {
	background: #dcfce7;
}

.manfiet-migration-check--warning {
	background: #fffbeb;
	border: 1px solid #fde68a;
}

.manfiet-migration-check--warning:hover {
	background: #fef3c7;
}

.manfiet-migration-check input[type="checkbox"] {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	margin-top: 1px;
	cursor: pointer;
	accent-color: #0f5499;
}

.manfiet-migration-checks-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2px;
}

@media (max-width: 640px) {
	.manfiet-migration-checks-grid {
		grid-template-columns: 1fr;
	}
}

.manfiet-migration-warn-note {
	display: block;
	font-size: 12px;
	color: #b45309;
	margin-top: 3px;
	font-style: normal;
}

/* ── Divider ──────────────────────────────────────────────────────────────── */

.manfiet-migration-divider {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 14px 0;
	color: #94a3b8;
	font-size: 12px;
}

.manfiet-migration-divider::before,
.manfiet-migration-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #e2e8f0;
}

/* ── Granular section ─────────────────────────────────────────────────────── */

.manfiet-migration-section--granular {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 18px 20px;
}

.manfiet-migration-radio-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.manfiet-migration-radio {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 13.5px;
	color: #334155;
	cursor: pointer;
	padding: 6px 4px;
}

.manfiet-migration-radio input[type="radio"] {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	cursor: pointer;
	accent-color: #0f5499;
}

.manfiet-migration-select {
	flex: 1;
	min-width: 140px;
	max-width: 260px;
	height: 34px;
	padding: 0 10px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 13px;
	color: #1e293b;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s;
}

.manfiet-migration-select:focus {
	outline: none;
	border-color: #0f5499;
	box-shadow: 0 0 0 3px rgba(15,84,153,0.12);
}

/* ── File drop zone ───────────────────────────────────────────────────────── */

.manfiet-migration-file-drop {
	position: relative;
	border: 2px dashed #cbd5e1;
	border-radius: 10px;
	padding: 28px 20px;
	text-align: center;
	background: #f8fafc;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.manfiet-migration-file-drop:hover {
	border-color: #0f5499;
	background: #eff6ff;
}

.manfiet-migration-file-drop input[type="file"] {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
	width: 100%;
	height: 100%;
}

.manfiet-migration-file-drop-text {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	pointer-events: none;
	color: #64748b;
	font-size: 13.5px;
	line-height: 1.5;
}

.manfiet-migration-file-icon {
	font-size: 32px;
	display: block;
	margin-bottom: 4px;
}

.manfiet-migration-file-name {
	font-weight: 600;
	color: #0f5499;
	font-size: 13px;
	word-break: break-all;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.manfiet-migration-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 26px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	transition: all 0.18s ease;
	width: 100%;
	justify-content: center;
	margin-top: 8px;
}

.manfiet-migration-btn-icon {
	font-size: 16px;
}

.manfiet-migration-btn--export {
	background: linear-gradient(135deg, #2e7d32, #43a047);
	color: #fff;
	box-shadow: 0 4px 14px rgba(46,125,50,0.30);
}

.manfiet-migration-btn--export:hover {
	background: linear-gradient(135deg, #1b5e20, #2e7d32);
	box-shadow: 0 6px 20px rgba(46,125,50,0.40);
	transform: translateY(-1px);
}

.manfiet-migration-btn--import {
	background: linear-gradient(135deg, #1565c0, #1976d2);
	color: #fff;
	box-shadow: 0 4px 14px rgba(21,101,192,0.30);
}

.manfiet-migration-btn--import:hover {
	background: linear-gradient(135deg, #0d47a1, #1565c0);
	box-shadow: 0 6px 20px rgba(21,101,192,0.40);
	transform: translateY(-1px);
}

.manfiet-migration-btn--rollback {
	background: linear-gradient(135deg, #c62828, #e53935);
	color: #fff;
	box-shadow: 0 4px 14px rgba(198,40,40,0.30);
}

.manfiet-migration-btn--rollback:hover {
	background: linear-gradient(135deg, #b71c1c, #c62828);
	box-shadow: 0 6px 20px rgba(198,40,40,0.40);
	transform: translateY(-1px);
}

/* ── Import results ───────────────────────────────────────────────────────── */

.manfiet-migration-results {
	border-radius: 12px;
	padding: 24px 28px;
	margin-bottom: 28px;
	border: 1px solid;
}

.manfiet-migration-results--success {
	background: #f0fdf4;
	border-color: #86efac;
}

.manfiet-migration-results--error {
	background: #fef2f2;
	border-color: #fca5a5;
}

.manfiet-migration-results-title {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 16px;
	color: #1e293b;
}

.manfiet-migration-results-error {
	color: #dc2626;
	margin: 0;
	font-size: 14px;
}

.manfiet-migration-results-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
}

.manfiet-migration-results-table th {
	text-align: left;
	padding: 8px 14px;
	background: rgba(0,0,0,0.04);
	font-weight: 600;
	color: #475569;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.manfiet-migration-results-table td {
	padding: 9px 14px;
	border-top: 1px solid rgba(0,0,0,0.06);
	color: #1e293b;
}

.manfiet-migration-count {
	font-weight: 700;
	font-family: 'SFMono-Regular', 'Consolas', monospace;
	font-size: 15px;
}

.manfiet-migration-count--inserted { color: #16a34a; }
.manfiet-migration-count--skipped  { color: #ca8a04; }
.manfiet-migration-count--errors   { color: #dc2626; }

.manfiet-migration-notices {
	margin: 14px 0 0;
	padding: 12px 16px;
	background: rgba(0,0,0,0.03);
	border-radius: 8px;
	list-style: disc;
	padding-left: 32px;
	font-size: 13px;
	color: #475569;
}

.manfiet-migration-notices li {
	margin-bottom: 4px;
}

/* ── Info bar ─────────────────────────────────────────────────────────────── */

.manfiet-migration-info-bar {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 18px 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 18px 40px;
}

.manfiet-migration-info-item {
	font-size: 13px;
	color: #64748b;
	line-height: 1.5;
	flex: 1;
	min-width: 200px;
}

.manfiet-migration-info-item strong {
	color: #334155;
}
