.blocdash-admin {
	--bd-bg: #f4f4f4;
	--bd-panel: #ffffff;
	--bd-border: #e2e2e2;
	--bd-text: #111111;
	--bd-muted: #666666;
	--bd-shadow: rgba(15, 15, 15, 0.08);
	--bd-accent: #111111;
	--bd-input-bg: #ffffff;
	--bd-input-border: #d6d6d6;
	--bd-input-focus: rgba(17, 17, 17, 0.18);
	font-family: "IBM Plex Sans", "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
	color: var(--bd-text);
}

.blocdash-admin .blocdash-hero {
	background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
	border: 1px solid var(--bd-border);
	border-radius: 16px;
	padding: 24px 28px;
	box-shadow: 0 10px 30px var(--bd-shadow);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
}

.blocdash-admin .blocdash-hero h1 {
	margin: 0 0 6px 0;
	font-size: 28px;
	letter-spacing: -0.02em;
}

.blocdash-admin .blocdash-hero p {
	margin: 0;
	color: var(--bd-muted);
	font-size: 14px;
}

.blocdash-admin .blocdash-meta {
	text-align: right;
	font-size: 12px;
	color: var(--bd-muted);
}

.blocdash-admin .blocdash-shell {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 24px;
}

.blocdash-admin .blocdash-tabs {
	background: var(--bd-panel);
	border: 1px solid var(--bd-border);
	border-radius: 14px;
	padding: 12px;
	box-shadow: 0 6px 16px var(--bd-shadow);
	position: sticky;
	top: 32px;
	height: fit-content;
}

.blocdash-admin .blocdash-tab {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	border: none;
	background: transparent;
	color: var(--bd-text);
	padding: 10px 12px;
	border-radius: 10px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.blocdash-admin .blocdash-tab:hover {
	background: #efefef;
}

.blocdash-admin .blocdash-tab.is-active {
	background: #111111;
	color: #ffffff;
}

.blocdash-admin .blocdash-panel {
	display: none;
	background: var(--bd-panel);
	border: 1px solid var(--bd-border);
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 10px 24px var(--bd-shadow);
}

.blocdash-admin .blocdash-panel.is-active {
	display: block;
}

.blocdash-admin .blocdash-section-title {
	font-size: 18px;
	margin: 0 0 8px 0;
}

.blocdash-admin .blocdash-section-desc {
	color: var(--bd-muted);
	margin: 0 0 18px 0;
}

.blocdash-admin .blocdash-help {
	margin: 0 0 18px 0;
	padding: 12px 14px;
	background: #f6f6f6;
	border: 1px solid var(--bd-border);
	border-radius: 10px;
	color: var(--bd-muted);
	font-size: 13px;
}

.blocdash-admin .blocdash-help strong {
	color: var(--bd-text);
}

.blocdash-admin .blocdash-shortcode-table {
	margin-top: 16px;
}

.blocdash-admin .blocdash-shortcode-table code {
	background: #f0f0f0;
	padding: 2px 6px;
	border-radius: 6px;
}

.blocdash-admin .blocdash-shortcode-actions {
	margin-left: 8px;
	font-size: 12px;
}

.blocdash-admin .blocdash-shortcode-note {
	margin-top: 12px;
	color: var(--bd-muted);
	font-size: 12px;
}

.blocdash-admin .blocdash-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}

.blocdash-admin .blocdash-card {
	border: 1px solid var(--bd-border);
	border-radius: 14px;
	padding: 16px;
	background: #fafafa;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.blocdash-admin .blocdash-spaced-card {
	margin-top: 20px;
}

.blocdash-admin .blocdash-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.blocdash-admin .blocdash-card-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 15px;
}

.blocdash-admin .blocdash-card svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
	fill: none;
}

.blocdash-admin .blocdash-card p {
	margin: 0;
	color: var(--bd-muted);
	font-size: 13px;
}

.blocdash-admin .blocdash-switch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.blocdash-admin .blocdash-switch input,
.blocdash-admin .blocdash-check input[type="checkbox"],
.blocdash-admin .blocdash-role-list input[type="checkbox"] {
	appearance: none;
	width: 44px;
	height: 24px;
	border-radius: 999px;
	background: #d9d9d9;
	position: relative;
	cursor: pointer;
	transition: background 0.2s ease;
	margin: 0;
	flex-shrink: 0;
}

.blocdash-admin .blocdash-switch input::after,
.blocdash-admin .blocdash-check input[type="checkbox"]::after,
.blocdash-admin .blocdash-role-list input[type="checkbox"]::after {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	background: #ffffff;
	border-radius: 50%;
	top: 3px;
	left: 3px;
	transition: transform 0.2s ease;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.blocdash-admin .blocdash-switch input::before,
.blocdash-admin .blocdash-switch input:checked::before,
.blocdash-admin .blocdash-check input[type="checkbox"]::before,
.blocdash-admin .blocdash-check input[type="checkbox"]:checked::before,
.blocdash-admin .blocdash-role-list input[type="checkbox"]::before,
.blocdash-admin .blocdash-role-list input[type="checkbox"]:checked::before {
	content: "";
	display: none;
}

.blocdash-admin .blocdash-switch input:checked,
.blocdash-admin .blocdash-check input[type="checkbox"]:checked,
.blocdash-admin .blocdash-role-list input[type="checkbox"]:checked {
	background: #111111;
}

.blocdash-admin .blocdash-switch input:checked::after,
.blocdash-admin .blocdash-check input[type="checkbox"]:checked::after,
.blocdash-admin .blocdash-role-list input[type="checkbox"]:checked::after {
	transform: translateX(20px);
}

.blocdash-admin .blocdash-role-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 6px 12px;
	margin-top: 10px;
}

