/**
 * Swish Migrate and Backup - Admin Styles
 */

/* Layout */
.swish-backup-wrap {
	max-width: 1920px;
	width: 100%;
}

.swish-backup-dashboard {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

/* Cards */
.swish-backup-card {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 20px;
	margin-bottom: 20px;
}

.swish-backup-card h2 {
	margin-top: 0;
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
}

.swish-backup-card-footer {
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid #eee;
}

/* Actions */
.swish-backup-actions {
	display: flex;
	gap: 10px;
	margin-top: 15px;
}

/* Status Grid */
.swish-backup-status-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 15px;
}

.swish-backup-status-item {
	padding: 15px;
	background: #f6f7f7;
	border-radius: 4px;
}

.swish-backup-status-label {
	display: block;
	font-size: 12px;
	color: #646970;
	margin-bottom: 5px;
}

.swish-backup-status-value {
	display: block;
	font-size: 18px;
	font-weight: 600;
	color: #1d2327;
}

/* Status Badges */
.swish-backup-status-badge {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 500;
}

.swish-backup-status-success {
	background: #d4edda;
	color: #155724;
}

.swish-backup-status-warning {
	background: #fff3cd;
	color: #856404;
}

.swish-backup-status-error {
	background: #f8d7da;
	color: #721c24;
}

/* Type Badges */
.swish-backup-type-badge {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
}

.swish-backup-type-full {
	background: #e7f5ff;
	color: #1971c2;
}

.swish-backup-type-database {
	background: #fff9db;
	color: #e67700;
}

.swish-backup-type-files {
	background: #e6fcf5;
	color: #087f5b;
}

/* Empty State */
.swish-backup-empty-state {
	text-align: center;
	padding: 60px 20px;
	background: #f6f7f7;
	border-radius: 4px;
}

.swish-backup-empty-state .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	color: #c3c4c7;
	margin-bottom: 15px;
}

.swish-backup-empty-state h2 {
	margin-bottom: 10px;
}

.swish-backup-empty-state p {
	color: #646970;
	margin-bottom: 20px;
}

/* Progress Bar */
.swish-backup-progress-bar {
	height: 20px;
	background: #f0f0f1;
	border-radius: 10px;
	overflow: hidden;
	margin: 20px 0;
}

.swish-backup-progress-bar-inner {
	height: 100%;
	background: linear-gradient(90deg, #2271b1, #135e96);
	border-radius: 10px;
	transition: width 0.3s ease;
}

.swish-backup-progress-status {
	text-align: center;
	color: #646970;
}

/* Modal */
.swish-backup-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
}

/* Override for React modal overlay */
.swish-modal-overlay {
	background: rgba(0, 0, 0, 0.7) !important;
}

.swish-settings-modal {
	background: #fff;
}

.swish-backup-modal-content {
	background: #fff;
	padding: 30px;
	border-radius: 4px;
	max-width: 500px;
	width: 90%;
}

.swish-backup-modal-content h3 {
	margin-top: 0;
}

.swish-backup-modal-actions {
	display: flex;
	gap: 10px;
	margin-top: 20px;
}

/* CLI Download Modal */
.swish-backup-cli-modal-content {
	max-width: 550px;
}

.swish-backup-cli-description {
	color: #666;
	margin-bottom: 15px;
}

.swish-backup-cli-command-wrapper {
	position: relative;
	background: #1e1e1e;
	border-radius: 4px;
	padding: 15px;
	margin-bottom: 15px;
}

.swish-backup-cli-command {
	background: transparent;
	color: #d4d4d4;
	font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
	font-size: 13px;
	line-height: 1.6;
	margin: 0;
	padding: 0;
	padding-right: 80px;
	white-space: pre-wrap;
	word-break: break-all;
	overflow-x: auto;
}

.swish-backup-cli-copy {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #333 !important;
	border-color: #555 !important;
	color: #fff !important;
}

.swish-backup-cli-copy:hover {
	background: #444 !important;
}

.swish-backup-cli-copy .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
	vertical-align: middle;
	margin-right: 3px;
}

.swish-backup-cli-note {
	background: #f0f6fc;
	border: 1px solid #c8e1ff;
	color: #0366d6;
	padding: 10px 15px;
	border-radius: 4px;
	font-size: 13px;
	margin-bottom: 15px;
}

.swish-backup-cli-note strong {
	color: #24292e;
}

/* CLI Tool Tabs */
.swish-backup-cli-toggle {
	display: flex;
	gap: 0;
	margin-bottom: 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
}

