/**
 * Systemcheck Widget & Modal Stylesheet.
 *
 * @package Lwd_Hello_Community
 */

.lwd-systemcheck {
	position: relative;
	font-family: inherit;
	box-sizing: border-box;
}

.lwd-systemcheck .hidden {
	display: none !important;
}

.lwd-systemcheck #icon-wrapper {
	width: 100%;
	display: flex;
	justify-content: center;
	padding-bottom: 20px;
}

.lwd-systemcheck #systemcheck-header-icon {
	position: relative;
	display: none;
	height: 54px;
	width: 54px;
	background-color: #f97316;
	border-radius: 50%;
	padding: 10px;
	box-sizing: border-box;
	transition: background-color 0.3s ease;
}

.lwd-systemcheck #systemcheck-header-icon i,
.lwd-systemcheck #systemcheck-header-icon svg,
.lwd-systemcheck #systemcheck-header-icon .icon {
	top: 50%;
	left: 50%;
	color: #ffffff;
	position: absolute;
	transform: translate(-50%, -50%);
	font-size: 24px;
}

.lwd-systemcheck #systemcheck-header-icon.rotate {
	animation: lwd-rotation 2s infinite linear;
}

@keyframes lwd-rotation {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(359deg);
	}
}

.lwd-systemcheck .steps {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 20px;
}

.lwd-systemcheck .steps .step {
	border-radius: 12px;
	padding: 10px 16px;
	text-align: left;
	transition: border-color 0.4s ease, background-color 0.4s ease;
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
}

.lwd-systemcheck .steps .step i {
	font-size: 18px;
}

.lwd-systemcheck .pending {
	border: 2px solid #f97316;
	background: rgba(249, 115, 22, 0.05);
}

.lwd-systemcheck .done {
	border: 2px solid #10b981;
	background: rgba(16, 185, 129, 0.05);
}

.lwd-systemcheck .failed {
	border: 2px solid #ef4444;
	background: rgba(239, 68, 68, 0.05);
}

.lwd-systemcheck #progressbar {
	background-color: #374151;
	border-radius: 13px;
	margin-bottom: 1.5em;
	overflow: hidden;
	height: 24px;
}

.lwd-systemcheck #pg {
	background-color: #f97316;
	height: 100%;
	border-radius: 10px;
	transition: width 0.5s ease-in-out, background-color 0.5s ease-in-out;
	text-align: center;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
}

.lwd-systemcheck #recommended-browsers {
	border: 2px solid #ef4444;
	margin-bottom: 15px;
	border-radius: 12px;
	padding: 16px;
	background: rgba(239, 68, 68, 0.05);
}

.lwd-systemcheck #bandwidth-info,
.lwd-systemcheck #ports-info {
	border: 2px solid #f97316;
	margin-bottom: 15px;
	border-radius: 12px;
	padding: 16px;
	background: rgba(249, 115, 22, 0.05);
}

.lwd-systemcheck #success {
	border: 2px solid #10b981;
	margin-bottom: 15px;
	border-radius: 12px;
	padding: 16px;
	background: rgba(16, 185, 129, 0.05);
	display: flex;
	align-items: center;
	gap: 12px;
}

.lwd-systemcheck #success i,
.lwd-systemcheck #success .icon {
	font-size: 24px;
	color: #10b981;
}

.lwd-systemcheck .fa-check-circle {
	color: #10b981;
}

.lwd-systemcheck .fa-question-circle {
	color: #f97316;
}

.lwd-systemcheck .fa-times-circle {
	color: #ef4444;
}

.lwd-systemcheck button#start,
.lwd-systemcheck-trigger-btn {
	background-color: #ff21c1;
	color: #ffffff;
	border: 2px solid #ff21c1;
	border-radius: 25px;
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.lwd-systemcheck button#start:hover,
.lwd-systemcheck-trigger-btn:hover {
	background-color: #ffffff;
	color: #000000;
	border-color: #ffffff;
}

.lwd-systemcheck button#start:focus-visible,
.lwd-systemcheck-trigger-btn:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 2px;
}

/* Modal Overlay Styles */
.lwd-systemcheck-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lwd-systemcheck-modal-overlay.active {
	opacity: 1;
	visibility: visible;
}

.lwd-systemcheck-modal-content {
	background: #111827;
	color: #ffffff;
	width: 100%;
	max-width: 550px;
	border-radius: 16px;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	padding: 30px;
	position: relative;
	max-height: 90vh;
	overflow-y: auto;
}

/* High-specificity override to protect modal close button from Elementor button styles */
body .lwd-systemcheck-modal-overlay button.lwd-systemcheck-modal-close,
body .lwd-systemcheck-modal-content button.lwd-systemcheck-modal-close,
button.lwd-systemcheck-modal-close {
	position: absolute !important;
	top: 16px !important;
	right: 16px !important;
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	min-height: 36px !important;
	padding: 0 !important;
	margin: 0 !important;
	background: rgba(255, 255, 255, 0.1) !important;
	border: 1px solid rgba(255, 255, 255, 0.2) !important;
	border-radius: 50% !important;
	color: #ffffff !important;
	font-size: 22px !important;
	font-weight: 300 !important;
	line-height: 1 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	box-shadow: none !important;
	text-shadow: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease !important;
}

body .lwd-systemcheck-modal-overlay button.lwd-systemcheck-modal-close:hover,
body .lwd-systemcheck-modal-content button.lwd-systemcheck-modal-close:hover,
button.lwd-systemcheck-modal-close:hover {
	background: rgba(255, 255, 255, 0.25) !important;
	border-color: rgba(255, 255, 255, 0.4) !important;
	color: #ffffff !important;
	transform: scale(1.05);
}

/* ==========================================================================
   Responsive Design Breakpoints
   ========================================================================== */

@media (max-width: 768px) {
	.lwd-systemcheck {
		padding: 20px 15px;
	}

	.lwd-systemcheck-modal-content {
		width: 95%;
		padding: 20px 16px;
		max-height: 90vh;
		overflow-y: auto;
	}

	.lwd-systemcheck-modal-content h2 {
		font-size: 18px !important;
		padding-right: 40px;
	}

	.lwd-systemcheck .step {
		font-size: 13px;
		padding: 8px 10px;
	}

	.lwd-systemcheck button#start,
	.lwd-systemcheck-trigger-btn {
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.lwd-systemcheck #icon-wrapper span {
		width: 60px;
		height: 60px;
		line-height: 60px;
	}

	.lwd-systemcheck #icon-wrapper span i {
		font-size: 28px;
	}
}

body .lwd-systemcheck-modal-overlay button.lwd-systemcheck-modal-close:focus-visible,
body .lwd-systemcheck-modal-content button.lwd-systemcheck-modal-close:focus-visible,
button.lwd-systemcheck-modal-close:focus-visible {
	outline: 2px solid #ffffff !important;
	outline-offset: 2px !important;
}
