/* ==========================================================
   Live Trackers Plugin - Frontend Styles (VIP Edition)
   ========================================================== */

#sim-widget, #sim-widget *,
#sw-overlay, #sw-overlay * {
	box-sizing: border-box;
	font-family: 'Segoe UI', Arial, sans-serif;
}

:root {
	--sw-primary: #1E3A8A;
	--sw-secondary: #3B82F6;
}

/* ---------------- Main Search Card ---------------- */
.sw-card {
	max-width: 560px;
	margin: 20px auto;
	background: #ffffff;
	border: 2px solid var(--sw-primary);
	border-radius: 18px;
	padding: 32px 28px;
	box-shadow: 0 4px 18px rgba(30, 58, 138, 0.12);
}

.sw-title {
	text-align: center;
	color: var(--sw-primary) !important;
	font-size: 26px;
	font-weight: 800;
	margin: 0 0 8px;
}

.sw-subtitle {
	text-align: center;
	color: #555 !important;
	font-size: 14px;
	margin: 0 0 22px;
}

/* Social proof */
.sw-social-proof {
	text-align: center;
	background: #FEF3C7;
	color: #92400E !important;
	font-size: 13px;
	padding: 8px 14px;
	border-radius: 8px;
	margin: 0 0 18px;
	font-weight: 600;
}

/* Tabs */
.sw-tabs {
	display: flex;
	background: #EEF2FF;
	border-radius: 10px;
	padding: 4px;
	margin-bottom: 20px;
	gap: 4px;
}

.sw-tab {
	flex: 1;
	border: none;
	background: transparent;
	padding: 12px 10px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 14px;
	color: var(--sw-primary) !important;
	cursor: pointer;
	transition: all 0.2s ease;
}

.sw-tab.active {
	background: linear-gradient(135deg, var(--sw-primary), var(--sw-secondary));
	color: #ffffff !important;
	box-shadow: 0 2px 8px rgba(30,58,138,0.3);
}

/* Form */
.sw-label {
	display: block;
	font-weight: 700;
	color: var(--sw-primary) !important;
	margin-bottom: 8px;
	font-size: 14px;
}

.sw-input {
	width: 100%;
	padding: 14px 16px;
	border: 2px solid var(--sw-secondary);
	border-radius: 10px;
	font-size: 16px;
	margin-bottom: 10px;
	outline: none;
	color: #1a1a1a !important;
	background: #ffffff !important;
	transition: border-color 0.2s ease;
}

.sw-input:focus {
	border-color: var(--sw-primary);
}

.sw-input::placeholder {
	color: #999 !important;
}

/* Validation error */
.sw-error {
	color: #DC2626 !important;
	background: #FEF2F2;
	border-left: 3px solid #DC2626;
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 6px;
	margin: 0 0 14px;
}

/* Buttons (general) */
.sw-btn,
.sw-btn:link,
.sw-btn:visited,
.sw-btn:hover,
.sw-btn:active {
	width: 100%;
	padding: 15px;
	border: none;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--sw-primary), var(--sw-secondary));
	color: #ffffff !important;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none !important;
	transition: opacity 0.2s ease, transform 0.1s ease;
	text-align: center;
	line-height: 1.4;
}

.sw-btn:hover { opacity: 0.92; }
.sw-btn:active { transform: scale(0.99); }

/* Quick links (chips) */
.sw-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
	justify-content: center;
}

