.publuu-admin-wrapper {
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.publuu-admin-wrapper * {
	box-sizing: border-box;
}

.publuu-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin-top: 24px;
	align-items: center;
	justify-content: center;
}

.publuu-creator__card,
.publuu-accordion {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
	border-radius: 0.5rem;
	width: 100%;
	max-width: 1000px;
	overflow: hidden;
	margin-bottom: 0;
}

.publuu-creator__header,
.publuu-accordion__header {
	padding: 16px 24px;
	border-bottom: 1px solid #f3f4f6;
	background: #f9fafb;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.publuu-creator__header h2,
.publuu-accordion__header h2 {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 600;
	color: #111827;
	line-height: 1.5;
}

.publuu-creator__content,
.publuu-accordion__body {
	padding: 24px;
	color: #374151;
	line-height: 1.6;
}

.publuu-accordion__header {
	cursor: pointer;
	transition: background-color 0.2s;
}

.publuu-accordion__header:hover {
	background-color: #f3f4f6;
}

.publuu-accordion .publuu-accordion__body {
	display: block !important;
}

.publuu-accordion.closed .publuu-accordion__body {
	display: none !important;
}

.publuu-accordion.closed .publuu-accordion__header {
	border-bottom: none;
}

.publuu-toggle-indicator::before {
	content: "\f142";
	font-family: dashicons;
	color: #9ca3af;
	font-size: 20px;
	transition: transform 0.2s ease;
}

.publuu-accordion.closed .publuu-toggle-indicator::before {
	content: "\f140";
}

.publuu-creator__section--loading,
.publuu-creator__section--preview {
	display: none;
}

.publuu-loader {
	min-height: 200px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background: #f9fafb;
	border-radius: 0.375rem;
	color: #6b7280;
}

.publuu-loader__icon {
	font-size: 48px;
	width: 48px;
	height: 48px;
	color: #3b82f6;
	animation: publuu-spin 1s linear infinite;
	margin-bottom: 12px;
}

@keyframes publuu-spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

.publuu-upload-ui {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 20px;
	background: #f3f4f6;
	border: 2px dashed #d1d5db;
	border-radius: 0.5rem;
	margin-bottom: 20px;
	justify-content: center;
}

.publuu-upload-ui__filename {
	font-weight: 600;
	color: #4b5563;
	background: #e5e7eb;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 0.875rem;
}

.publuu-submit-btn {
	width: 100%;
	justify-content: center;
	margin-top: 1rem;
	height: 40px !important;
	font-size: 14px !important;
	background-color: #3b82f6 !important;
	color: #ffffff !important;
	border: none !important;
	box-shadow: none !important;
	border-radius: 0.5rem !important;
	cursor: pointer;
	transition: background-color 0.2s;
	font-weight: 500;
}

.publuu-submit-btn:disabled {
	background-color: #93c5fd !important;
	cursor: not-allowed;
}

.publuu-submit-btn:hover:enabled {
	background-color: #2563eb !important;
}

.publuu-preview-grid {
	display: flex;
	gap: 32px;
	flex-wrap: wrap;
}

.publuu-preview__controls {
	flex: 1;
	min-width: 300px;
}

.publuu-preview__iframe {
	flex: 2;
	min-width: 500px;
}

.publuu-preview__iframe iframe {
	width: 100%;
	height: 500px;
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.publuu-form-group {
	margin-bottom: 20px;
}

.publuu-form-group label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	color: #374151;
	margin-bottom: 6px;
}

.publuu-form-group input[type="text"],
.publuu-form-group select {
	width: 100%;
	border: 1px solid #d1d5db;
	border-radius: 0.375rem;
	padding: 8px 12px;
	height: 40px;
	box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.publuu-form-group input[type="text"]:focus,
.publuu-form-group select:focus {
	border-color: #3b82f6;
	box-shadow: 0 0 0 1px #3b82f6;
	outline: none;
}

.publuu-shortcode-container {
	margin-top: 24px;
}

.publuu-shortcode-box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background-color: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
	padding: 16px;
	border-radius: 0.5rem;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 0.95rem;
	cursor: pointer;
	transition: all 0.2s;
	position: relative;
}

.publuu-shortcode-box:hover {
	background-color: #d1fae5;
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.publuu-copy-icon {
	font-size: 18px;
	color: #059669;
	opacity: 0.8;
}

.publuu-toggle-switch {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	margin-bottom: 16px;
	user-select: none;
}

.publuu-toggle-switch__input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.publuu-toggle-switch__slider {
	position: relative;
	width: 44px;
	height: 24px;
	background-color: #d1d5db;
	border-radius: 9999px;
	transition: background-color 0.2s;
	margin-right: 12px;
}

.publuu-toggle-switch__slider::before {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 20px;
	height: 20px;
	background-color: white;
	border-radius: 50%;
	box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.15);
	transition: transform 0.2s;
}

.publuu-toggle-switch__input:checked+.publuu-toggle-switch__slider {
	background-color: #2563eb;
}

.publuu-toggle-switch__input:checked+.publuu-toggle-switch__slider::before {
	transform: translateX(20px);
}

.publuu-toggle-switch__label {
	font-size: 0.875rem;
	font-weight: 500;
	color: #374151;
}

.publuu-table {
	border: none !important;
	box-shadow: none;
}

.publuu-table tr {
	border-bottom: 1px solid #f3f4f6;
}

.publuu-table td {
	padding: 16px 12px;
	vertical-align: middle;
}

.publuu-table img {
	border-radius: 4px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
	border: 1px solid #e5e7eb;
}

.publuu-account-status {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1rem;
	color: #1f2937;
	margin-bottom: 8px;
}

.publuu-account-status .dashicons {
	color: #4b5563;
	font-size: 24px;
	width: 24px;
	height: 24px;
}

.publuu-badge-active {
	display: inline-block;
	padding: 2px 10px;
	font-size: 12px;
	font-weight: 600;
	color: #047857;
	background-color: #d1fae5;
	border-radius: 9999px;
	margin-left: auto;
}

.publuu-divider {
	border: 0;
	border-top: 1px solid #f3f4f6;
	margin: 20px 0;
}

.publuu-details-box {
	background-color: #fff;
	border: 1px solid #fee2e2;
	border-radius: 0.5rem;
	overflow: hidden;
}

.publuu-details-box summary {
	padding: 16px;
	background-color: #fef2f2;
	color: #991b1b;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	outline: none;
	transition: background-color 0.2s;
}

.publuu-details-box summary:hover {
	background-color: #fee2e2;
}

.publuu-details-box summary .dashicons {
	color: #ef4444;
}

.publuu-details-content {
	padding: 20px;
	border-top: 1px solid #fee2e2;
}

.publuu-details-content p {
	margin-top: 0;
	margin-bottom: 20px;
	color: #7f1d1d;
	font-size: 0.95em;
}

.publuu-details-actions {
	display: flex;
	justify-content: flex-end;
}

.button.button-danger {
	background-color: #dc2626 !important;
	border-color: #dc2626 !important;
	color: #ffffff !important;
	text-shadow: none;
	box-shadow: none;
	transition: background-color 0.2s;
	font-weight: 500;
	padding: 4px 16px;
	border-radius: 0.5rem;
}

.button.button-danger:hover {
	background-color: #b91c1c !important;
	border-color: #b91c1c !important;
}

.button.button-danger:focus {
	box-shadow: 0 0 0 1px #fff, 0 0 0 3px #ef4444 !important;
}

.publuu-action__sign_in {
	background-color: #146EF5;
	border-color: #146EF5;
	border-radius: 0.5rem;
	font-size: 1.2em;
	padding: 12px 24px;
	text-decoration: none;
	color: #ffffff;
	transition: all 0.2s ease;
}

.publuu-action__sign_in:hover {
	background-color: #0e63db;
	border-color: #0e63db;
	color: #ffffff;
}

.publuu-action__buttons {
	background-color: #ffffff;
	border: 1px solid #d1d5db;
	color: #374151;
	border-radius: 0.375rem;

	padding: 5px 10px;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.25rem;

	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	text-decoration: none;
	margin-bottom: 6px;
}

.publuu-action__buttons:hover {
	background-color: #f5f5f5;
	border-color: #9ca3af;
	color: #111827;
	box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.05);
	transform: translateY(-1px);
}