.blocdash-admin .blocdash-role-list label {
	font-size: 12px;
	color: var(--bd-muted);
}

.blocdash-admin details {
	border-top: 1px dashed var(--bd-border);
	padding-top: 10px;
}

.blocdash-admin details summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 12px;
	color: var(--bd-text);
	list-style: none;
}

.blocdash-admin details summary::-webkit-details-marker {
	display: none;
}

.blocdash-admin .blocdash-form-grid {
	display: grid;
	gap: 16px;
}

.blocdash-admin .blocdash-form-row {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 16px;
	align-items: start;
}

.blocdash-admin .blocdash-form-row > label {
	font-weight: 600;
	font-size: 13px;
	padding-top: 6px;
}

.blocdash-admin .blocdash-form-row input[type="text"],
.blocdash-admin .blocdash-form-row input[type="url"],
.blocdash-admin .blocdash-form-row input[type="number"],
.blocdash-admin .blocdash-form-row select,
.blocdash-admin .blocdash-form-row textarea {
	width: 100%;
	border: 1px solid var(--bd-input-border);
	border-radius: 8px;
	padding: 9px 12px;
	font-size: 13px;
	background: var(--bd-input-bg);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blocdash-admin .blocdash-form-row input[type="text"],
.blocdash-admin .blocdash-form-row input[type="url"],
.blocdash-admin .blocdash-form-row input[type="number"],
.blocdash-admin .blocdash-form-row select {
	height: 38px;
}

.blocdash-admin .blocdash-form-row textarea {
	min-height: 96px;
	resize: vertical;
}

.blocdash-admin .blocdash-form-row input[type="text"]:focus,
.blocdash-admin .blocdash-form-row input[type="url"]:focus,
.blocdash-admin .blocdash-form-row input[type="number"]:focus,
.blocdash-admin .blocdash-form-row select:focus,
.blocdash-admin .blocdash-form-row textarea:focus {
	border-color: #111111;
	box-shadow: 0 0 0 2px var(--bd-input-focus);
	outline: none;
}

.blocdash-admin .blocdash-field-stack {
	display: grid;
	gap: 10px;
}

.blocdash-admin .blocdash-field-grid {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.blocdash-admin .blocdash-check {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-weight: 500;
	font-size: 13px;
	color: var(--bd-text);
	min-height: 28px;
}

.blocdash-admin .blocdash-field {
	display: grid;
	gap: 6px;
	font-weight: 600;
	font-size: 12px;
	color: var(--bd-muted);
}

.blocdash-admin .blocdash-field span {
	font-weight: 600;
}

.blocdash-admin .blocdash-inline-actions {
	margin-top: 12px;
}

.blocdash-admin .wp-list-table input[type="text"].widefat {
	border-radius: 8px;
	border: 1px solid var(--bd-input-border);
	padding: 8px 10px;
	font-size: 13px;
}

.blocdash-admin .wp-list-table input[type="text"].widefat:focus {
	border-color: #111111;
	box-shadow: 0 0 0 2px var(--bd-input-focus);
	outline: none;
}

.blocdash-admin .blocdash-role-list label {
	display: flex;
	align-items: center;
	gap: 8px;
}

.blocdash-admin .blocdash-notice {
	background: #111111;
	color: #ffffff;
	padding: 10px 14px;
	border-radius: 10px;
	margin-bottom: 16px;
	font-size: 13px;
}

.blocdash-admin .button,
.blocdash-admin .button-primary,
.blocdash-admin .button-secondary {
	background: #111111;
	color: #ffffff;
	border: 1px solid #111111;
	border-radius: 10px;
	padding: 8px 16px;
	font-weight: 600;
	box-shadow: none;
}

.blocdash-admin .button:hover,
.blocdash-admin .button-primary:hover,
.blocdash-admin .button-secondary:hover,
.blocdash-admin .button:focus,
.blocdash-admin .button-primary:focus,
.blocdash-admin .button-secondary:focus {
	background: #1b1b1b;
	color: #ffffff;
	border-color: #1b1b1b;
}

.blocdash-admin .button:focus,
.blocdash-admin .button-primary:focus,
.blocdash-admin .button-secondary:focus {
	box-shadow: 0 0 0 2px var(--bd-input-focus);
}

.blocdash-admin .button:disabled,
.blocdash-admin .button-primary:disabled,
.blocdash-admin .button-secondary:disabled {
	opacity: 0.6;
}

@media (max-width: 960px) {
	.blocdash-admin .blocdash-shell {
		grid-template-columns: 1fr;
	}
	.blocdash-admin .blocdash-tabs {
		position: static;
		display: flex;
		gap: 8px;
		flex-wrap: wrap;
	}
	.blocdash-admin .blocdash-tab {
		flex: 1 1 120px;
		justify-content: center;
	}
	.blocdash-admin .blocdash-form-row {
		grid-template-columns: 1fr;
	}
}
