/* ==========================================================
   SheetFusion – Admin Styles
   ========================================================== */

/* ── Page header ─────────────────────────────────────────── */
.sf-admin-wrap {
	max-width: 1100px;
}

.sf-admin-header {
	background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
	color: #fff;
	padding: 24px 28px;
	border-radius: 8px;
	margin: 20px 0 24px;
	box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.sf-admin-header__brand {
	display: flex;
	align-items: center;
	gap: 10px;
}

.sf-admin-header__brand h1 {
	color: #fff;
	font-size: 1.6em;
	margin: 0;
}

.sf-logo-icon {
	font-size: 26px !important;
	line-height: 1 !important;
}

.sf-admin-header__tagline {
	margin: 6px 0 0;
	opacity: 0.85;
	font-size: 0.95em;
}

/* ── Card ────────────────────────────────────────────────── */
.sf-card {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	margin-bottom: 24px;
	box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.sf-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	border-bottom: 1px solid #e5e7eb;
	gap: 12px;
}

.sf-card__header h2 {
	font-size: 1em;
	margin: 0;
	font-weight: 600;
	color: #1e1e1e;
}

.sf-card__body {
	padding: 20px;
}

/* ── Notices ─────────────────────────────────────────────── */
.sf-notice {
	padding: 10px 14px;
	border-radius: 4px;
	margin-bottom: 18px;
	font-size: 0.9em;
	display: flex;
	gap: 8px;
	align-items: flex-start;
}

.sf-notice .dashicons {
	flex-shrink: 0;
	margin-top: 1px;
}

.sf-notice--info {
	background: #e8f4fd;
	border-left: 3px solid #2271b1;
	color: #0c4a6e;
}

/* ── Form table adjustments ──────────────────────────────── */
.sf-form-table th {
	width: 160px;
	padding-left: 0;
}

/* ── Sheets list table ───────────────────────────────────── */
.sf-sheets-table {
	margin-top: 4px;
}

.sf-col-id code {
	font-size: 0.8em;
	word-break: break-all;
}

.sf-shortcode-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
}

.sf-shortcode-input {
	flex: 1;
	font-family: monospace;
	font-size: 0.82em;
	background: #f6f7f7;
	border: 1px solid #ddd;
	border-radius: 3px;
	padding: 4px 8px;
	min-width: 0;
}

.sf-copy-btn {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	padding: 4px 8px !important;
}

.sf-col-actions {
	white-space: nowrap;
}

.sf-col-actions .button {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-right: 4px;
}

.sf-col-actions .sf-delete-btn {
	color: #b32d2e;
	border-color: #b32d2e;
}

.sf-col-actions .sf-delete-btn:hover {
	background: #fcecec;
}

/* ── Empty state ─────────────────────────────────────────── */
.sf-empty-state {
	text-align: center;
	color: #777;
	padding: 32px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.sf-empty-state .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	opacity: 0.3;
}

/* ── Feedback span ───────────────────────────────────────── */
.sf-feedback {
	margin-left: 10px;
	font-size: 0.9em;
	font-style: italic;
	color: #2ecc71;
	vertical-align: middle;
}

.sf-feedback.sf-feedback--error {
	color: #e74c3c;
}

/* ── Help page ───────────────────────────────────────────── */
.sf-help-steps ol {
	padding-left: 20px;
}

.sf-help-steps li {
	margin-bottom: 8px;
	line-height: 1.6;
}

.sf-ref-table {
	margin-top: 8px;
}

.sf-ref-table td:first-child,
.sf-ref-table th:first-child {
	width: 180px;
}

.sf-ref-table td:nth-child(2),
.sf-ref-table th:nth-child(2) {
	width: 180px;
}

.sf-examples h3 {
	font-size: 0.9em;
	margin: 18px 0 4px;
	color: #555;
}

.sf-examples pre {
	background: #f4f5f6;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 10px 14px;
	overflow-x: auto;
	font-size: 0.85em;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 782px) {
	.sf-col-id { display: none; }
	.sf-shortcode-input { min-width: 80px; }
}
