/* TeknoTok AI Translator Pro Admin Layout Styles - v1.1.0 */
:root {
	--teknotok-primary: #6366f1;
	--teknotok-primary-hover: #4f46e5;
	--teknotok-bg-card: #ffffff;
	--teknotok-border: #e2e8f0;
	--teknotok-text: #0f172a;
	--teknotok-text-muted: #64748b;
	--teknotok-radius: 16px;
	--teknotok-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(15, 23, 42, 0.02);
}

.teknotok-ait-wrap {
	margin: 24px 24px 0 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: var(--teknotok-text);
}

.teknotok-ait-wrap h1 {
	font-weight: 800;
	font-size: 28px;
	color: var(--teknotok-text);
	margin-bottom: 24px;
	background: linear-gradient(135deg, #3b82f6, #6366f1, #8b5cf6);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	display: inline-block;
}

.teknotok-ait-container {
	margin-top: 24px;
}

.teknotok-settings-panel {
	background: var(--teknotok-bg-card);
	border: 1px solid var(--teknotok-border);
	border-radius: 8px;
	box-shadow: var(--teknotok-shadow);
	margin-bottom: 18px;
	padding: 24px;
}

.teknotok-settings-panel h2 {
	margin: 0 0 6px;
	font-size: 18px;
	line-height: 1.3;
}

.teknotok-settings-panel .subtitle {
	margin: 0 0 12px;
	color: var(--teknotok-text-muted);
}

.teknotok-settings-advanced summary {
	cursor: pointer;
	font-weight: 700;
	font-size: 16px;
	color: var(--teknotok-text);
}

.teknotok-settings-advanced[open] summary {
	margin-bottom: 12px;
}

.teknotok-inline-warning {
	color: #b91c1c;
	font-weight: 600;
	margin-top: 12px;
}

/* Glassmorphic Tabs Navigation */
.teknotok-ait-wrap .nav-tab-wrapper {
	border-bottom: 2px solid var(--teknotok-border);
	margin-bottom: 24px;
	padding-bottom: 0;
	display: flex;
	gap: 8px;
}

.teknotok-ait-wrap .nav-tab {
	background: #f8fafc;
	border: 1px solid var(--teknotok-border);
	border-bottom: none;
	color: var(--teknotok-text-muted);
	font-weight: 600;
	font-size: 14px;
	padding: 12px 24px;
	border-radius: 10px 10px 0 0;
	margin-right: 0;
	transition: all 0.2s ease-in-out;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	position: relative;
	bottom: -2px;
}

.teknotok-ait-wrap .nav-tab-active {
	background: var(--teknotok-bg-card);
	border-color: var(--teknotok-border) var(--teknotok-border) transparent;
	color: var(--teknotok-primary-hover);
	font-weight: 700;
	box-shadow: 0 -4px 10px -4px rgba(99, 102, 241, 0.1);
}

.teknotok-ait-wrap .nav-tab-active::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #6366f1, #4f46e5);
	border-radius: 10px 10px 0 0;
}

.teknotok-ait-wrap .nav-tab:hover:not(.nav-tab-active) {
	background: #f1f5f9;
	color: var(--teknotok-text);
	border-color: var(--teknotok-border);
}

/* Premium Card Design System */
.teknotok-ait-wrap .tab-content {
	background: var(--teknotok-bg-card);
	border: 1px solid var(--teknotok-border);
	border-radius: var(--teknotok-radius);
	padding: 30px;
	box-shadow: var(--teknotok-shadow);
	margin-bottom: 24px;
}

.teknotok-ait-card {
	background: var(--teknotok-bg-card);
	border: 1px solid var(--teknotok-border);
	border-radius: var(--teknotok-radius);
	box-shadow: var(--teknotok-shadow);
	padding: 24px;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.teknotok-ait-card:hover {
	box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.08);
	border-color: #cbd5e1;
}

