@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.adminvoro-wrap {
	max-width: 1180px;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.adminvoro-hero {
	align-items: center;
	background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
	border-radius: 20px;
	box-shadow: 0 20px 60px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(255,255,255,0.06) inset;
	color: #fff;
	display: flex;
	justify-content: space-between;
	margin: 24px 0;
	overflow: hidden;
	padding: 36px 40px;
	position: relative;
	transition: box-shadow 0.3s ease;
}

.adminvoro-hero::after {
	background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0, rgba(255, 255, 255, 0) 68%);
	content: "";
	height: 240px;
	position: absolute;
	right: -80px;
	top: -100px;
	width: 240px;
}

.adminvoro-hero h1 {
	color: #fff;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 8px;
}

.adminvoro-hero p {
	color: rgba(255, 255, 255, 0.82);
	font-size: 15px;
	margin: 0;
	max-width: 680px;
}

.adminvoro-eyebrow {
	color: #bfdbfe !important;
	font-size: 12px !important;
	font-weight: 700;
	letter-spacing: 0.12em;
	margin-bottom: 8px !important;
	text-transform: uppercase;
}

.adminvoro-version {
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 999px;
	color: #fff;
	font-weight: 600;
	padding: 10px 16px;
	position: relative;
	z-index: 1;
}

.adminvoro-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 18px;
}

.adminvoro-tabs a {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 999px;
	color: #1d2327;
	font-weight: 600;
	padding: 10px 15px;
	text-decoration: none;
	transition: all 0.16s ease;
}

.adminvoro-tabs a:hover,
.adminvoro-tabs a:focus,
.adminvoro-tabs a.is-active {
	background: #2563eb;
	border-color: #2563eb;
	box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
	color: #fff;
}

.adminvoro-panel {
	margin-bottom: 32px;
}

.adminvoro-notices {
	margin: 0 0 18px;
	max-width: 960px;
}

.adminvoro-notices:empty {
	display: none;
}

.adminvoro-notices .notice,
.adminvoro-notice {
	border-radius: 10px;
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
	margin: 0 0 12px;
	padding: 4px 12px;
}

.adminvoro-notices .notice-error,
.adminvoro-notice.notice-error {
	background: #fef2f2;
	border-left-color: #dc2626;
	color: #7f1d1d;
}

.adminvoro-notices .notice-warning,
.adminvoro-notice.notice-warning {
	background: #fffbeb;
	border-left-color: #d97706;
	color: #78350f;
}

.adminvoro-notices .updated,
.adminvoro-notices .notice-success,
.adminvoro-notice.notice-success,
.adminvoro-notice.updated {
	background: #ecfdf3;
	border-left-color: #16a34a;
	color: #14532d;
}

.adminvoro-notices .notice-info,
.adminvoro-notice.notice-info {
	background: #eff6ff;
	border-left-color: #2563eb;
	color: #1e3a8a;
}

.adminvoro-notices .notice p,
.adminvoro-notice p {
	font-weight: 600;
}

.adminvoro-form .submit {
	margin-top: 18px;
	padding-bottom: 0;
}

.adminvoro-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	box-shadow: 0 4px 6px rgba(15, 23, 42, 0.04), 0 12px 30px rgba(15, 23, 42, 0.06);
	margin-top: 16px;
	padding: 28px 32px;
	transition: box-shadow 0.25s ease;
}

.adminvoro-card:hover {
	box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06), 0 20px 48px rgba(15, 23, 42, 0.10);
}

.adminvoro-card-header {
	align-items: flex-start;
	border-bottom: 1px solid #eef2f7;
	display: flex;
	gap: 20px;
	justify-content: space-between;
	margin-bottom: 28px;
	padding-bottom: 20px;
}

