/* Transaction Validation - Fraud Mitigation Admin Styles */

/* Logo Header */
.tvfm-header-with-logo {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 3px solid #A2C839;
}

.tvfm-header-with-logo .tvfm-logo {
	max-width: 200px;
	height: auto;
	display: block;
}

.tvfm-header-with-logo h1 {
	margin: 0;
	color: #001E69;
}

.tvfm-wrap {
	max-width: 1200px;
}

.tvfm-card {
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	padding: 30px;
	margin: 20px 0;
	box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}

.tvfm-status-badge {
	display: inline-block;
	background: #A2C839;
	color: #fff;
	padding: 8px 16px;
	border-radius: 4px;
	font-weight: 600;
	margin-bottom: 20px;
}

.tvfm-status-badge .dashicons {
	vertical-align: middle;
	margin-right: 5px;
}

.tvfm-auth-container {
	max-width: 600px;
	margin: 0 auto;
}

.tvfm-tabs {
	display: flex;
	border-bottom: 2px solid #ddd;
	margin-bottom: 30px;
}

.tvfm-tab {
	background: none;
	border: none;
	padding: 15px 30px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	color: #666;
	position: relative;
	transition: color 0.2s;
}

.tvfm-tab:hover {
	color: #001E69;
}

.tvfm-tab.active {
	color: #001E69;
}

.tvfm-tab.active::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	right: 0;
	height: 2px;
	background: #001E69;
}

.tvfm-tab-content {
	display: none;
}

.tvfm-tab-content.active {
	display: block;
}

.tvfm-form .form-table th {
	padding-left: 0;
}

.tvfm-form .required {
	color: #d63638;
}

.tvfm-info-box {
	background: #f0f6fc;
	border: 1px solid #c3e6fc;
	border-radius: 4px;
	padding: 20px;
	margin: 20px 0;
}

.tvfm-info-box h3 {
	margin-top: 0;
	color: #001E69;
}

/* Button Styling */
.button-primary,
.tvfm-form .button-primary {
	background: #A2C839 !important;
	border-color: #8db030 !important;
	text-shadow: none !important;
	box-shadow: none !important;
}

.button-primary:hover,
.tvfm-form .button-primary:hover {
	background: #8db030 !important;
	border-color: #7a9a28 !important;
}

.button-primary:active,
.button-primary:focus,
.tvfm-form .button-primary:active,
.tvfm-form .button-primary:focus {
	background: #7a9a28 !important;
	border-color: #6a8722 !important;
}

.tvfm-connected .form-table th {
	width: 200px;
	font-weight: 600;
}

.tvfm-settings-header {
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	padding: 20px;
	margin: 20px 0;
}

.tvfm-connection-status {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tvfm-connection-status .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
}

.tvfm-info-section {
	margin-top: 30px;
}

.tvfm-info-section .widefat td {
	padding: 12px;
}

.tvfm-info-section .widefat tr:nth-child(even) {
	background: #f9f9f9;
}

/* Popup/Modal Styles */
.tvfm-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	animation: tvfmFadeIn 0.3s ease;
}

@keyframes tvfmFadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.tvfm-popup {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	max-width: 500px;
	width: 90%;
	animation: tvfmSlideDown 0.3s ease;
	overflow: hidden;
}