.teknotok-ait-card h2 {
	margin-top: 0;
	font-weight: 700;
	font-size: 18px;
	color: var(--teknotok-text);
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.teknotok-ait-card .subtitle {
	color: var(--teknotok-text-muted);
	font-size: 14px;
	margin-bottom: 24px;
}

/* Select, Inputs Styling */
.teknotok-ait-wrap select,
.teknotok-ait-wrap input[type="text"],
.teknotok-ait-wrap input[type="password"],
.teknotok-ait-wrap input[type="number"],
.teknotok-ait-wrap input[type="url"],
.teknotok-ait-wrap input[type="search"] {
	border: 1px solid var(--teknotok-border);
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 14px;
	color: var(--teknotok-text);
	background: #f8fafc;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.teknotok-ait-wrap select:focus,
.teknotok-ait-wrap input[type="text"]:focus,
.teknotok-ait-wrap input[type="password"]:focus,
.teknotok-ait-wrap input[type="number"]:focus,
.teknotok-ait-wrap input[type="url"]:focus,
.teknotok-ait-wrap input[type="search"]:focus {
	border-color: var(--teknotok-primary);
	background: #ffffff;
	outline: none;
	box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

/* Premium Interactive Toggle Switch (iOS styled) */
.teknotok-toggle-container {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	position: relative;
	user-select: none;
}

.teknotok-toggle-input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.teknotok-toggle-track {
	position: relative;
	width: 48px;
	height: 24px;
	background-color: #cbd5e1;
	border-radius: 20px;
	transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	margin-right: 12px;
	display: inline-block;
	vertical-align: middle;
}

.teknotok-toggle-track::before {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background-color: #ffffff;
	top: 3px;
	left: 3px;
	transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15);
}

.teknotok-toggle-input:checked + .teknotok-toggle-track {
	background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.teknotok-toggle-input:checked + .teknotok-toggle-track::before {
	transform: translateX(24px);
}

.teknotok-toggle-input:focus + .teknotok-toggle-track {
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Custom Primary Buttons */
.teknotok-ait-wrap .button-primary {
	background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
	border: none !important;
	font-weight: 600 !important;
	padding: 10px 24px !important;
	height: auto !important;
	border-radius: 8px !important;
	box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2), 0 2px 4px -2px rgba(99, 102, 241, 0.2) !important;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
	color: #ffffff !important;
	text-shadow: none !important;
}

.teknotok-ait-wrap .button-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 12px -1px rgba(99, 102, 241, 0.3), 0 4px 8px -2px rgba(99, 102, 241, 0.3) !important;
	background: linear-gradient(135deg, #4f46e5, #4338ca) !important;
}

/* Target Languages Grid */
.teknotok-languages-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 12px;
	margin-top: 12px;
	max-width: 700px;
}

.teknotok-lang-checkbox-label {
	display: flex !important;
	align-items: center;
	padding: 12px 14px;
	background: #f8fafc;
	border: 1px solid var(--teknotok-border);
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	font-weight: 600;
	font-size: 13px;
	color: var(--teknotok-text);
	user-select: none;
}

.teknotok-lang-checkbox-label:hover {
	background: #f1f5f9;
	border-color: #cbd5e1;
	transform: translateY(-1px);
}

.teknotok-lang-checkbox-label input[type="checkbox"] {
	margin-right: 10px !important;
	border-radius: 4px;
	border-color: #cbd5e1;
}

.teknotok-lang-checkbox-label.is-selected {
	background: #e0e7ff;
	border-color: var(--teknotok-primary);
	color: var(--teknotok-primary-hover);
	box-shadow: 0 2px 4px rgba(99, 102, 241, 0.05);
}

/* Form Tables Modern Restructuring */
.teknotok-ait-wrap .form-table th {
	font-weight: 600;
	color: var(--teknotok-text);
	width: 240px;
	padding: 20px 10px 20px 0;
}

.teknotok-ait-wrap .form-table td {
	padding: 15px 10px;
	vertical-align: middle;
}

.teknotok-ait-wrap .form-table tr {
	border-bottom: 1px solid var(--teknotok-border);
}

.teknotok-ait-wrap .form-table tr:last-child {
	border-bottom: none;
}

/* Translation Progress Bar Widget */
.teknotok-progress-container {
	background: #f8fafc;
	border: 1px solid var(--teknotok-border);
	border-radius: 12px;
	padding: 20px;
	margin: 24px 0;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
}

.teknotok-progress-header {
	display: flex;
	justify-content: space-between;
	font-weight: 700;
	font-size: 14px;
	color: var(--teknotok-text);
	margin-bottom: 10px;
}

.teknotok-progress-track {
	width: 100%;
	height: 12px;
	background: #e2e8f0;
	border-radius: 6px;
	overflow: hidden;
	position: relative;
}

.teknotok-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #6366f1, #4f46e5);
	width: 0%;
	border-radius: 6px;
	transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.teknotok-progress-animated::after {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background-image: linear-gradient(
		-45deg,
		rgba(255, 255, 255, 0.15) 25%,
		transparent 25%,
		transparent 50%,
		rgba(255, 255, 255, 0.15) 50%,
		rgba(255, 255, 255, 0.15) 75%,
		transparent 75%,
		transparent
	);
	background-size: 40px 40px;
	animation: progress-bar-stripes 1.5s linear infinite;
}

@keyframes progress-bar-stripes {
	from { background-position: 40px 0; }
	to { background-position: 0 0; }
}

/* Real-time Diagnostics Dashboard */
.teknotok-status-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 24px;
}

.teknotok-status-card {
	display: flex;
	align-items: center;
	padding: 20px;
	background: #f8fafc;
	border: 1px solid var(--teknotok-border);
	border-radius: var(--teknotok-radius);
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: var(--teknotok-shadow);
}

.teknotok-status-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 20px -5px rgba(15, 23, 42, 0.08);
	border-color: #cbd5e1;
}

