/* Frontend form styling - WordPress.org compliant with seculoco- prefix */
:root {
	--seculoco-danger: #d63638;
}

/* Main container */
.seculoco-form-container {
	max-width: 600px;
	margin: 20px 0;
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 5px;
}

/* Security info section - scoped under main container */
.seculoco-form-container .seculoco-security-info {
	background: #e8f4fd;
	border: 1px solid #bee5eb;
	border-radius: 4px;
	padding: 15px;
	margin-bottom: 20px;
	font-size: 14px;
	line-height: 1.5;
	display: flex;
	align-items: flex-start;
	gap: 15px;
}

.seculoco-form-container .seculoco-security-badge-icon {
	width: 80px;
	height: auto;
	flex-shrink: 0;
	margin-top: 5px;
}

.seculoco-form-container .seculoco-security-info-text {
	flex: 1;
}

.seculoco-form-container .seculoco-security-info p {
	margin: 0 0 10px 0;
}

.seculoco-form-container .seculoco-security-info p:last-child {
	margin-bottom: 0;
}

/* Responsive design for smaller screens */
@media (max-width: 600px) {
	.seculoco-form-container .seculoco-security-info {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.seculoco-form-container .seculoco-security-badge-icon {
		margin: 0 0 10px 0;
		width: 100px;
	}
}

/* Form styling - scoped under main container */
.seculoco-form .seculoco-form-group {
	margin-bottom: 15px;
}

.seculoco-form label {
	display: block;
	margin-bottom: 5px;
	font-weight: normal;
	font-size: 1.0rem;
}

.seculoco-form .seculoco-required {
	color: red;
}

.seculoco-form input,
.seculoco-form textarea {
	width: 100%;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 3px;
	box-sizing: border-box;
	font-family: inherit;
}

.seculoco-form textarea {
	resize: vertical;
	min-height: 120px;
}

/* Password field with toggle button - scoped under main container */
.seculoco-form .seculoco-password-field-wrapper {
	position: relative;
	display: inline-block;
	width: 100%;
}

.seculoco-form .seculoco-password-field-wrapper input {
	padding-right: 40px;
}

.seculoco-form .seculoco-password-toggle-btn {
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	font-size: 14px;
	color: #666;
	padding: 5px;
	z-index: 1;
}

.seculoco-form .seculoco-password-toggle-btn:hover {
	color: #333;
}

.seculoco-form .seculoco-password-toggle-btn:focus {
	outline: 2px solid #0073aa;
	outline-offset: 2px;
}

.seculoco-form .seculoco-form-help {
	display: block;
	margin-top: 5px;
	color: #666;
	font-size: 0.7rem;
}

.seculoco-form .seculoco-submit-btn {
	background: #0073aa;
	color: white;
	padding: 12px 24px;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	font-size: 16px;
	font-weight: bold;
}

.seculoco-form .seculoco-submit-btn:hover {
	background: #005a87;
}

.seculoco-form .seculoco-submit-btn:disabled {
	background: #ccc;
	cursor: not-allowed;
}

.seculoco-form .seculoco-form-message {
	padding: 10px;
	margin-top: 10px;
	border-radius: 3px;
}

.seculoco-form .seculoco-form-message.seculoco-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.seculoco-form .seculoco-form-message.seculoco-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Status Modal Styles - scoped to prevent conflicts */
.seculoco-status-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(5px);
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.seculoco-status-modal-overlay.seculoco-show {
	opacity: 1;
}

.seculoco-status-modal-overlay .seculoco-status-modal {
	background: #fff;
	border-radius: 12px;
	padding: 40px 30px;
	max-width: 400px;
	width: 90%;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	text-align: center;
	transform: scale(0.8);
	transition: transform 0.3s ease;
}

.seculoco-status-modal-overlay.seculoco-show .seculoco-status-modal {
	transform: scale(1);
}

.seculoco-status-modal-overlay .seculoco-status-icon {
	width: 60px;
	height: 60px;
	margin: 0 auto 20px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 30px;
	color: #fff;
	position: relative;
}

.seculoco-status-modal-overlay .seculoco-status-icon.seculoco-processing {
	background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
	animation: seculoco-pulse 2s infinite;
}

.seculoco-status-modal-overlay .seculoco-status-icon.seculoco-success {
	background: linear-gradient(45deg, #56ab2f 0%, #a8e6cf 100%);
}

.seculoco-status-modal-overlay .seculoco-status-icon.seculoco-error {
	background: linear-gradient(45deg, #ff416c 0%, #ff4b2b 100%);
}

@keyframes seculoco-pulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.1); }
	100% { transform: scale(1); }
}