.sw-chip,
.sw-chip:link,
.sw-chip:visited {
	flex: 1 1 auto;
	text-align: center;
	background: #EEF2FF;
	color: var(--sw-primary) !important;
	text-decoration: none !important;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.sw-chip:hover { background: #DCE6FF; }

/* ---------------- Popup / Modal ---------------- */
.sw-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.6);
	z-index: 999999;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.sw-overlay.open { display: flex; }

.sw-modal {
	background: #ffffff;
	border-radius: 16px;
	max-width: 380px;
	width: 100%;
	padding: 30px 26px 26px;
	text-align: center;
	position: relative;
	box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

.sw-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	border: none;
	background: transparent;
	font-size: 22px;
	color: #888 !important;
	cursor: pointer;
	line-height: 1;
}

.sw-modal-icon { font-size: 40px; margin-bottom: 12px; }

.sw-modal h3 {
	color: var(--sw-primary) !important;
	margin: 0 0 10px;
	font-size: 19px;
}

.sw-modal p {
	color: #555 !important;
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 20px;
}

.sw-modal .sw-btn {
	margin-top: 15px;
}

/* Rotating Timer */
.sw-timer {
	font-size: 42px;
	font-weight: 800;
	color: var(--sw-primary) !important;
	margin: 20px auto;
	width: 85px;
	height: 85px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 6px solid #e5e7eb;
	border-radius: 50%;
	position: relative;
}

.sw-timer::after {
	content: '';
	position: absolute;
	width: 85px;
	height: 85px;
	border: 6px solid transparent;
	border-top-color: var(--sw-secondary);
	border-radius: 50%;
	animation: sw-spin 1s linear infinite;
	top: -6px;
	left: -6px;
}

@keyframes sw-spin {
	to { transform: rotate(360deg); }
}

/* ---------------- Found-Result Screen (real API data, in a table) ---------------- */
#sw-found-screen .sw-modal-icon {
	color: #16A34A;
}

#sw-found-screen h3 {
	color: #16A34A !important;
	margin-bottom: 14px;
}

.sw-found-table-wrap {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: 10px;
}

.sw-found-table {
	width: 100%;
	border-collapse: collapse;
	background: #F0FDF4;
	border: 1px solid #BBF7D0;
	border-radius: 10px;
	font-size: 13px;
	text-align: left;
}

.sw-found-table tr {
	border-bottom: 1px solid #DCFCE7;
}

.sw-found-table tr:last-child {
	border-bottom: none;
}

.sw-found-table th,
.sw-found-table td {
	padding: 10px 12px;
	vertical-align: top;
	text-align: left;
}

.sw-found-table th {
	color: #166534 !important;
	font-weight: 700;
	width: 42%;
	white-space: nowrap;
	font-size: 12px;
}

.sw-found-table td {
	color: #1a1a1a !important;
	font-weight: 600;
	word-break: break-word;
	line-height: 1.5;
}

/* ---------------- Action buttons: Owner-All-Numbers / New Search ---------------- */
.sw-found-actions {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sw-secondary-btn,
.sw-secondary-btn:link,
.sw-secondary-btn:visited {
	width: 100%;
	padding: 13px 16px;
	border: none;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--sw-primary), var(--sw-secondary));
	color: #ffffff !important;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	text-decoration: none !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	box-shadow: 0 4px 12px rgba(30,58,138,0.25);
}
.sw-secondary-btn:hover { transform: translateY(-2px); }
.sw-secondary-btn:active { transform: translateY(0); }