.teknotok-status-card .status-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	margin-right: 18px;
}

.teknotok-status-card .status-icon .dashicons {
	font-size: 26px;
	width: 26px;
	height: 26px;
}

.teknotok-status-card .status-info {
	display: flex;
	flex-direction: column;
}

.teknotok-status-card .status-label {
	font-size: 12px;
	font-weight: 700;
	color: var(--teknotok-text-muted);
	margin-bottom: 4px;
	text-transform: uppercase;
	letter-spacing: 0.8px;
}

.teknotok-status-card .status-value {
	font-size: 28px;
	font-weight: 800;
	color: var(--teknotok-text);
	line-height: 1.1;
}

.status-pending .status-icon { background: #fffbeb; color: #d97706; }
.status-pending { border-top: 4px solid #f59e0b; }

.status-processing .status-icon { background: #eff6ff; color: #2563eb; }
.status-processing { border-top: 4px solid #3b82f6; }

.status-completed .status-icon { background: #ecfdf5; color: #059669; }
.status-completed { border-top: 4px solid #10b981; }

.status-failed .status-icon { background: #fef2f2; color: #dc2626; }
.status-failed { border-top: 4px solid #ef4444; }

.spin {
	animation: spin 1.5s linear infinite;
}

/* Action Rows & Layout Grid */
.teknotok-action-form {
	border-top: 1px solid var(--teknotok-border);
	padding-top: 24px;
	margin-top: 24px;
}

.button-group-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 20px !important;
	border-radius: 8px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	height: auto !important;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
	border: 1px solid var(--teknotok-border) !important;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02) !important;
}

.action-btn-danger:hover {
	color: #ef4444 !important;
	border-color: #fca5a5 !important;
	background: #fef2f2 !important;
}

.action-btn-warn:hover {
	color: #d97706 !important;
	border-color: #fde68a !important;
	background: #fffbeb !important;
}

.action-btn-pause:hover {
	color: #2563eb !important;
	border-color: #bfdbfe !important;
	background: #eff6ff !important;
}

.action-btn-resume:hover {
	color: #059669 !important;
	border-color: #a7f3d0 !important;
	background: #ecfdf5 !important;
}

.button-group-divider {
	width: 1px;
	height: 28px;
	background-color: var(--teknotok-border);
	margin: 0 8px;
}

.teknotok-queue-actions {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

/* Environment split dashboard layout */
.teknotok-dashboard-grid {
	display: grid;
	grid-template-columns: 1fr 1.6fr;
	gap: 24px;
}

@media (max-width: 1100px) {
	.teknotok-dashboard-grid {
		grid-template-columns: 1fr;
	}
}

.env-info-list {
	display: flex;
	flex-direction: column;
	margin-top: 20px;
}

.env-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 0;
	border-bottom: 1px solid var(--teknotok-border);
}

.env-item:last-child {
	border-bottom: none;
}

.env-label {
	font-weight: 700;
	font-size: 13px;
	color: var(--teknotok-text);
}

.env-value {
	color: var(--teknotok-text-muted);
}

/* Status Badges */
.badge {
	display: inline-block;
	padding: 5px 12px;
	font-size: 12px;
	font-weight: 700;
	border-radius: 6px;
	background: #f1f5f9;
	color: #475569;
}

.badge-success { background: #d1fae5; color: #065f46; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #e0f2fe; color: #075985; }
.badge-secondary { background: #f3e8ff; color: #6b21a8; }

.status-dot {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 13px;
}

.status-dot::before {
	content: '';
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

.dot-active { color: #059669; }
.dot-active::before { background-color: #10b981; }

.dot-inactive { color: #dc2626; }
.dot-inactive::before { background-color: #ef4444; }

/* Modern Errors Table */
.errors-container {
	margin-top: 20px;
	height: 100%;
}

.errors-table-scroll {
	max-height: 380px;
	overflow-y: auto;
	border: 1px solid var(--teknotok-border);
	border-radius: 12px;
}

.modern-table {
	border: none !important;
	box-shadow: none !important;
	margin: 0 !important;
	width: 100% !important;
	border-collapse: collapse;
}

.modern-table th {
	background: #f8fafc !important;
	font-weight: 700 !important;
	color: var(--teknotok-text) !important;
	padding: 14px 18px !important;
	border-bottom: 2px solid var(--teknotok-border) !important;
}

.modern-table td {
	padding: 14px 18px !important;
	vertical-align: middle !important;
	border-bottom: 1px solid var(--teknotok-border) !important;
}

.modern-table tr:last-child td {
	border-bottom: none !important;
}

.error-msg-col code {
	background: #fef2f2;
	color: #dc2626;
	padding: 4px 8px;
	border-radius: 6px;
	font-family: monospace;
	font-size: 12px;
	display: inline-block;
	max-width: 320px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	border: 1px solid #fee2e2;
}

.time-col {
	color: var(--teknotok-text-muted);
	font-size: 12px;
	font-weight: 500;
}

.empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 50px 20px;
	background: #f8fafc;
	border: 2px dashed var(--teknotok-border);
	border-radius: var(--teknotok-radius);
	color: var(--teknotok-text-muted);
	text-align: center;
}

.empty-state .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	color: #cbd5e1;
	margin-bottom: 14px;
}

/* Premium Dark-Mode IDE Activity Terminal */
.log-clear-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #ef4444 !important;
	text-decoration: none;
	font-weight: 700;
	font-size: 13px;
}

.log-clear-btn:hover {
	color: #b91c1c !important;
}

.log-clear-btn .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.terminal-logs-container {
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25), 0 8px 10px -6px rgba(15, 23, 42, 0.25);
	margin-top: 20px;
	border: 1px solid #334155;
}

.terminal-header {
	background: #1e293b;
	padding: 12px 18px;
	display: flex;
	align-items: center;
	border-bottom: 1px solid #334155;
}

.terminal-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	display: inline-block;
	margin-right: 8px;
}

.red-dot { background: #ef4444; }
.yellow-dot { background: #f59e0b; }
.green-dot { background: #10b981; }

.terminal-title {
	color: #94a3b8;
	font-family: monospace;
	font-size: 12px;
	margin-left: 12px;
	font-weight: 700;
}

.terminal-body {
	background: #0f172a;
	color: #cbd5e1;
	padding: 24px;
	font-family: 'Fira Code', 'Consolas', 'Courier New', monospace;
	font-size: 13px;
	line-height: 1.6;
	height: 320px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #475569 #0f172a;
}

.terminal-body::-webkit-scrollbar {
	width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
	background: #0f172a;
}

.terminal-body::-webkit-scrollbar-thumb {
	background: #334155;
	border-radius: 4px;
	border: 2px solid #0f172a;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
	background: #475569;
}

.log-line {
	margin-bottom: 8px;
	white-space: pre-wrap;
	word-break: break-all;
	border-left: 3px solid transparent;
	padding-left: 10px;
}

.log-info { color: #38bdf8; border-color: #38bdf8; }
.log-warning { color: #f59e0b; border-color: #f59e0b; }
.log-error { color: #f87171; border-color: #f87171; }
.log-empty {
	color: #64748b;
	font-style: italic;
	text-align: center;
	padding: 60px 0;
}

/* Translation Memory Editor */
.teknotok-memory-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 16px;
}

.teknotok-memory-stats div {
	background: #ffffff;
	border: 1px solid var(--teknotok-border);
	border-radius: 8px;
	padding: 10px 14px;
	min-width: 110px;
	box-shadow: var(--teknotok-shadow);
}

.teknotok-memory-stats strong {
	display: block;
	font-size: 18px;
	color: var(--teknotok-text);
}

.teknotok-memory-stats span {
	color: var(--teknotok-text-muted);
	font-size: 12px;
}

.teknotok-editor-toolbar {
	background: #ffffff;
	border: 1px solid var(--teknotok-border);
	border-radius: 8px;
	padding: 14px;
	margin-bottom: 16px;
	box-shadow: var(--teknotok-shadow);
}

.teknotok-editor-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.teknotok-editor-filters input[type="search"] {
	min-width: min(360px, 100%);
}

.teknotok-memory-table-wrap {
	border: 1px solid var(--teknotok-border);
	border-radius: 8px;
	overflow-x: auto;
	background: #ffffff;
	box-shadow: var(--teknotok-shadow);
}

.teknotok-memory-table .teknotok-memory-source {
	max-width: 300px;
	min-width: 240px;
	white-space: normal;
	word-break: break-word;
	line-height: 1.45;
}

.teknotok-memory-translation {
	min-width: 320px;
}

.teknotok-memory-translation .translation-form {
	display: grid;
	grid-template-columns: minmax(260px, 1fr) auto;
	gap: 10px;
	align-items: start;
}

.teknotok-memory-translation textarea {
	width: 100%;
	min-height: 78px;
	border: 1px solid var(--teknotok-border);
	border-radius: 8px;
	padding: 10px;
	line-height: 1.4;
	resize: vertical;
	background: #f8fafc;
}

.teknotok-memory-translation textarea:focus {
	background: #ffffff;
	border-color: var(--teknotok-primary);
	outline: none;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.teknotok-memory-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 88px;
}

.teknotok-memory-pagination {
	margin-top: 14px;
}

@media (max-width: 900px) {
	.teknotok-memory-translation .translation-form {
		grid-template-columns: 1fr;
	}
	.teknotok-memory-actions {
		flex-direction: row;
	}
}

@media (max-width: 1200px) {
	.teknotok-memory-table th:nth-child(5),
	.teknotok-memory-table td:nth-child(5) {
		display: none;
	}
}

/* Premium Uninstall/Deactivation Modal */
.teknotok-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.45);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.teknotok-modal-overlay.active {
	display: flex;
	opacity: 1;
}

.teknotok-modal-window {
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.05);
	width: 100%;
	max-width: 480px;
	overflow: hidden;
	transform: scale(0.9) translateY(20px);
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	border: 1px solid rgba(255, 255, 255, 0.8);
	box-sizing: border-box;
}

.teknotok-modal-overlay.active .teknotok-modal-window {
	transform: scale(1) translateY(0);
}

.teknotok-modal-header {
	padding: 24px 28px;
	background: linear-gradient(135deg, #f8fafc, #f1f5f9);
	border-bottom: 1px solid var(--teknotok-border);
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	box-sizing: border-box;
}

.teknotok-modal-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
	color: var(--teknotok-text);
	display: flex;
	align-items: center;
	gap: 8px;
}

.teknotok-modal-header .dashicons-warning {
	color: #e11d48;
	font-size: 24px;
	width: 24px;
	height: 24px;
	margin: 0;
	padding: 0;
}

.teknotok-modal-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: none;
	border: none;
	color: var(--teknotok-text-muted);
	cursor: pointer;
	padding: 4px;
	border-radius: 50%;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.teknotok-modal-close:hover {
	background: #e2e8f0;
	color: var(--teknotok-text);
}

.teknotok-modal-body {
	padding: 28px;
	color: #334155;
	font-size: 14px;
	line-height: 1.6;
	box-sizing: border-box;
}

.teknotok-modal-body p {
	margin-top: 0;
	margin-bottom: 16px;
}

.teknotok-cleanup-option {
	display: flex;
	align-items: flex-start;
	background: #f8fafc;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 12px;
	cursor: pointer;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.teknotok-cleanup-option:hover {
	border-color: #cbd5e1;
	background: #f1f5f9;
}

.teknotok-cleanup-option.selected {
	border-color: var(--teknotok-primary);
	background: #f5f3ff;
}

.teknotok-cleanup-option input[type="radio"] {
	margin-top: 3px;
	margin-right: 12px;
	flex-shrink: 0;
}

.teknotok-cleanup-option-content {
	display: flex;
	flex-direction: column;
}

.teknotok-cleanup-option-title {
	font-weight: 700;
	color: var(--teknotok-text);
	font-size: 14px;
	margin-bottom: 4px;
	cursor: pointer;
}

.teknotok-cleanup-option-desc {
	font-size: 12px;
	color: var(--teknotok-text-muted);
	line-height: 1.4;
}

.teknotok-modal-footer {
	padding: 20px 28px;
	background: #f8fafc;
	border-top: 1px solid var(--teknotok-border);
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	box-sizing: border-box;
}

.teknotok-modal-btn {
	padding: 10px 18px;
	font-size: 13px;
	font-weight: 700;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	border: 1px solid transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 38px;
	line-height: 1.2;
}

.teknotok-modal-btn-cancel {
	background: #ffffff;
	border-color: #cbd5e1;
	color: #475569;
}

.teknotok-modal-btn-cancel:hover {
	background: #f1f5f9;
	color: #1e293b;
}

.teknotok-modal-btn-submit {
	background: linear-gradient(135deg, #6366f1, #4f46e5);
	color: #ffffff;
	box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2);
}

.teknotok-modal-btn-submit:hover {
	background: linear-gradient(135deg, #4f46e5, #4338ca);
	box-shadow: 0 6px 10px -1px rgba(99, 102, 241, 0.3);
}

.teknotok-modal-btn-submit.loading {
	opacity: 0.7;
	pointer-events: none;
	position: relative;
	color: transparent !important;
}

.teknotok-modal-btn-submit.loading::after {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	top: 50%;
	left: 50%;
	margin-top: -8px;
	margin-left: -8px;
	border: 2px solid #ffffff;
	border-top-color: transparent;
	border-radius: 50%;
	animation: teknotok-spinner 0.6s linear infinite;
}

@keyframes teknotok-spinner {
	to { transform: rotate(360deg); }
}