.adminvoro-card-header-icon {
	align-items: center;
	background: linear-gradient(135deg, #dbeafe, #eff6ff);
	border-radius: 14px;
	display: flex;
	flex: 0 0 auto;
	height: 48px;
	justify-content: center;
	width: 48px;
}

.adminvoro-card-header-icon svg {
	color: #2563eb;
	flex-shrink: 0;
}

.adminvoro-card-header-meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.adminvoro-card-header h2 {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	margin: 0;
	color: #0f172a;
}

.adminvoro-card-header p {
	color: #64748b;
	font-size: 13.5px;
	line-height: 1.6;
	margin: 0;
	max-width: 620px;
}

.adminvoro-status-badge {
	align-items: center;
	border-radius: 999px;
	display: inline-flex;
	font-size: 12px;
	font-weight: 600;
	gap: 6px;
	letter-spacing: 0.02em;
	padding: 5px 12px;
	white-space: nowrap;
}

.adminvoro-status-badge::before {
	border-radius: 50%;
	content: '';
	display: block;
	height: 7px;
	width: 7px;
}

.adminvoro-status-badge.is-active {
	background: #dcfce7;
	color: #15803d;
}

.adminvoro-status-badge.is-active::before {
	animation: adminvoro-pulse 1.8s ease-in-out infinite;
	background: #22c55e;
	box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
}

.adminvoro-status-badge.is-inactive {
	background: #f1f5f9;
	color: #64748b;
}

.adminvoro-status-badge.is-inactive::before {
	background: #94a3b8;
}

@keyframes adminvoro-pulse {
	0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
	70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
	100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.adminvoro-alert {
	border-radius: 14px;
	display: flex;
	gap: 12px;
	margin-bottom: 20px;
	padding: 16px 20px;
}

.adminvoro-alert-icon {
	flex: 0 0 auto;
	margin-top: 1px;
}

.adminvoro-alert-body {
	flex: 1;
}

.adminvoro-alert a {
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: transparent;
	transition: text-decoration-color 0.15s;
}

.adminvoro-alert a:hover {
	text-decoration-color: currentColor;
}

.adminvoro-alert-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	margin-bottom: 4px;
	text-transform: uppercase;
}

.adminvoro-alert span {
	display: block;
	font-size: 13px;
	margin-top: 4px;
	opacity: 0.85;
}

.adminvoro-alert-success {
	background: linear-gradient(135deg, #f0fdf4, #dcfce7);
	border: 1px solid #bbf7d0;
	color: #166534;
}

.adminvoro-alert-warning {
	background: linear-gradient(135deg, #fffbeb, #fef3c7);
	border: 1px solid #fde68a;
	color: #92400e;
}

.adminvoro-field {
	display: block;
	margin: 24px 0 0;
	max-width: 760px;
}

.adminvoro-field.is-hidden {
	display: none;
}

.adminvoro-field > span,
.adminvoro-toggle-row label:first-child {
	color: #0f172a;
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	margin-bottom: 8px;
}

.adminvoro-field input[type="text"],
.adminvoro-field input[type="url"],
.adminvoro-field input[type="number"],
.adminvoro-field select,
.adminvoro-field textarea,
.adminvoro-redirects-table input[type="text"],
.adminvoro-redirects-table select {
	background: #f8fafc;
	border: 1.5px solid #e2e8f0;
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(15,23,42,0.04);
	color: #0f172a;
	font-size: 14px;
	min-height: 44px;
	padding: 0 14px;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
	width: 100%;
}

.adminvoro-field input[type="text"]:focus,
.adminvoro-field input[type="url"]:focus,
.adminvoro-field input[type="number"]:focus,
.adminvoro-field select:focus,
.adminvoro-field textarea:focus {
	background: #fff;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
	outline: none;
}

.adminvoro-field textarea {
	padding: 12px 14px;
}

.adminvoro-field input[type="color"] {
	border: 1.5px solid #e2e8f0;
	border-radius: 10px;
	box-shadow: none;
	cursor: pointer;
	height: 44px;
	padding: 3px;
	width: 100%;
}

.adminvoro-field small,
.adminvoro-toggle-row small {
	color: #64748b;
	display: block;
	font-size: 12.5px;
	line-height: 1.55;
	margin-top: 7px;
}

.adminvoro-prefix-input {
	align-items: stretch;
	display: flex;
	max-width: 760px;
}

.adminvoro-prefix-input span {
	align-items: center;
	background: #f1f5f9;
	border: 1.5px solid #e2e8f0;
	border-radius: 10px 0 0 10px;
	border-right: 0;
	color: #64748b;
	display: flex;
	font-size: 13px;
	padding: 0 14px;
	white-space: nowrap;
}

.adminvoro-prefix-input input {
	border-radius: 0 10px 10px 0 !important;
	flex: 1;
}

.adminvoro-toggle-row {
	align-items: center;
	background: #f8fafc;
	border: 1.5px solid #e2e8f0;
	border-radius: 14px;
	display: flex;
	gap: 18px;
	justify-content: space-between;
	margin-top: 16px;
	padding: 18px 20px;
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.adminvoro-toggle-row:hover {
	background: #fff;
	border-color: #bfdbfe;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.07);
}

.adminvoro-toggle-row:has(input:checked) {
	background: #eff6ff;
	border-color: #93c5fd;
}

.adminvoro-toggle-row label:first-child {
	margin-bottom: 0;
}

.adminvoro-switch {
	display: inline-block;
	flex: 0 0 auto;
	height: 30px;
	position: relative;
	width: 56px;
}

.adminvoro-switch input {
	height: 0;
	opacity: 0;
	width: 0;
}

.adminvoro-switch span {
	background: #cbd5e1;
	border-radius: 999px;
	cursor: pointer;
	inset: 0;
	position: absolute;
	transition: background 0.22s ease, box-shadow 0.22s ease;
}

.adminvoro-switch span::before {
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.20);
	content: "";
	height: 24px;
	left: 3px;
	position: absolute;
	top: 3px;
	transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease;
	width: 24px;
}

.adminvoro-switch input:checked + span {
	background: linear-gradient(135deg, #3b82f6, #2563eb);
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.adminvoro-switch input:focus + span {
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.24);
}

.adminvoro-switch input:checked + span::before {
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
	transform: translateX(26px);
}

.adminvoro-switch-small {
	height: 24px;
	width: 44px;
}

.adminvoro-switch-small span::before {
	height: 18px;
	width: 18px;
}

.adminvoro-switch-small input:checked + span::before {
	transform: translateX(20px);
}

.adminvoro-logo-control {
	align-items: center;
	display: flex;
	gap: 18px;
	margin-bottom: 22px;
}

.adminvoro-logo-preview {
	align-items: center;
	background: #f6f7f7;
	border: 1px dashed #a7aaad;
	border-radius: 14px;
	display: flex;
	height: 120px;
	justify-content: center;
	overflow: hidden;
	width: 220px;
}

.adminvoro-logo-preview img {
	display: block;
	height: auto;
	max-height: 100%;
	max-width: 100%;
}

.adminvoro-logo-preview.is-empty {
	color: #646970;
	font-weight: 600;
}

.adminvoro-logo-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.adminvoro-branding-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 4px;
	max-width: 760px;
}

.adminvoro-branding-grid .adminvoro-field {
	margin-top: 18px;
}

.adminvoro-table-wrap {
	overflow-x: auto;
}

.adminvoro-redirects-table th:nth-child(3),
.adminvoro-redirects-table td:nth-child(3) {
	width: 110px;
}

.adminvoro-redirects-table th:nth-child(4),
.adminvoro-redirects-table td:nth-child(4),
.adminvoro-redirects-table th:nth-child(5),
.adminvoro-redirects-table td:nth-child(5) {
	text-align: center;
	width: 90px;
}

.adminvoro-redirects-table td {
	vertical-align: middle;
}

.adminvoro-redirect-row-deleted {
	display: none;
}

/* ── Save button ──────────────────────────────────── */
.adminvoro-form .submit .button-primary,
.adminvoro-save-btn {
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
	border: none;
	border-radius: 10px;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
	color: #fff;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	min-height: 44px;
	padding: 0 24px;
	transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.adminvoro-form .submit .button-primary:hover,
.adminvoro-save-btn:hover {
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
	transform: translateY(-1px);
}

.adminvoro-form .submit .button-primary:active,
.adminvoro-save-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.adminvoro-form .submit .button-primary:focus,
.adminvoro-save-btn:focus {
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
	outline: none;
}

/* ── Field section separator ──────────────────────── */
.adminvoro-field-section {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid #f1f5f9;
}

.adminvoro-field-section-label {
	align-items: center;
	display: flex;
	font-size: 11px;
	font-weight: 700;
	gap: 8px;
	letter-spacing: 0.10em;
	margin-bottom: 14px;
	text-transform: uppercase;
	color: #94a3b8;
}

.adminvoro-field-section-label::after {
	background: #e2e8f0;
	content: '';
	flex: 1;
	height: 1px;
}

/* ── Slug live preview ────────────────────────────── */
.adminvoro-slug-preview {
	align-items: center;
	background: #f8fafc;
	border: 1.5px dashed #cbd5e1;
	border-radius: 10px;
	color: #475569;
	display: flex;
	font-size: 13px;
	gap: 8px;
	margin-top: 10px;
	padding: 10px 14px;
	transition: border-color 0.2s, background 0.2s;
}

.adminvoro-slug-preview.has-value {
	background: #eff6ff;
	border-color: #93c5fd;
	color: #1d4ed8;
}

.adminvoro-slug-preview svg {
	flex-shrink: 0;
	opacity: 0.7;
}

.adminvoro-slug-preview-url {
	font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
	word-break: break-all;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 782px) {
	.adminvoro-hero,
	.adminvoro-card-header,
	.adminvoro-logo-control,
	.adminvoro-toggle-row {
		align-items: stretch;
		flex-direction: column;
	}

	.adminvoro-prefix-input {
		display: block;
	}

	.adminvoro-prefix-input span,
	.adminvoro-prefix-input input {
		border: 1.5px solid #e2e8f0 !important;
		border-radius: 10px !important;
		width: 100%;
	}

	.adminvoro-prefix-input span {
		border-bottom: 0 !important;
		min-height: 40px;
	}

	.adminvoro-branding-grid {
		grid-template-columns: 1fr;
	}

	.adminvoro-card {
		padding: 20px;
	}
}
