/**
 * Meta PDF - Estilos principales
 * @package Meta_PDF
 */

/* Botón PDF en editor */
#meta-pdf-button {
	margin-left: 4px;
	padding: 6px 12px;
	background: #e74c3c;
	color: white;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	font-weight: bold;
	font-size: 14px;
	transition: background 0.3s ease;
}

#meta-pdf-button:hover {
	background: #c0392b;
}

#meta-pdf-button:active {
	background: #a93226;
}

/* Modal overlay */
#meta-pdf-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Modal contenido */
.meta-pdf-modal-content {
	background: white;
	border-radius: 8px;
	padding: 30px;
	width: 90%;
	max-width: 500px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.meta-pdf-modal-content h2 {
	margin: 0 0 20px 0;
	color: #333;
	font-size: 18px;
	font-weight: 600;
}

/* Campos del formulario */
.meta-pdf-form-group {
	margin-bottom: 20px;
}

.meta-pdf-form-group label {
	display: block;
	margin-bottom: 10px;
	font-weight: bold;
	color: #666;
	font-size: 14px;
}

.meta-pdf-form-group input[type="text"] {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-sizing: border-box;
	font-family: Arial, sans-serif;
	font-size: 13px;
}

.meta-pdf-form-group input[type="text"]:focus {
	outline: none;
	border-color: #e74c3c;
	box-shadow: 0 0 5px rgba(231, 76, 60, 0.3);
}

/* Botones del modal */
.meta-pdf-modal-buttons {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

.meta-pdf-modal-buttons button {
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: bold;
	font-size: 14px;
	transition: all 0.3s ease;
}

.meta-pdf-modal-buttons button.cancel {
	background: #ccc;
	color: #333;
}

.meta-pdf-modal-buttons button.cancel:hover {
	background: #bbb;
}

.meta-pdf-modal-buttons button.insert {
	background: #e74c3c;
	color: white;
}

.meta-pdf-modal-buttons button.insert:hover {
	background: #c0392b;
}

/* Visualizador de PDF en frontend */
.meta-pdf-viewer {
	width: 100%;
	margin: 20px auto;
}

.meta-pdf-viewer embed {
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Mensaje de error */
.meta-pdf-error {
	color: #e74c3c;
	font-weight: bold;
	padding: 10px;
	background: #ffe6e6;
	border-radius: 4px;
	margin: 10px 0;
}
