/**
 * SheetFusion — Block editor styles.
 * Loaded only inside the Gutenberg editor, never on the front end.
 *
 * @package SheetFusion
 */

/* ── Editor wrapper ──────────────────────────────────────────────────────── */

.sf-block-editor-wrapper {
	width: 100%;
}

/* ── Placeholder (no Sheet ID / Sheet Name set yet) ──────────────────────── */

.sf-block-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 140px;
	padding: 28px 20px;
	border: 2px dashed #c3c4c7;
	border-radius: 4px;
	background: #f6f7f7;
	text-align: center;
	box-sizing: border-box;
}

.sf-block-placeholder--configured {
	border-style: solid;
	border-color: #2271b1;
	background: #f0f6fc;
}

.sf-block-placeholder__icon .dashicons {
	font-size: 36px;
	width: 36px;
	height: 36px;
	color: #2271b1;
}

.sf-block-placeholder__label {
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
}

.sf-block-placeholder__instructions {
	font-size: 13px;
	color: #646970;
	max-width: 360px;
	line-height: 1.5;
}

/* ── Loading state (ServerSideRender fetching preview) ───────────────────── */

.sf-block-loading {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 16px;
	font-size: 13px;
	color: #646970;
}

/* Spin animation for the loading dashicon */
@keyframes sf-spin {
	from { transform: rotate( 0deg ); }
	to   { transform: rotate( 360deg ); }
}

.sf-spin {
	display: inline-block;
	animation: sf-spin 1s linear infinite;
}
