/* Frontend QR Etiqueta Styles */

.qr-etiqueta-frontend {
	background: white;
	padding: 20px;
	border-radius: 8px;
	max-width: 400px;
	margin: 20px auto;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.qr-form-wrapper h3 {
	margin-top: 0;
	margin-bottom: 20px;
	text-align: center;
	color: #333;
	font-size: 18px;
	font-weight: bold;
}

.qr-form-frontend {
	display: flex;
	flex-direction: column;
}

.form-group {
	margin-bottom: 15px;
}

.form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
	font-size: 14px;
	color: #333;
}

.qr-input {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 16px;
	box-sizing: border-box;
	font-family: 'Courier New', monospace;
	letter-spacing: 2px;
}

.qr-input:focus {
	outline: none;
	border-color: #007cba;
	box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.form-group small {
	display: block;
	margin-top: 5px;
	color: #666;
	font-size: 12px;
}

.btn {
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: bold;
	cursor: pointer;
	width: 100%;
	transition: all 0.3s ease;
}

.btn-primary {
	background: #007cba;
	color: white;
	margin-bottom: 15px;
}

.btn-primary:hover {
	background: #005a87;
}

.btn-primary:active {
	transform: scale(0.98);
}

.btn-secondary {
	background: #6c757d;
	color: white;
}

.btn-secondary:hover {
	background: #5a6268;
}

.qr-preview-frontend {
	text-align: center;
	margin: 15px 0;
	padding: 15px;
	background: #f5f5f5;
	border-radius: 4px;
	min-height: 150px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.qr-preview-frontend img {
	max-width: 100%;
	max-height: 150px;
}

.qr-result-frontend {
	margin-top: 20px;
}

.loading {
	text-align: center;
	color: #666;
	padding: 20px;
	font-style: italic;
}

.loading::after {
	content: '...';
	animation: dots 1.5s steps(3, end) infinite;
}

@keyframes dots {
	0%, 20% {
		content: '';
	}
	40% {
		content: '.';
	}
	60% {
		content: '..';
	}
	80%, 100% {
		content: '...';
	}
}

.error {
	background: #f8d7da;
	color: #721c24;
	padding: 12px;
	border-radius: 4px;
	border-left: 4px solid #f5c6cb;
	margin-top: 15px;
}

.success {
	background: #d4edda;
	color: #155724;
	padding: 12px;
	border-radius: 4px;
	border-left: 4px solid #c3e6cb;
	margin-top: 15px;
}