@keyframes tvfmSlideDown {
	from {
		transform: translateY(-50px);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.tvfm-popup-header {
	padding: 30px 30px 20px;
	text-align: center;
	position: relative;
}

.tvfm-popup-success .tvfm-popup-header {
	background: linear-gradient(135deg, #A2C839 0%, #8db030 100%);
	color: #fff;
}

.tvfm-popup-error .tvfm-popup-header {
	background: linear-gradient(135deg, #dc3232 0%, #c42525 100%);
	color: #fff;
}

.tvfm-popup-icon {
	display: inline-block;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	line-height: 60px;
	margin-bottom: 10px;
}

.tvfm-popup-icon .dashicons {
	font-size: 36px;
	width: 36px;
	height: 36px;
	line-height: 60px;
}

.tvfm-popup-header h2 {
	margin: 0;
	color: #fff;
	font-size: 24px;
	font-weight: 600;
}

.tvfm-popup-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: none;
	border: none;
	color: #fff;
	font-size: 32px;
	cursor: pointer;
	width: 32px;
	height: 32px;
	line-height: 28px;
	padding: 0;
	opacity: 0.8;
	transition: opacity 0.2s;
}

.tvfm-popup-close:hover {
	opacity: 1;
}

.tvfm-popup-body {
	padding: 30px;
	text-align: center;
}

.tvfm-popup-body p {
	font-size: 16px;
	line-height: 1.6;
	color: #333;
	margin: 0;
}

.tvfm-popup-footer {
	padding: 20px 30px 30px;
	text-align: center;
}

.tvfm-popup-footer .button {
	min-width: 120px;
	height: 40px;
	font-size: 16px;
}

/* Responsive */
@media screen and (max-width: 782px) {
	.tvfm-tabs {
		flex-direction: column;
	}

	.tvfm-tab {
		padding: 12px 20px;
		text-align: left;
	}

	.tvfm-tab.active::after {
		left: 0;
		width: 4px;
		height: 100%;
		bottom: 0;
	}

	.tvfm-popup {
		width: 95%;
		max-width: 95%;
	}

	.tvfm-popup-header {
		padding: 20px 20px 15px;
	}

	.tvfm-popup-icon {
		width: 50px;
		height: 50px;
		line-height: 50px;
	}

	.tvfm-popup-icon .dashicons {
		font-size: 28px;
		line-height: 50px;
	}

	.tvfm-popup-header h2 {
		font-size: 20px;
	}

	.tvfm-popup-body {
		padding: 20px;
	}

	.tvfm-popup-body p {
		font-size: 14px;
	}

	.tvfm-popup-footer {
		padding: 15px 20px 20px;
	}
}

/* Dashboard Styles */
.tvfm-dashboard-container {
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	padding: 0;
	margin: 20px 0;
	overflow: hidden;
	box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}

.tvfm-dashboard-header {
	background: linear-gradient(135deg, #001E69 0%, #003399 100%);
	color: #fff;
	padding: 25px 30px;
	border-bottom: 3px solid #A2C839;
}

.tvfm-dashboard-header h2 {
	margin: 0 0 10px 0;
	color: #fff;
	font-size: 24px;
	font-weight: 600;
}

.tvfm-dashboard-status {
	margin: 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.tvfm-iframe-wrapper {
	position: relative;
	width: 100%;
	min-height: 900px;
	background: #f9f9f9;
}

#tvfm-account-iframe {
	width: 100%;
	height: 900px;
	min-height: 900px;
	border: none;
	display: block;
	background: #fff;
}

.tvfm-iframe-loader {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.98);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 10;
}

.tvfm-spinner {
	width: 60px;
	height: 60px;
	border: 5px solid #f3f3f3;
	border-top: 5px solid #001E69;
	border-radius: 50%;
	animation: tvfmSpin 1s linear infinite;
	margin-bottom: 20px;
}

@keyframes tvfmSpin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.tvfm-iframe-loader p {
	color: #001E69;
	font-size: 16px;
	font-weight: 500;
	margin: 0;
}

.tvfm-iframe-error {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 5;
	padding: 40px;
}

.tvfm-error-content {
	text-align: center;
	max-width: 500px;
}

.tvfm-error-content .dashicons {
	font-size: 64px;
	width: 64px;
	height: 64px;
	color: #dc3232;
	margin-bottom: 20px;
}

.tvfm-error-content h3 {
	color: #001E69;
	font-size: 24px;
	margin: 0 0 15px 0;
}

.tvfm-error-content p {
	color: #666;
	font-size: 15px;
	line-height: 1.6;
	margin: 0 0 25px 0;
}

.tvfm-error-content .button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 16px !important;
	padding: 12px 24px !important;
	height: auto !important;
}

.tvfm-error-content .button .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
	color: #fff;
	margin: 0;
}

.tvfm-dashboard-content {
	padding: 30px;
}

.tvfm-dashboard-notice {
	background: linear-gradient(135deg, #f0f6fc 0%, #e6f2ff 100%);
	border: 2px solid #001E69;
	border-radius: 8px;
	padding: 40px;
	text-align: center;
	margin-bottom: 30px;
}

.tvfm-dashboard-notice .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	color: #001E69;
	margin-bottom: 15px;
}

.tvfm-dashboard-notice h3 {
	color: #001E69;
	font-size: 22px;
	margin: 0 0 15px 0;
}

.tvfm-dashboard-notice p {
	font-size: 15px;
	line-height: 1.6;
	color: #333;
	margin: 0 0 25px 0;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.tvfm-dashboard-button {
	font-size: 16px !important;
	padding: 12px 30px !important;
	height: auto !important;
	line-height: 1.5 !important;
	display: inline-flex !important;
	align-items: center;
	gap: 10px;
}

.tvfm-dashboard-button .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.tvfm-dashboard-hint {
	margin: 15px 0 0 0 !important;
	color: #666;
}

.tvfm-quick-links {
	margin-bottom: 30px;
}

.tvfm-quick-links h3 {
	color: #001E69;
	font-size: 18px;
	margin: 0 0 20px 0;
	padding-bottom: 10px;
	border-bottom: 2px solid #A2C839;
}

.tvfm-links-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 15px;
}

.tvfm-quick-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 20px;
	background: #f9f9f9;
	border: 2px solid #e5e5e5;
	border-radius: 6px;
	text-decoration: none;
	color: #001E69;
	font-weight: 600;
	transition: all 0.3s ease;
}

