/**
 * User Account Deletion - Frontend Styles
 *
 * @package UserAccountDeletion
 * @since 3.0.0
 */

/* Delete Account Form */
.uad-delete-account {
	margin: 20px 0;
}

.uad-form {
	margin: 0;
}

.uad-delete-button {
	background-color: #dc3545;
	color: #fff;
	border: none;
	padding: 12px 24px;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: inherit;
}

.uad-delete-button:hover {
	background-color: #c82333;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.uad-delete-button:focus {
	outline: 2px solid #dc3545;
	outline-offset: 2px;
}

.uad-delete-button:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

/* Notice */
.uad-notice {
	padding: 12px 16px;
	background-color: #f8f9fa;
	border-left: 4px solid #6c757d;
	margin: 20px 0;
	font-size: 14px;
	color: #495057;
}

/* Modal */
.uad-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.uad-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(3px);
}

.uad-modal-content {
	position: relative;
	background: #fff;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	max-width: 500px;
	width: 100%;
	padding: 32px;
	animation: uadSlideIn 0.3s ease-out;
}

@keyframes uadSlideIn {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.uad-modal-title {
	margin: 0 0 20px 0;
	font-size: 18px;
	font-weight: 600;
	color: #5b8888;
}

.uad-modal-body {
	margin-bottom: 24px;
}

.uad-modal-body p {
	margin: 0 0 12px 0;
	font-size: 16px;
	color: #495057;
	line-height: 1.5;
}

.uad-confirm-input {
	width: 100%;
	padding: 12px 16px;
	font-size: 16px;
	border: 2px solid #ced4da;
	margin-bottom: 12px;
	font-family: monospace;
	transition: border-color 0.3s ease;
}

.uad-confirm-input:focus {
	outline: none;
	border-color: #dc3545;
	box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.uad-warning {
	color: #dc3545;
	font-weight: 500;
	font-size: 14px;
}

.uad-modal-footer {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
}

.uad-button {
	padding: 10px 20px;
	font-size: 16px;
	font-weight: 500;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: inherit;
}

.uad-button:focus {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.uad-button-secondary {
	background-color: #6c757d;
	color: #fff;
}

.uad-button-secondary:hover {
	background-color: #5a6268;
}

.uad-button-danger {
	background-color: #dc3545;
	color: #fff;
}

.uad-button-danger:hover:not(:disabled) {
	background-color: #c82333;
}

.uad-button-danger:disabled {
	background-color: #e9ecef;
	color: #6c757d;
	cursor: not-allowed;
	opacity: 0.6;
}

/* Success Modal Overlay */
.uad-success-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(5px);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.uad-success-overlay.uad-show {
	opacity: 1;
}

.uad-success-modal {
	background: #fff;
	padding: 50px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
	text-align: center;
	max-width: 450px;
	width: 90%;
	transform: scale(0.9);
	transition: transform 0.3s ease;
}

.uad-success-overlay.uad-show .uad-success-modal {
	transform: scale(1);
}

.uad-success-modal .uad-icon {
	width: 80px;
	height: 80px;
	margin: 0 auto 25px;
	background: #4CAF50;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 40px;
	animation: successPulse 2s infinite;
}

@keyframes successPulse {

	0%,
	100% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.05);
	}
}

.uad-success-modal h2 {
	font-size: 20px;
	margin: 0 0 15px 0;
	color: #5b8888;
	font-weight: 600;
}

.uad-success-modal p {
	font-size: 16px;
	line-height: 1.6;
	color: #666;
	margin: 0 0 10px 0;
}

.uad-success-modal .uad-countdown {
	font-size: 14px;
	color: #999;
	margin-top: 20px;
}

.uad-success-modal .uad-countdown span {
	font-weight: bold;
	color: #4CAF50;
}

/* Responsive */
@media (max-width: 600px) {
	.uad-modal-content {
		padding: 24px;
	}

	.uad-modal-title {
		font-size: 16px;
	}

	.uad-modal-body p {
		font-size: 14px;
	}

	.uad-button {
		padding: 8px 16px;
		font-size: 14px;
	}

	.uad-delete-button {
		padding: 10px 20px;
		font-size: 14px;
	}

	.uad-success-modal {
		padding: 30px;
	}

	.uad-success-modal h2 {
		font-size: 18px;
	}
}