.swish-cli-tab {
	flex: 1;
	padding: 10px 15px;
	border: none;
	background: #f6f7f7;
	color: #50575e;
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.swish-cli-tab:not(:last-child) {
	border-right: 1px solid #ddd;
}

.swish-cli-tab:hover {
	background: #e9ecef;
}

.swish-cli-tab.active {
	background: #2271b1;
	color: #fff;
}

.swish-cli-recommended {
	font-size: 10px;
	background: #d63638;
	color: #fff;
	padding: 2px 6px;
	border-radius: 10px;
	font-weight: 600;
	text-transform: uppercase;
}

.swish-cli-tab.active .swish-cli-recommended {
	background: rgba(255,255,255,0.3);
}

.swish-cli-tool-section {
	margin-bottom: 15px;
}

.swish-backup-cli-tip {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #646970;
	margin-top: 10px;
	padding: 8px 12px;
	background: #f0f6fc;
	border-radius: 4px;
}

.swish-backup-cli-tip .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: #2271b1;
}

.swish-backup-cli-tip a {
	color: #2271b1;
	text-decoration: none;
}

.swish-backup-cli-tip a:hover {
	text-decoration: underline;
}

.swish-backup-warning {
	background: #fff3cd;
	border: 1px solid #ffc107;
	color: #856404;
	padding: 15px;
	border-radius: 4px;
	margin-bottom: 20px;
}

.swish-backup-error-notice {
	background: #fef2f2;
	border: 1px solid #f87171;
	border-left: 4px solid #dc2626;
	color: #991b1b;
	padding: 15px 20px;
	border-radius: 4px;
	margin: 15px 0;
}

.swish-backup-error-notice .dashicons {
	color: #dc2626;
	font-size: 24px;
	width: 24px;
	height: 24px;
	margin-right: 10px;
	float: left;
}

.swish-backup-error-notice p {
	margin: 0 0 10px;
}

.swish-backup-error-notice p:last-child {
	margin-bottom: 0;
}

.swish-backup-error-notice ul {
	margin: 10px 0 0 20px;
	list-style: disc;
}

.swish-backup-error-notice code {
	background: #fee2e2;
	padding: 2px 6px;
	border-radius: 3px;
}

/* Upload Progress */
.swish-upload-progress {
	margin-top: 15px;
	text-align: center;
}

.swish-upload-progress-bar {
	width: 100%;
	max-width: 300px;
	height: 20px;
	background: #e5e7eb;
	border-radius: 10px;
	overflow: hidden;
	margin: 0 auto 8px;
}

.swish-upload-progress-bar-inner {
	height: 100%;
	background: linear-gradient(90deg, #2271b1 0%, #135e96 100%);
	border-radius: 10px;
	transition: width 0.3s ease;
	width: 0%;
}

.swish-upload-progress-text {
	font-size: 14px;
	font-weight: 600;
	color: #1e40af;
}

.swish-backup-restore-options label {
	display: block;
	margin-bottom: 10px;
}

/* Backup Type Selector */
.swish-backup-type-options {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
	margin-top: 15px;
}

.swish-backup-type-option {
	padding: 20px;
	text-align: center;
	border: 2px solid #dcdcde;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.swish-backup-type-option:hover {
	border-color: #2271b1;
	background: #f0f6fc;
}

.swish-backup-type-option.selected {
	border-color: #2271b1;
	background: #f0f6fc;
}

.swish-backup-type-option .dashicons {
	font-size: 32px;
	width: 32px;
	height: 32px;
	color: #2271b1;
	margin-bottom: 10px;
}

.swish-backup-type-option h3 {
	margin: 0 0 5px;
	font-size: 14px;
}

.swish-backup-type-option p {
	margin: 0;
	font-size: 12px;
	color: #646970;
}

/* Migration Wizard */


.swish-backup-migration-options {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
}

.swish-backup-migration-option {
	padding: 30px 20px;
	text-align: center;
	border: 2px solid #dcdcde;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.swish-backup-migration-option:hover {
	border-color: #2271b1;
	background: #f0f6fc;
}

.swish-backup-migration-option .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	color: #2271b1;
	margin-bottom: 15px;
}

.swish-backup-migration-option h3 {
	margin: 0 0 10px;
}

.swish-backup-migration-option p {
	margin: 0;
	color: #646970;
}

.swish-backup-migration-nav {
	display: flex;
	justify-content: space-between;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #dcdcde;
}