.publuu-action__buttons:active {
	background-color: #f3f4f6;
	box-shadow: none;
	transform: translateY(0);
}

.publuu-action__buttons:focus {
	outline: 2px solid transparent;
	outline-offset: 2px;
	box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #3b82f6;
}

.publuu-upload-zone.drag-over {
	border-color: #3b82f6;
	background-color: #e0e7ff;
	transform: scale(1.01);
}

.publuu-upload-zone.is-uploading {
	opacity: 0.7;
	pointer-events: none;
	cursor: wait;
}

#publuu_select_page {
	width: 340px !important;
}

.publuu-upload-button {
	padding: 15px 20px;
}

.publuu-toast-container {
	position: fixed;
	top: 34px;
	right: 24px;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	gap: 10px;
	pointer-events: none;
}

.publuu-toast {
	background: #ffffff;
	border-left: 4px solid #059669;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	border-radius: 0.375rem;
	padding: 12px 20px;
	min-width: 280px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 0.875rem;
	font-weight: 500;
	color: #374151;
	display: flex;
	align-items: center;
	gap: 12px;
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: auto;
}

.publuu-toast.show {
	opacity: 1;
	transform: translateY(0);
}

.publuu-toast--error {
	border-left-color: #dc2626;
}

.publuu-toast__icon {
	font-size: 20px;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.publuu-progress-container {
	max-width: 320px;
	margin: 20px auto 0;
	text-align: center;
}

.publuu-progress-container {
	max-width: 600px;
	width: 80%;
	margin: 25px auto 0;
	text-align: center;
}

.publuu-progress-container>div {
	background-color: #f0f0f1;
	border: 1px solid #c3c4c7;
	border-radius: 12px;
	height: 24px;
	width: 100%;
	overflow: hidden;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
	position: relative;
}

#publuu-progress-bar {
	background: #2e68c5;
	background: linear-gradient(90deg, #2e68c5 0%, #3b82f6 100%);
	height: 100%;
	width: 0%;
	border-radius: 12px;
	transition: width 0.3s ease-out;
}

#publuu-progress-text {
	margin-top: 10px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: #50575e;
}

