/* RAAIID workshop UI — loaded by plugin; do not duplicate in ACF fields. */

.raaiid-workshop-subtabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	align-items: flex-end;
	border-bottom: 1px solid #cbd5e1;
	margin-bottom: 16px;
	padding-bottom: 0;
}

.raaiid-workshop-subtab {
	padding: 8px 16px 10px;
	border: 1px solid transparent;
	border-bottom: none;
	border-radius: 8px 8px 0 0;
	background: #e2e8f0;
	color: #64748b;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	margin-right: 4px;
	margin-bottom: -1px;
	box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.04);
}

.raaiid-workshop-subtab:hover {
	background: #f1f5f9;
	color: #475569;
}

.raaiid-workshop-subtab.is-active {
	background: #fff;
	color: #0f172a;
	border-color: #cbd5e1;
	border-bottom-color: #fff;
	box-shadow: 0 -1px 0 #fff;
	z-index: 1;
	position: relative;
}

/* Paste vs upload switch — hide native checkbox completely (avoids “blue dot” bleed-through). */
.raaiid-toggle-shell {
	position: relative;
	width: 48px;
	height: 26px;
	display: inline-block;
	flex-shrink: 0;
	vertical-align: middle;
	overflow: hidden;
	border-radius: 999px;
}

.raaiid-toggle-shell .raaiid-toggle-bg {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	pointer-events: none;
	z-index: 0;
	transition: background 0.2s ease;
}

.raaiid-toggle-shell .raaiid-toggle-knob {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
	pointer-events: none;
	z-index: 1;
	transition: transform 0.2s ease;
}

.raaiid-toggle-shell input[type="checkbox"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 2;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	outline: none;
}

.raaiid-toggle-shell:has(input:focus-visible) {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #6366f1;
}

/* Tab 4: full-width Kanban status board */
.raaiid-kanban-fullwidth-root {
	width: 100%;
	max-width: none;
}

.raaiid-kanban-board {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	align-items: start;
	overflow-x: auto;
	padding-bottom: 6px;
}

@media (max-width: 760px) {
	.raaiid-kanban-board {
		grid-template-columns: 1fr;
	}
}

.raaiid-kanban-lane {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	min-height: 300px;
	display: flex;
	flex-direction: column;
}

.raaiid-kanban-lane-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px;
	border-bottom: 1px solid #e2e8f0;
	font-size: 12px;
	color: #334155;
}

.raaiid-kanban-lane-head > span {
	background: #e2e8f0;
	color: #334155;
	border-radius: 999px;
	padding: 1px 8px;
	font-size: 11px;
	font-weight: 600;
}

.raaiid-kanban-lane-body {
	padding: 10px;
	min-height: 220px;
}

.raaiid-kanban-empty {
	margin: 0;
	font-size: 12px;
	color: #94a3b8;
	padding: 8px 2px;
}

.raaiid5-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 10px;
	margin-bottom: 8px;
}

.raaiid5-title {
	margin: 0 0 6px;
	font-size: 12px;
	line-height: 1.45;
	color: #0f172a;
	font-weight: 600;
}

.raaiid5-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
	font-size: 10px;
	color: #64748b;
}

.raaiid5-chip {
	display: inline-block;
	border-radius: 999px;
	padding: 2px 7px;
	background: #f1f5f9;
	font-size: 10px;
	font-weight: 600;
	color: #475569;
}

.raaiid5-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.raaiid5-actions .raaiid5-link {
	font-size: 11px;
	text-decoration: underline;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	color: #4f46e5;
}

.raaiid5-actions .raaiid5-link.delete {
	color: #b91c1c;
}

.raaiid5-actions select {
	font-size: 11px;
	padding: 3px 6px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #fff;
	color: #334155;
}

.raaiid5-card[draggable="true"] {
	cursor: grab;
}

.raaiid5-card.raaiid5-dragging {
	opacity: 0.65;
	cursor: grabbing;
}

.raaiid-kanban-lane-body.raaiid5-drop-hover {
	outline: 2px dashed #6366f1;
	outline-offset: -2px;
	background: #eef2ff;
}

/* Kanban edit modal */
.raaiid5-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(15, 23, 42, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}

.raaiid5-modal {
	background: #fff;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	max-width: 720px;
	width: 100%;
	max-height: 90vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.raaiid5-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	border-bottom: 1px solid #e2e8f0;
	flex-shrink: 0;
}

.raaiid5-modal-title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: #0f172a;
}

.raaiid5-modal-close {
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	color: #64748b;
	cursor: pointer;
	padding: 0 4px;
}

.raaiid5-modal-close:hover {
	color: #0f172a;
}

.raaiid5-modal-body {
	padding: 16px 18px;
	overflow: auto;
	flex: 1;
}

/* Full card inside modal: drop outer margin from builder */
.raaiid5-modal-body .raaiid4-card {
	margin-bottom: 0;
}