.sw-secondary-btn-outline,
.sw-secondary-btn-outline:link,
.sw-secondary-btn-outline:visited {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid #E5E7EB;
	border-radius: 10px;
	background: #ffffff;
	color: #374151 !important;
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
	text-decoration: none !important;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.sw-secondary-btn-outline:hover {
	background: #F9FAFB;
	border-color: #D1D5DB;
}

/* ---------------- Floating WhatsApp Icon Button ---------------- */
.lt-floating-icon-btn {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	display: flex !important;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(0,0,0,0.3);
	z-index: 999999;
	text-decoration: none !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	animation: lt-pulse 2.4s infinite;
}

.lt-floating-icon-btn:hover {
	transform: scale(1.08);
	box-shadow: 0 6px 18px rgba(0,0,0,0.35);
	animation: none;
}

.lt-floating-icon-btn svg {
	width: 30px;
	height: 30px;
	display: block;
}

/* Halka sa "breathing" pulse effect - attention khainchta hai */
@keyframes lt-pulse {
	0% { box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.4); }
	70% { box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4), 0 0 0 14px rgba(37, 211, 102, 0); }
	100% { box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------------- Responsive Design ---------------- */

@media (max-width: 768px) {
	.sw-card {
		max-width: 100%;
		margin: 15px 10px;
		padding: 26px 20px;
	}
	.sw-title { font-size: 22px; }
	.sw-subtitle { font-size: 13px; }
}

@media (max-width: 480px) {
	.sw-card {
		padding: 20px 16px;
		border-radius: 14px;
		margin: 10px auto;
	}
	.sw-title { font-size: 19px; }
	.sw-subtitle { font-size: 12px; margin-bottom: 12px; }
	.sw-social-proof { font-size: 12px; padding: 6px 10px; }

	.sw-tab {
		font-size: 12px;
		padding: 10px 6px;
	}

	.sw-input {
		font-size: 16px;
		padding: 12px 14px;
	}

	.sw-btn {
		font-size: 14px;
		padding: 13px;
	}

	.sw-links {
		gap: 6px;
	}
	.sw-chip {
		font-size: 11px;
		padding: 8px 8px;
		flex: 1 1 40%;
	}

	.sw-modal {
		padding: 24px 18px 20px;
		max-width: 92vw;
	}
	.sw-modal h3 { font-size: 17px; }
	.sw-modal p { font-size: 13px; }

	.sw-timer {
		width: 70px;
		height: 70px;
		font-size: 34px;
	}
	.sw-timer::after {
		width: 70px;
		height: 70px;
	}

	.sw-found-table th,
	.sw-found-table td {
		padding: 8px 10px;
		font-size: 12px;
	}
	.sw-found-table th {
		width: 38%;
	}

	.sw-secondary-btn,
	.sw-secondary-btn-outline {
		font-size: 12.5px;
		padding: 11px 14px;
	}

	.lt-floating-icon-btn {
		width: 52px;
		height: 52px;
	}
	.lt-floating-icon-btn svg {
		width: 26px;
		height: 26px;
	}
}

@media (max-width: 360px) {
	.sw-tabs {
		flex-direction: column;
	}
	.sw-chip {
		flex: 1 1 100%;
	}
}
/* NEW: Pretty WhatsApp CTA button in popup */
.sw-cta-whatsapp {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 14px 20px;
	margin-top: 15px;
	border: none;
	border-radius: 50px;
	background: linear-gradient(90deg, #0d9488, #22c55e) !important;
	color: #ffffff !important;
	font-size: 16px;
	font-weight: 800;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sw-cta-whatsapp:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(13, 148, 136, 0.45);
}
.sw-cta-whatsapp:active {
	transform: translateY(0);
}

/* ---------------- Not-Found screen: WhatsApp + App Download CTAs ---------------- */
.sw-not-found-ctas {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 6px;
}

/* App Download CTA button — same shape/weight as the WhatsApp CTA,
   but a distinct blue/purple gradient so the two are easy to tell apart
   when both are shown together. */
.sw-cta-appdownload {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 14px 20px;
	margin-top: 0;
	border: none;
	border-radius: 50px;
	background: linear-gradient(90deg, #4338CA, #3B82F6) !important;
	color: #ffffff !important;
	font-size: 16px;
	font-weight: 800;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(67, 56, 202, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sw-cta-appdownload:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(67, 56, 202, 0.45);
}
.sw-cta-appdownload:active {
	transform: translateY(0);
}

/* When only one CTA is present, sw-cta-whatsapp keeps its own margin-top
   (15px) from the rule above; inside the flex wrapper we don't want that
   doubled up with the wrapper's own gap. */
.sw-not-found-ctas .sw-cta-whatsapp {
	margin-top: 0;
}