.seculoco-status-modal-overlay .seculoco-spinner {
	width: 30px;
	height: 30px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #fff;
	animation: seculoco-spin 1s linear infinite;
}

@keyframes seculoco-spin {
	to { transform: rotate(360deg); }
}

.seculoco-status-modal-overlay .seculoco-status-text {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	margin-bottom: 20px;
}

.seculoco-status-modal-overlay .seculoco-status-checklist {
	text-align: left;
	margin-bottom: 20px;
}

.seculoco-status-modal-overlay .seculoco-status-step {
	display: flex;
	align-items: center;
	padding: 12px 0;
	font-size: 14px;
	transition: all 0.3s ease;
}

.seculoco-status-modal-overlay .seculoco-status-step-icon {
	width: 20px;
	height: 20px;
	border: 2px solid #ddd;
	border-radius: 50%;
	margin-right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: bold;
	transition: all 0.3s ease;
	flex-shrink: 0;
}

.seculoco-status-modal-overlay .seculoco-status-step.seculoco-pending .seculoco-status-step-icon {
	border-color: #ddd;
	color: #ddd;
}

.seculoco-status-modal-overlay .seculoco-status-step.seculoco-current .seculoco-status-step-icon {
	border-color: #667eea;
	background: #667eea;
	color: white;
	animation: seculoco-pulse-icon 2s infinite;
}

.seculoco-status-modal-overlay .seculoco-status-step.seculoco-completed .seculoco-status-step-icon {
	border-color: #56ab2f;
	background: #56ab2f;
	color: white;
}

.seculoco-status-modal-overlay .seculoco-status-step-text {
	color: #666;
	transition: color 0.3s ease;
}

.seculoco-status-modal-overlay .seculoco-status-step.seculoco-current .seculoco-status-step-text {
	color: #333;
	font-weight: 600;
}

.seculoco-status-modal-overlay .seculoco-status-step.seculoco-completed .seculoco-status-step-text {
	color: #56ab2f;
	font-weight: 500;
}

@keyframes seculoco-pulse-icon {
	0% { transform: scale(1); }
	50% { transform: scale(1.1); }
	100% { transform: scale(1); }
}

.seculoco-status-modal-overlay .seculoco-status-progress {
	width: 100%;
	height: 4px;
	background: #e0e0e0;
	border-radius: 2px;
	overflow: hidden;
	margin-bottom: 20px;
}

.seculoco-status-modal-overlay .seculoco-status-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
	border-radius: 2px;
	width: 0%;
	transition: width 1s ease;
}

.seculoco-status-modal-overlay .seculoco-status-close-btn {
	background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	border: none;
	padding: 12px 30px;
	border-radius: 25px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	margin-top: 10px;
}

.seculoco-status-modal-overlay .seculoco-status-close-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Error and Info Notices */
.seculoco-form-container .seculoco-error-notice,
.seculoco-form-container .seculoco-info-notice {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	padding: 20px;
	border-radius: 8px;
	margin: 20px 0;
}

.seculoco-form-container .seculoco-error-notice {
	background: #fff3cd;
	border: 1px solid #ffc107;
	color: #856404;
}

.seculoco-form-container .seculoco-info-notice {
	background: #d1ecf1;
	border: 1px solid #bee5eb;
	color: #0c5460;
}

.seculoco-form-container .seculoco-error-notice .dashicons,
.seculoco-form-container .seculoco-info-notice .dashicons {
	font-size: 24px;
	flex-shrink: 0;
	margin-top: 2px;
}

.seculoco-form-container .seculoco-error-notice .dashicons {
	color: #856404;
}

.seculoco-form-container .seculoco-info-notice .dashicons {
	color: #0c5460;
}

.seculoco-form-container .seculoco-error-content h3,
.seculoco-form-container .seculoco-info-content h3 {
	margin: 0 0 10px 0;
	font-size: 18px;
	font-weight: 600;
}

.seculoco-form-container .seculoco-error-content p,
.seculoco-form-container .seculoco-info-content p {
	margin: 0 0 15px 0;
}

.seculoco-form-container .seculoco-error-content p:last-child,
.seculoco-form-container .seculoco-info-content p:last-child {
	margin-bottom: 0;
}

.seculoco-form-container .button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
}

.seculoco-form-container .button .dashicons {
	font-size: 18px;
}


.seculoco-no-keys-icon.dashicons,
.seculoco-no-keys-icon.dashicons:before{
	display: block;
	width: 100%;
	height: inherit;
	color: var(--seculoco-danger);
	font-size: 50px;
	line-height: 70px;
}
.seculoco-alert-danger {
	background: #fef2f2;
	border-left: 4px solid var(--seculoco-danger);
}