/**
 * AV 2FA Admin Styles
 *
 * @since 1.2.0
 * @package AV_2FA
 */

/* Slug field wrapper */
.av-2fa-slug-field-wrapper {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

.av-2fa-slug-field-wrapper input[type="text"] {
	flex: 1;
	min-width: 200px;
	max-width: 400px;
}

/* Info box styling */
.av-2fa-info-box {
	background: #f0f6fc;
	border-left: 4px solid #2271b1;
	padding: 12px;
	margin: 15px 0;
}

.av-2fa-info-box p {
	margin: 0 0 10px 0;
}

.av-2fa-info-box p:last-child {
	margin-bottom: 0;
}

.av-2fa-info-box code {
	display: inline-block;
	background: #fff;
	padding: 4px 8px;
	border-radius: 3px;
	font-size: 12px;
}

/* Login URL preview box */
.av-2fa-login-url-preview {
	margin-top: 15px;
	padding: 12px;
	background: #f0f0f1;
	border-radius: 4px;
}

.av-2fa-login-url-preview p {
	margin: 0 0 5px 0;
}

.av-2fa-login-url-preview code {
	display: block;
	padding: 8px;
	background: #fff;
	border-radius: 3px;
	word-break: break-all;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.av-2fa-login-url-preview code:hover {
	background: #f0f6fc;
}

/* Inline notice styling */
.notice.inline {
	margin: 10px 0;
}

/* Button states */
#av-2fa-generate-slug {
	white-space: nowrap;
}

#av-2fa-generate-slug:disabled {
	cursor: not-allowed;
}

#av-2fa-generate-slug.loading {
	opacity: 0.7;
	pointer-events: none;
}

/* Copy success tooltip */
.av-2fa-copy-tooltip {
	position: fixed;
	background: #1d2327;
	color: #fff;
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 13px;
	z-index: 100000;
	animation: av2fa-fade-in 0.2s ease;
}

@keyframes av2fa-fade-in {
	from {
		opacity: 0;
		transform: translateY(-5px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Settings section styling */
.form-table th {
	vertical-align: top;
	padding-top: 20px;
}

/* Warning text */
.av-2fa-warning {
	color: #d63638;
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
	.av-2fa-slug-field-wrapper {
		flex-direction: column;
		align-items: stretch;
	}

	.av-2fa-slug-field-wrapper input[type="text"] {
		max-width: none;
	}

	.av-2fa-slug-field-wrapper button {
		width: 100%;
	}
}

/* Locked accounts table styling */
#av-2fa-locked-accounts {
	margin-top: 10px;
}

#av-2fa-locked-accounts .wp-list-table {
	border: 1px solid #c3c4c7;
	background: #fff;
}

#av-2fa-locked-accounts th {
	font-weight: 600;
	padding: 8px 10px;
}

#av-2fa-locked-accounts td {
	padding: 10px;
	vertical-align: middle;
}

#av-2fa-locked-accounts .description {
	color: #646970;
	font-size: 13px;
}

#av-2fa-locked-accounts .av-2fa-unlock-user {
	white-space: nowrap;
}

#av-2fa-locked-accounts .av-2fa-unlock-user:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

#av-2fa-locked-accounts .av-2fa-unlock-user.loading {
	opacity: 0.7;
	pointer-events: none;
}

/* Table row fade out animation */
#av-2fa-locked-accounts tr {
	transition: opacity 0.3s ease;
}

/* Responsive table adjustments */
@media screen and (max-width: 782px) {
	#av-2fa-locked-accounts .wp-list-table {
		font-size: 14px;
	}

	#av-2fa-locked-accounts th,
	#av-2fa-locked-accounts td {
		padding: 8px;
	}

	#av-2fa-locked-accounts .av-2fa-unlock-user {
		width: 100%;
		margin-top: 5px;
	}
}