/* Modern UI styling */
.rsit-wrap { max-width: 1200px; margin: 20px 20px 0 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; }
.rsit-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.rsit-title { margin: 0; font-size: 28px; font-weight: 700; color: #1e293b; letter-spacing: -0.5px; }
.rsit-subtitle { color: #64748b; font-size: 15px; margin-top: 5px; }

.rsit-cards-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin-bottom: 30px; }

/* Full-width layout for subpages (robots.txt & sitemap) */
.rsit-wrap.rsit-wrap--full-width {
	max-width: 100%;
	margin-right: 20px;
}
.rsit-cards-container.rsit-cards-container--single {
	grid-template-columns: 1fr;
}
.rsit-card { 
	background: #ffffff; 
	border-radius: 16px; 
	padding: 24px; 
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); 
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border: 1px solid #f1f5f9;
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
}
.rsit-card:hover { 
	transform: translateY(-4px); 
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
	border-color: #e2e8f0;
}
.rsit-card::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0; height: 4px;
	background: linear-gradient(90deg, #3b82f6, #8b5cf6);
	opacity: 0;
	transition: opacity 0.3s ease;
}
.rsit-card:hover::before { opacity: 1; }
.rsit-card-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #f1f5f9; padding-bottom: 16px; margin-bottom: 16px; }
.rsit-card-title { font-size: 18px; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 10px; color: #334155; }
.rsit-card-title .dashicons { color: #6366f1; font-size: 22px; width: 22px; height: 22px; }

/* Toggle Switch */
.rsit-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.rsit-switch input { opacity: 0; width: 0; height: 0; }
.rsit-switch-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #cbd5e1; transition: .3s; border-radius: 24px; }
.rsit-switch-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .3s; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
input:checked + .rsit-switch-slider { background-color: #6366f1; }
input:checked + .rsit-switch-slider:before { transform: translateX(20px); }
input:focrsit-visible + .rsit-switch-slider { outline: 2px solid #8b5cf6; outline-offset: 2px; }

.rsit-card-body h4 { margin: 0 0 12px 0; font-size: 14px; color: #475569; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.rsit-post-types { display: flex; flex-direction: column; gap: 10px; }
.rsit-pt-label { 
	display: flex; align-items: center; gap: 10px; font-size: 14px; color: #1e293b; 
	cursor: pointer; padding: 6px 8px; border-radius: 6px; transition: background 0.2s;
	margin: 0;
}
.rsit-pt-label:hover { background: #f8fafc; }
.rsit-pt-label input[type="checkbox"] { 
	appearance: none;
	background-color: #fff;
	margin: 0;
	font: inherit;
	color: currentColor;
	width: 1.15em;
	height: 1.15em;
	border: 2px solid #cbd5e1;
	border-radius: 4px;
	display: grid;
	place-content: center;
	transition: all 0.2s;
	cursor: pointer;
}
.rsit-pt-label input[type="checkbox"]::before {
	content: "";
	width: 0.65em;
	height: 0.65em;
	transform: scale(0);
	transition: 120ms transform ease-in-out;
	box-shadow: inset 1em 1em white;
	transform-origin: bottom left;
	clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.rsit-pt-label input[type="checkbox"]:checked {
	background-color: #6366f1;
	border-color: #6366f1;
}
.rsit-pt-label input[type="checkbox"]:checked::before { transform: scale(1); }

.rsit-actions { 
	padding: 20px 0; 
	border-top: 1px solid #e2e8f0; 
	display: flex; 
	align-items: center;
	justify-content: flex-start; 
	gap: 10px;
	flex-wrap: wrap;
}

/* ─── Primary Button ──────────────────────────────────────── */
.rsit-save-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #4f46e5;
	color: #fff;
	border: none;
	padding: 10px 22px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	line-height: 1.5;
	transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
	box-shadow: 0 1px 3px rgba(79, 70, 229, 0.25), 0 1px 2px rgba(0, 0, 0, 0.06);
	text-decoration: none;
}
.rsit-save-btn:hover,
.rsit-save-btn:focus {
	background: #4338ca;
	color: #fff;
	box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3), 0 1px 2px rgba(0,0,0,0.06);
	transform: translateY(-1px);
	outline: none;
}
.rsit-save-btn:active {
	background: #3730a3;
	transform: translateY(0);
	box-shadow: none;
}
.rsit-save-btn .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* ─── Destructive / Delete Button ────────────────────────── */
.button.button-link-delete,
.rsit-delete-btn {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	background: transparent !important;
	color: #dc2626 !important;
	border: 1.5px solid #fca5a5 !important;
	padding: 9px 18px !important;
	border-radius: 8px;
	font-size: 14px !important;
	font-weight: 600;
	cursor: pointer;
	line-height: 1.5;
	height: auto !important;
	transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
	text-decoration: none !important;
	box-shadow: none !important;
}
.button.button-link-delete:hover,
.button.button-link-delete:focus,
.rsit-delete-btn:hover,
.rsit-delete-btn:focus {
	background: #fef2f2 !important;
	border-color: #f87171 !important;
	color: #b91c1c !important;
	transform: translateY(-1px);
	box-shadow: 0 2px 6px rgba(220, 38, 38, 0.15) !important;
	outline: none;
}
.button.button-link-delete:active,
.rsit-delete-btn:active {
	background: #fee2e2 !important;
	transform: translateY(0);
	box-shadow: none !important;
}
.button.button-link-delete .dashicons,
.rsit-delete-btn .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* ─── File Status Badges ──────────────────────────────────── */
.rsit-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.3px;
	line-height: 1.5;
}
.rsit-badge--active {
	background: #dcfce7;
	color: #15803d;
	border: 1px solid #bbf7d0;
}
.rsit-badge--inactive {
	background: #f1f5f9;
	color: #64748b;
	border: 1px solid #e2e8f0;
}

