/**
 * Migration Popup Styles
 *
 * @package TextMe_SMS
 * @since 2.0.0
 */

.textme-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.textme-popup-content {
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	max-width: 600px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
}

.textme-popup-header {
	padding: 20px 20px 0;
	border-bottom: 1px solid #ddd;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.textme-popup-header h3 {
	margin: 0;
}

.textme-popup-close {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.textme-popup-body {
	padding: 20px;
}

.textme-migration-actions {
	margin-top: 20px;
	display: flex;
	gap: 10px;
	align-items: center;
}

.textme-connection-feedback {
	margin: unset !important;
	margin-top: 15px !important;
	padding: 10px !important;
	border-radius: 4px;
}

.textme-connection-feedback.success {
	background: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
}

.textme-connection-feedback.error {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
}

/* Authentication Method Toggle */
.textme-auth-method-toggle {
	display: flex;
	gap: 10px;
	margin-bottom: 5px;
}

.textme-auth-method-btn {
	transition: all 0.3s ease;
}

.textme-auth-method-btn.active {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}

.textme-auth-method-btn:not(.active) {
	background: #f6f7f7;
	border-color: #dcdcde;
	color: #2c3338;
}

.textme-auth-method-btn:not(.active):hover {
	background: #f0f0f1;
	border-color: #8c8f94;
}

/* Password/Token field with eye icon */
.textme-password-wrapper {
	position: relative;
	display: inline-block;
	width: 100%;
	max-width: 400px;
}

.textme-password-wrapper input {
	padding-right: 40px !important;
}

.textme-toggle-visibility {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	color: #787c82;
	font-size: 20px;
	width: 20px;
	height: 20px;
	transition: color 0.2s ease;
}

.textme-toggle-visibility:hover {
	color: #2271b1;
}

.textme-toggle-visibility.dashicons-hidden {
	color: #2271b1;
}
