/* Ultra Addons for WPForms - Telegram Admin Styles */

.wpforms-panel-sidebar-section[data-section="uawpf_telegram"]::after {
	content: "UAWPF";
	display: inline-block;
	background-color: #ff5a5f;
	color: #007A77;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 3px;
	margin-right: 5px;
	vertical-align: middle;
	border-radius: 4px;
	background: #DEEDED;
	font-family: "Figtree", Inter;
	line-height: 148%;
	position: absolute;
	right: 40px;
}


/* Toggle Switch */
.uawpf-telegram-switch {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
}

.uawpf-telegram-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.uawpf-telegram-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: 0.3s;
	border-radius: 24px;
}

.uawpf-telegram-slider:before {
	position: absolute;
	content: "";
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: 0.3s;
	border-radius: 50%;
}

.uawpf-telegram-switch input:checked + .uawpf-telegram-slider {
	background-color: #0073aa;
}

.uawpf-telegram-switch input:checked + .uawpf-telegram-slider:before {
	transform: translateX(20px);
}

/* toggle end */

#uawpf-test-connection,
.uawpf-test-form-send {
	margin-right: 10px;
	margin-bottom: 10px;
}

.uawpf-test-result {
	display: inline-block;
	margin-left: 10px;
	padding: 8px 12px;
	border-radius: 3px;
	font-weight: 500;
	visibility: hidden;
}

.uawpf-test-result.success {
	background: #d4edda;
	color: #155724;
	visibility: visible;
}

.uawpf-test-result.error {
	background: #f8d7da;
	color: #721c24;
	visibility: visible;
}

.uawpf-test-result.loading {
	background: #d1ecf1;
	color: #0c5460;
	visibility: visible;
}

.description {
	font-style: italic;
	color: #666;
	font-size: 13px;
	margin-top: 5px;
	display: block;
}

/* Responsive */
@media (max-width: 768px) {
	.uawpf-container {
		flex-direction: column;
		gap: 15px;
		padding: 0 10px;
	}

	.uawpf-sidebar {
		width: 100%;
	}

	.uawpf-card table.form-table input[type="text"],
	.uawpf-card table.form-table input[type="password"],
	.uawpf-card table.form-table textarea {
		max-width: 100%;
	}
}


.wpforms-label {
	display: block;
	font-weight: 500;
	margin-bottom: 8px;
	color: #333;
}

.uawpf-telegram-row > label {
	margin-bottom: 8px;
	font-weight: 500;
	color: #23282d;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}