/* Upload Area */
.swish-backup-upload-area {
	border: 2px dashed #c3c4c7;
	border-radius: 4px;
	padding: 40px;
	text-align: center;
	transition: all 0.2s ease;
}

.swish-backup-upload-area:hover,
.swish-backup-upload-area.dragover {
	border-color: #2271b1;
	background: #f0f6fc;
}

.swish-backup-upload-area .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	color: #c3c4c7;
}

/* Success Message */
.swish-backup-success-message {
	text-align: center;
	padding: 40px;
}

.swish-backup-success-message .dashicons {
	font-size: 64px;
	width: 64px;
	height: 64px;
	color: #00a32a;
}

/* Tables */
.swish-backup-wrap .wp-list-table .column-filename {
	width: 35%;
}

.swish-backup-wrap .wp-list-table .column-type {
	width: 10%;
}

.swish-backup-wrap .wp-list-table .column-size {
	width: 10%;
}

.swish-backup-wrap .wp-list-table .column-date {
	width: 20%;
}

.swish-backup-wrap .wp-list-table .column-actions {
	width: 25%;
}

.swish-backup-checksum {
	color: #646970;
	font-family: monospace;
}

/* Folder Tree - Granular Selection */
.swish-backup-contents {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.swish-content-item {
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	padding: 12px;
}

.swish-content-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
	cursor: pointer;
}

.swish-content-toggle input[type="checkbox"] {
	margin: 0;
}

.swish-content-toggle .dashicons {
	color: #646970;
}

.swish-core-hint {
	margin: 8px 0 0 0;
	font-size: 12px;
	color: #646970;
}

.swish-loading-folders {
	padding: 10px;
}

.swish-loading-folders .spinner {
	float: none;
	margin: 0;
}

.swish-folder-tree {
	margin-top: 10px;
}

.swish-folder-tree-toggle {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	padding: 8px 12px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
	text-align: left;
	font-size: 13px;
	transition: background-color 0.2s;
}

.swish-folder-tree-toggle:hover:not(:disabled) {
	background: #f0f6fc;
}

.swish-folder-tree-toggle:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.swish-folder-tree-toggle .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	transition: transform 0.2s;
}

.swish-folder-tree-toggle.expanded .dashicons {
	transform: rotate(90deg);
}

.swish-folder-tree-title {
	flex: 1;
}

.swish-folder-tree-count {
	color: #646970;
	font-size: 12px;
}

.swish-folder-tree-items {
	margin-top: 8px;
	padding: 10px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	max-height: 300px;
	overflow-y: auto;
}

.swish-folder-tree-actions {
	display: flex;
	gap: 8px;
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
}

.swish-folder-item {
	padding: 4px 0;
}

.swish-folder-item label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 3px;
	transition: background-color 0.15s;
}

.swish-folder-item label:hover {
	background: #f0f6fc;
}

.swish-folder-item label.active-item {
	background: #e7f5e7;
}

.swish-folder-item input[type="checkbox"] {
	margin: 0;
}

.swish-folder-name {
	flex: 1;
	font-size: 13px;
}

.swish-active-badge {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 6px;
	background: #4ab866;
	color: #fff;
	border-radius: 3px;
	font-size: 10px;
	font-weight: 500;
	text-transform: uppercase;
}

.swish-folder-size {
	color: #888;
	font-size: 12px;
	font-family: monospace;
}

.swish-year-folder {
	margin-left: 24px;
	margin-top: 4px;
}

.swish-year-toggle {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 4px 8px;
	background: none;
	border: none;
	color: #2271b1;
	font-size: 12px;
	cursor: pointer;
}

.swish-year-toggle:hover {
	text-decoration: underline;
}

.swish-year-toggle .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

.swish-month-folders {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 6px;
	padding-left: 20px;
}

.swish-month-item {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 3px 8px;
	background: #f5f5f5;
	border-radius: 3px;
	font-size: 12px;
	cursor: pointer;
	transition: background-color 0.15s;
}

.swish-month-item:hover {
	background: #e0e0e0;
}

.swish-month-item input[type="checkbox"] {
	margin: 0;
}

/* Hosting Presets */
.swish-preset-buttons.hosting-presets {
	margin-top: 10px;
}

/* Archive Format Hint */
.swish-archive-format-hint {
	margin-top: 8px !important;
	font-style: italic;
}

/* Settings Modal */
.swish-settings-modal {
	max-width: 700px;
}

.swish-select-field {
	width: 100%;
	max-width: 400px;
}

