/**
 * Backup Warning Modal Styles
 */

.rsl-ie-backup-warning-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	animation: rslIeBackupFadeIn 0.3s ease;
}

.rsl-ie-backup-warning-modal {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	max-width: 600px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	animation: rslIeBackupSlideUp 0.3s ease;
	position: relative;
}

.rsl-ie-backup-warning-header {
	padding: 30px 30px 20px;
	border-bottom: 1px solid #f0f0f0;
	text-align: center;

	.rsl-ie-warning-icon {
		width: 64px;
		height: 64px;
		margin: 0 auto 15px;
		background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 32px;
		color: #fff;
		animation: rslIeBackupPulse 2s ease infinite;
	}

	h2 {
		margin: 0 0 10px;
		font-size: 24px;
		color: #1e1e1e;
		font-weight: 600;
	}

	p {
		margin: 0;
		color: #666;
		font-size: 15px;
		line-height: 1.5;
	}
}

.rsl-ie-backup-warning-body {
	padding: 30px;
}

.rsl-ie-warning-message {
	background: #fff9e6;
	border-left: 4px solid #ffc107;
	padding: 15px 20px;
	margin-bottom: 25px;
	border-radius: 4px;

	p {
		margin: 0 0 10px;
		color: #856404;
		font-size: 14px;
		line-height: 1.6;

		&:last-child {
			margin-bottom: 0;
		}
	}

	strong {
		color: #664d03;
	}
}

.rsl-ie-backup-recommendations {
	margin-bottom: 25px;

	h3 {
		margin: 0 0 15px;
		font-size: 16px;
		color: #1e1e1e;
		font-weight: 600;
		display: flex;
		align-items: center;
		gap: 8px;

		&:before {
			content: "💡";
			font-size: 20px;
		}
	}
}

.rsl-ie-backup-options {
	display: grid;
	gap: 12px;
	margin-bottom: 20px;
}

.rsl-ie-backup-option {
	background: #f8f9fa;
	border: 2px solid #e9ecef;
	border-radius: 8px;
	padding: 15px;
	transition: all 0.2s ease;

	&:hover {
		border-color: #2271b1;
		background: #f0f6fc;
		transform: translateY(-2px);
		box-shadow: 0 4px 12px rgba(34, 113, 177, 0.1);
	}

	h4 {
		margin: 0 0 5px;
		font-size: 15px;
		color: #1e1e1e;
		font-weight: 600;
		display: flex;
		align-items: center;
		gap: 8px;

		.rsl-ie-badge {
			background: #2271b1;
			color: #fff;
			font-size: 11px;
			padding: 2px 8px;
			border-radius: 12px;
			font-weight: 500;
			text-transform: uppercase;
			letter-spacing: 0.5px;
		}

		.rsl-ie-badge-premium {
			background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
		}

		.rsl-ie-badge-free {
			background: #28a745;
		}
	}

	p {
		margin: 0;
		font-size: 13px;
		color: #666;
		line-height: 1.5;
	}

	.rsl-ie-backup-link {
		display: inline-flex;
		align-items: center;
		gap: 4px;
		color: #2271b1;
		text-decoration: none;
		font-size: 13px;
		margin-top: 8px;
		font-weight: 500;

		&:hover {
			text-decoration: underline;
		}

		&:after {
			content: "→";
		}
	}
}

.rsl-ie-backup-checkboxes {
	background: #f8f9fa;
	border: 2px solid #e9ecef;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 25px;
}

.rsl-ie-backup-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 15px;

	&:last-child {
		margin-bottom: 0;
	}

	input[type="checkbox"] {
		margin: 3px 0 0;
		width: 18px;
		height: 18px;
		cursor: pointer;
		flex-shrink: 0;
	}

	label {
		margin: 0;
		font-size: 14px;
		color: #1e1e1e;
		line-height: 1.6;
		cursor: pointer;
		user-select: none;

		strong {
			font-weight: 600;
		}
	}

	&.rsl-ie-checkbox-required label {
		font-weight: 500;
	}
}

.rsl-ie-backup-warning-footer {
	padding: 20px 30px 30px;
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	border-top: 1px solid #f0f0f0;

	.rsl-ie-button {
		padding: 12px 24px;
		border-radius: 6px;
		font-size: 14px;
		font-weight: 500;
		cursor: pointer;
		border: none;
		transition: all 0.2s ease;
		display: inline-flex;
		align-items: center;
		gap: 8px;

		&:focus {
			outline: none;
			box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.2);
		}
	}

	.rsl-ie-button-secondary {
		background: #fff;
		color: #666;
		border: 2px solid #ddd;

		&:hover {
			background: #f8f9fa;
			border-color: #bbb;
		}
	}

	.rsl-ie-button-primary {
		background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
		color: #fff;
		border: none;

		&:hover:not(:disabled) {
			transform: translateY(-2px);
			box-shadow: 0 6px 20px rgba(34, 113, 177, 0.3);
		}

		&:disabled {
			opacity: 0.5;
			cursor: not-allowed;
		}
	}
}

// Animations
@keyframes rslIeBackupFadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes rslIeBackupSlideUp {
	from {
		opacity: 0;
		transform: translateY(30px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes rslIeBackupPulse {
	0%,
	100% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4);
	}
	50% {
		transform: scale(1.05);
		box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
	}
}

// Responsive
@media (max-width: 768px) {
	.rsl-ie-backup-warning-modal {
		max-width: 100%;
		margin: 0 15px;
	}

	.rsl-ie-backup-warning-header,
	.rsl-ie-backup-warning-body,
	.rsl-ie-backup-warning-footer {
		padding-left: 20px;
		padding-right: 20px;
	}

	.rsl-ie-backup-options {
		grid-template-columns: 1fr;
	}

	.rsl-ie-backup-warning-footer {
		flex-direction: column;

		.rsl-ie-button {
			width: 100%;
			justify-content: center;
		}
	}
}