.publuu-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(2px);
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	animation: publuuFadeIn 0.2s ease-out;
}

.publuu-modal {
	background: #fff;
	width: 400px;
	max-width: 90%;
	border-radius: 8px;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	padding: 24px;
	text-align: center;
	transform: scale(0.95);
	animation: publuuScaleUp 0.2s ease-out forwards;
}

.publuu-modal-icon span {
	font-size: 40px;
	width: 40px;
	height: 40px;
	color: #dc2626;
	margin-bottom: 15px;
}

.publuu-modal-content h3 {
	margin: 0 0 10px 0;
	font-size: 1.25rem;
	color: #111827;
}

.publuu-modal-content p {
	margin: 0 0 24px 0;
	color: #6b7280;
	font-size: 0.95rem;
	line-height: 1.5;
}

.publuu-modal-actions {
	display: flex;
	justify-content: center;
	gap: 12px;
}

.publuu-btn-danger {
	background: #dc2626 !important;
	border-color: #dc2626 !important;
	color: #fff !important;
	padding: 8px 16px;
	border-radius: 0.5rem !important;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.2s;
}

.publuu-btn-danger:hover {
	background: #b91c1c !important;
	border-color: #b91c1c !important;
}

.publuu-button-secondary {
	background: #f3f4f6 !important;
	border-color: #d1d5db !important;
	color: #374151 !important;
	padding: 8px 16px;
	border-radius: 0.5rem !important;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.2s;
}

.publuu-button-secondary:hover {
	background: #e5e7eb !important;
	border-color: #9ca3af !important;
}

@keyframes publuuFadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes publuuScaleUp {
	from {
		transform: scale(0.95);
	}

	to {
		transform: scale(1);
	}
}

.publuu-wrap {
    margin: 10px 20px 0 2px;
}

.publuu-content__center {
	display: flex;
	justify-content: center;
}

.publuu-mt__50 {
	margin-top: 50px;
}

.publuu-mw__500 {
	max-width: 500px;
}

.publuu-text-align__center {
	text-align: center;
}

.publuu-align-items__center {
	display: flex;
	justify-content: center;
	align-items: center;
}

.publuu-mr__5 {
	margin-right: 5px;
}

.publuu-w__80 {
	width: 80px;
}

.publuu-h__auto {
	height: auto;
}

.publuu-ml__5 {
	margin-left: 5px;
}

.publuu-m__20__0 {
	margin: 20px 0;
}

.publuu-font-size__60 {
	font-size: 60px;
}

.publuu-w__60 {
	width: 60px;
}

.publuu-h__60 {
	height: 60px;
}

.publuu-color__146EF5 {
	color: #146EF5;
}

.publuu-font-size__1-1 {
	font-size: 1.1em;
}

.publuu-mb__20 {
	margin-bottom: 20px;
}

.publuu-m__00200 {
	margin: 0 0 20px 0;
}

.publuu-text-align__left {
	text-align: left;
}

.publuu-mt__20 {
	margin-top: 20px;
}

.publuu-font-size__0-9 {
	font-size: 0.9em;
}

.publuu-color__9ca3af {
	color: #9ca3af;
}

.publuu-p__0 {
	padding: 0;
}

.publuu-w__70 {
	width: 70px;
}

.publuu-vertical-align__middle {
	vertical-align: middle;
}
.publuu-text-align__right {
	text-align: right;
}

.publuu-margin__0-0-0 {
	margin: 0 0 5px;
}

.publuu-font-weight__600 {
	font-weight: 600;
}

.publuu-m__0 {
	margin: 0;
}

.publuu-color__646970 {
	color: #646970;
}

.publuu-mt__0 {
	margin-top: 0;
}

.publuu-mw__400 {
	max-width: 400px;
}

.publuu-mb__10 {
	margin-bottom: 10px;
}

.publuu-color__374151 {
	color: #374151;
}

.publuu-mb__0-5 {
	margin-bottom: 0.5rem;
}

.publuu-color__6B7280 {
	color: #6B7280;
}

.publuu-error-message {
	padding: 20px; 
	border: 2px solid red; 
	background: white;
}