/* Active Backup Jobs */
.swish-active-jobs {
	margin-bottom: 25px;
}

.swish-active-jobs-title {
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
	margin: 0 0 15px 0;
	padding: 0;
	border: none;
}

.swish-active-job-card {
	display: flex;
	gap: 24px;
	padding: 20px;
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	margin-bottom: 15px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Circular Progress */
.swish-job-progress-circle {
	position: relative;
	width: 100px;
	height: 100px;
	flex-shrink: 0;
}

.swish-progress-ring {
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.swish-progress-ring-bg {
	fill: none;
	stroke: #e2e8f0;
	stroke-width: 8;
}

.swish-progress-ring-fill {
	fill: none;
	stroke: url(#progressGradient);
	stroke: #2271b1;
	stroke-width: 8;
	stroke-linecap: round;
	transition: stroke-dashoffset 0.5s ease;
	animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {

	0%,
	100% {
		stroke: #2271b1;
	}

	50% {
		stroke: #135e96;
	}
}

.swish-progress-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
}

.swish-progress-percent {
	display: block;
	font-size: 18px;
	font-weight: 700;
	color: #1e40af;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
}

/* Job Details */
.swish-job-details {
	flex: 1;
	min-width: 0;
}

.swish-job-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.swish-job-type-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.swish-job-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
}

.swish-job-status-pending {
	background: #fef3c7;
	color: #92400e;
}

.swish-job-status-pending::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #f59e0b;
	animation: statusPulse 1.5s ease-in-out infinite;
}

.swish-job-status-processing {
	background: #dbeafe;
	color: #1e40af;
}

.swish-job-status-processing::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #3b82f6;
	animation: statusPulse 1s ease-in-out infinite;
}

.swish-job-status-completed {
	background: #d1fae5;
	color: #065f46;
}

.swish-job-status-completed::before {
	content: '✓';
	font-size: 10px;
}

.swish-job-status-failed {
	background: #fee2e2;
	color: #991b1b;
}

.swish-job-status-failed::before {
	content: '✕';
	font-size: 10px;
}

.swish-job-status-starting {
	background: #e0f2fe;
	color: #0369a1;
	animation: statusPulse 1.5s ease-in-out infinite;
}

.swish-job-status-starting::before {
	content: '◠';
	font-size: 10px;
	animation: spin 1s linear infinite;
	display: inline-block;
}

/* Starting job card styles */
.swish-job-starting .swish-progress-ring-fill {
	animation: progressSpin 1.5s linear infinite;
	stroke: #0ea5e9;
}

.swish-job-starting .swish-progress-icon .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
	color: #0ea5e9;
}

.swish-job-starting .swish-progress-icon .dashicons.spin {
	animation: spin 1s linear infinite;
}

@keyframes progressSpin {
	0% {
		stroke-dashoffset: 326.73;
	}
	50% {
		stroke-dashoffset: 163;
	}
	100% {
		stroke-dashoffset: 326.73;
	}
}

@keyframes statusPulse {

	0%,
	100% {
		opacity: 1;
		transform: scale(1);
	}

	50% {
		opacity: 0.5;
		transform: scale(1.2);
	}
}

/* Current Step */
.swish-job-step {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	margin-bottom: 12px;
}

.swish-job-step-icon::before {
	content: '';
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #3b82f6;
	animation: stepPulse 1s ease-in-out infinite;
}

@keyframes stepPulse {

	0%,
	100% {
		box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
	}

	50% {
		box-shadow: 0 0 0 6px rgba(59, 130, 246, 0);
	}
}

.swish-job-step-text {
	font-size: 13px;
	font-weight: 500;
	color: #334155;
}

/* Job Meta */
.swish-job-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 12px;
	color: #64748b;
	margin-bottom: 12px;
}

.swish-job-meta span {
	display: flex;
	align-items: center;
	gap: 4px;
}

.swish-job-started::before {
	content: '⏱';
}

.swish-job-files::before {
	content: '📁';
}

.swish-job-size::before {
	content: '💾';
}

/* Steps Log */
.swish-job-steps-log {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 12px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	max-height: 150px;
	overflow-y: auto;
}

.swish-step-entry {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 8px;
	border-radius: 4px;
	font-size: 12px;
}

.swish-step-entry.swish-step-completed {
	background: #f0fdf4;
}

.swish-step-entry.swish-step-in-progress {
	background: #eff6ff;
}

.swish-step-entry.swish-step-pending {
	background: #f8fafc;
	color: #94a3b8;
}