.tvfm-quick-link:hover {
	background: #fff;
	border-color: #A2C839;
	color: #001E69;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(162, 200, 57, 0.2);
}

.tvfm-quick-link .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
	color: #A2C839;
}

.tvfm-info-banner {
	background: #fffbf0;
	border-left: 4px solid #A2C839;
	padding: 20px;
	border-radius: 4px;
	display: flex;
	align-items: start;
	gap: 15px;
}

.tvfm-info-banner .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
	color: #A2C839;
	flex-shrink: 0;
	margin-top: 2px;
}

.tvfm-info-banner strong {
	color: #001E69;
	display: block;
	margin-bottom: 5px;
}

.tvfm-info-banner p {
	margin: 0;
	color: #666;
	font-size: 14px;
	line-height: 1.5;
}

.tvfm-dashboard-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin: 30px 0;
}

.tvfm-dashboard-box {
	background: #f9f9f9;
	border: 2px solid #e5e5e5;
	border-radius: 8px;
	padding: 30px 20px;
	text-align: center;
	transition: all 0.3s ease;
}

.tvfm-dashboard-box:hover {
	border-color: #A2C839;
	transform: translateY(-3px);
	box-shadow: 0 4px 12px rgba(162, 200, 57, 0.2);
}

.tvfm-dashboard-box .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	color: #001E69;
	margin-bottom: 15px;
}

.tvfm-dashboard-box h3 {
	color: #001E69;
	font-size: 18px;
	margin: 10px 0;
}

.tvfm-dashboard-box p {
	color: #666;
	font-size: 14px;
	margin: 0;
}

.tvfm-dashboard-info {
	background: #f0f6fc;
	border-left: 4px solid #001E69;
	padding: 15px 20px;
	margin-top: 30px;
	border-radius: 4px;
}

.tvfm-status-indicator {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	margin: 0 8px;
}

.tvfm-status-active {
	background: #A2C839;
	box-shadow: 0 0 8px rgba(162, 200, 57, 0.6);
	animation: tvfmPulse 2s infinite;
}

@keyframes tvfmPulse {

	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0.5;
	}
}

/* Edit Account Modal Styles */
.tvfm-modal {
	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;
}

.tvfm-modal-content {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	max-width: 600px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	animation: tvfmModalSlideIn 0.3s ease;
}

@keyframes tvfmModalSlideIn {
	from {
		transform: translateY(-50px);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.tvfm-modal-header {
	background: linear-gradient(135deg, #001E69 0%, #003399 100%);
	color: #fff;
	padding: 20px 25px;
	border-radius: 8px 8px 0 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.tvfm-modal-header h2 {
	margin: 0;
	color: #fff;
	font-size: 20px;
	font-weight: 600;
}

.tvfm-modal-close {
	background: none;
	border: none;
	color: #fff;
	font-size: 32px;
	cursor: pointer;
	width: 32px;
	height: 32px;
	line-height: 28px;
	padding: 0;
	opacity: 0.8;
	transition: opacity 0.2s;
}

.tvfm-modal-close:hover {
	opacity: 1;
}

.tvfm-modal-body {
	padding: 25px;
}

.tvfm-form-row {
	margin-bottom: 20px;
}

.tvfm-form-row label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	color: #001E69;
}

.tvfm-form-row input[type="text"],
.tvfm-form-row input[type="email"],
.tvfm-form-row input[type="password"] {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
}

.tvfm-form-row input[type="text"]:focus,
.tvfm-form-row input[type="email"]:focus,
.tvfm-form-row input[type="password"]:focus {
	border-color: #A2C839;
	outline: none;
	box-shadow: 0 0 0 1px #A2C839;
}

.tvfm-form-row .description {
	margin: 5px 0 0 0;
	color: #666;
	font-size: 12px;
}

.tvfm-modal-footer {
	margin-top: 25px;
	padding-top: 20px;
	border-top: 1px solid #e5e5e5;
	text-align: right;
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

.tvfm-modal-footer .button {
	min-width: 100px;
}