.swish-step-entry.swish-step-failed {
	background: #fef2f2;
	color: #dc2626;
}

.swish-step-icon {
	width: 16px;
	height: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
}

.swish-step-completed .swish-step-icon::before {
	content: '✓';
	color: #22c55e;
	font-weight: bold;
}

.swish-step-in-progress .swish-step-icon::before {
	content: '';
	width: 8px;
	height: 8px;
	border: 2px solid #3b82f6;
	border-top-color: transparent;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.swish-step-pending .swish-step-icon::before {
	content: '○';
	color: #cbd5e1;
}

.swish-step-failed .swish-step-icon::before {
	content: '✕';
	color: #dc2626;
	font-weight: bold;
}

.swish-step-name {
	flex: 1;
	font-weight: 500;
}

.swish-step-detail {
	color: #64748b;
	font-size: 11px;
}

/* Completed job card */
.swish-active-job-card.swish-job-completed {
	background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
	border-color: #86efac;
}

.swish-job-completed .swish-progress-ring-fill {
	stroke: #22c55e;
	animation: none;
}

.swish-job-completed .swish-progress-percent {
	color: #166534;
}

/* Settings Modal */
.swish-backup-settings-btn {
	margin-left: 5px;
}

.swish-backup-settings-modal-content {
	max-width: 550px;
	width: 90%;
}

.swish-backup-settings-modal-content .swish-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	border-bottom: 1px solid #dcdcde;
	margin: -20px -20px 20px;
}

.swish-backup-settings-modal-content .swish-modal-header h3 {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.swish-backup-settings-modal-content .swish-modal-close {
	background: none;
	border: none;
	cursor: pointer;
	padding: 5px;
	color: #787c82;
}

.swish-backup-settings-modal-content .swish-modal-close:hover {
	color: #1d2327;
}

.swish-settings-body {
	max-height: 60vh;
	overflow-y: auto;
}

.swish-settings-section {
	margin-bottom: 25px;
	padding-bottom: 20px;
	border-bottom: 1px solid #f0f0f1;
}

.swish-settings-section:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

.swish-settings-section h4 {
	margin: 0 0 8px;
	font-size: 14px;
}

.swish-settings-section > .description {
	margin: 0 0 15px;
	color: #646970;
}

.swish-setting-row {
	margin-bottom: 20px;
}

.swish-setting-row:last-child {
	margin-bottom: 0;
}

.swish-setting-row > label {
	display: block;
	font-weight: 500;
	margin-bottom: 8px;
}

.swish-range-control {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 10px;
}

.swish-range-control input[type="range"] {
	flex: 1;
	height: 6px;
	-webkit-appearance: none;
	background: #dcdcde;
	border-radius: 3px;
	outline: none;
}

.swish-range-control input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	background: #2271b1;
	border-radius: 50%;
	cursor: pointer;
}

.swish-range-control .swish-range-value {
	min-width: 50px;
	text-align: right;
	font-weight: 600;
	font-size: 14px;
}

.swish-preset-buttons {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.swish-preset-buttons .button {
	font-size: 12px;
	padding: 2px 8px;
	min-height: 26px;
}

.swish-checkbox-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 10px;
}

.swish-checkbox-item {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px;
	background: #f6f7f7;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.15s;
}

.swish-checkbox-item:hover {
	background: #f0f0f1;
}

.swish-checkbox-item input[type="checkbox"] {
	margin: 0;
}

.swish-checkbox-item .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: #646970;
}

.swish-hosting-presets {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.swish-hosting-presets .button {
	display: flex;
	align-items: center;
	gap: 5px;
}

.swish-hosting-presets .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.swish-modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding-top: 20px;
	margin-top: 20px;
	border-top: 1px solid #dcdcde;
}

/* Responsive */
@media screen and (max-width: 782px) {
	.swish-backup-dashboard {
		grid-template-columns: 1fr;
	}

	.swish-backup-type-options,
	.swish-backup-migration-options {
		grid-template-columns: 1fr;
	}

	.swish-backup-status-grid {
		grid-template-columns: 1fr;
	}

	.swish-folder-tree-items {
		max-height: 200px;
	}

	.swish-month-folders {
		flex-direction: column;
	}

	.swish-active-job-card {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.swish-job-progress-circle {
		margin-bottom: 15px;
	}

	.swish-job-header {
		justify-content: center;
		flex-wrap: wrap;
	}

	.swish-job-step {
		justify-content: center;
	}

	.swish-job-meta {
		justify-content: center;
	}
}