/**
 * Pastkolor WC Common Styles
 * Estilos compartidos para todas las páginas de mapeo
 */

:root {
	--pastkolor-primary-color: #017cba;
	--pastkolor-header-bg: #ffffff;
	--pastkolor-border-color: #dcdcde;
	--pastkolor-box-bg: #ffffff;
	--pastkolor-box-header-bg: #f6f7f7;
	--pastkolor-gradient-blue: linear-gradient(135deg, #017cba 0%, #0299d4 100%);
	--pastkolor-gradient-dark: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

/* ========================================
   CABECERAS DE SECCIÓN CON GRADIENTE
======================================== */
.section-header {
	background: linear-gradient(135deg, #017cba 0%, #0284c7 50%, #0369a1 100%);
	color: white !important;
	padding: 15px 20px;
	margin: 0;
	border-radius: 8px 8px 0 0;
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	font-size: 16px;
	box-shadow: 0 2px 4px rgba(1, 124, 186, 0.2);
	overflow: hidden;
}

.section-header::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
}

.section-header .dashicons {
	color: white !important;
	font-size: 18px;
}

.section-header h1,
.section-header h2,
.section-header h3,
.section-header h4 {
	color: white !important;
	margin: 0;
	font-weight: 600;
}

.section-header .mapping-count {
	background: rgba(255, 255, 255, 0.2);
	color: white !important;
	padding: 4px 12px;
	border-radius: 15px;
	font-size: 12px;
	font-weight: 500;
	margin-left: auto;
}

/* WordPress admin background - slightly off-white */
#wpwrap {
	background-color: #fafafa !important;
}

#wpcontent {
	background-color: #f8f9fa !important;
	padding-top: 10px;
}

/* Wrapper margin */
.wrap {
	margin-top: 10px !important;
}

/* Accordion styles */
.pastkolor-help-center {
	background: white;
	border-radius: 12px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.08);
	margin-bottom: 30px;
	overflow: hidden;
}

.accordion-header {
	background: linear-gradient(135deg, #017cba 0%, #0284c7 50%, #0369a1 100%);
	color: white !important;
	padding: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 15px;
	transition: all 0.3s ease;
	user-select: none;
	position: relative;
	overflow: hidden;
}

.accordion-header::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
}

.accordion-header:hover {
	background: linear-gradient(135deg, #0369a1 0%, #017cba 50%, #0284c7 100%);
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(1, 124, 186, 0.3);
}

.accordion-header .dashicons {
	color: white !important;
	font-size: 20px;
}

.accordion-header h3 {
	color: white !important;
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	flex: 1;
}

.accordion-arrow {
	color: white !important;
	transition: transform 0.3s ease;
	font-size: 16px;
}

.accordion-header.active .accordion-arrow {
	transform: rotate(180deg);
}

.accordion-content {
	padding: 0;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
	background: white;
}

.accordion-content.active {
	max-height: min-content;
	padding: 25px;
}

/* Help grid with more spacing */
.help-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 25px;
	margin-bottom: 20px;
}

.help-section {
	background: #f8f9fa;
	padding: 20px;
	border-radius: 8px;
	border: 1px solid #e9ecef;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.help-section h4 {
	color: #017cba !important;
	margin: 0 0 15px 0;
	font-size: 15px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
}

.help-section h4 .dashicons {
	color: #017cba !important;
	font-size: 16px;
}

.help-section ol,
.help-section ul {
	margin: 0;
	padding-left: 18px;
	flex: 1;
}

.help-section li {
	margin-bottom: 6px;
	line-height: 1.4;
	color: #374151;
	font-size: 13px;
}

.help-tips {
	background: white;
	padding: 15px;
	border-radius: 6px;
	border-left: 3px solid #017cba;
	margin-top: 15px;
}

.help-tips h5 {
	color: #017cba !important;
	margin: 0 0 10px 0;
	font-size: 13px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 6px;
}

.help-tips h5 .dashicons {
	color: #017cba !important;
	font-size: 14px;
}

.help-tips ul {
	margin: 0;
	padding-left: 14px;
}

.help-tips li {
	margin-bottom: 4px;
	font-size: 12px;
	color: #4b5563;
}

/* Mapping examples section with white bubble and blue title */
.mapping-example-section {
	background: white;
	padding: 25px;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
	margin-top: 20px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.mapping-example-section h4 {
	color: #017cba !important;
	margin: 0 0 20px 0;
	font-size: 16px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 10px;
	border-bottom: 1px solid #f3f4f6;
}

.mapping-example-section h4 .dashicons {
	color: #017cba !important;
	font-size: 16px;
}

.mapping-examples-grid {
	display: contents;
	gap: 20px;
}

.mapping-example {
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 18px;
	transition: all 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
	min-height: 180px;
}

.mapping-example:hover {
	border-color: #017cba;
	box-shadow: 0 4px 12px rgba(1, 124, 186, 0.15);
	transform: translateY(-2px);
}

.example-step {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 12px;
	align-items: center;
	margin-bottom: 15px;
	flex: 1;
}

.api-category-example,
.wc-category-example {
	background: white;
	padding: 12px;
	border-radius: 6px;
	border: 1px solid #d1d5db;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
	font-size: 12px;
	min-height: 60px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.api-category-example strong,
.wc-category-example strong {
	color: #374151;
	font-weight: 600;
	font-size: 12px;
	display: block;
	margin-bottom: 4px;
	line-height: 1.3;
}

.api-category-example small,
.wc-category-example small {
	color: #6b7280;
	font-size: 10px;
	line-height: 1.3;
	display: block;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.arrow-example {
	font-size: 16px;
	color: #017cba;
	font-weight: bold;
	text-align: center;
	min-width: 20px;
	flex-shrink: 0;
}

.example-result {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px;
	background: white;
	border-radius: 6px;
	border: 1px solid #d1d5db;
	margin-top: auto;
	font-size: 12px;
}

.not-mapped {
	color: #dc2626;
	font-weight: 600;
}

.faq-item {
	margin-bottom: 20px;
	padding: 15px;
	background: white;
	border-radius: 8px;
	border-left: 3px solid #017cba;
}

.faq-item strong {
	color: #374151;
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
}

.faq-item span {
	color: #6b7280;
	line-height: 1.5;
}

/* Search & Filters styling */
.search-filters-section,
.actions-section,
.category-mapping-container,
.pagination-container,
.top-pagination-container {
	background: white;
	border-radius: 12px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.08);
	margin-bottom: 25px;
	overflow: hidden;
}

.filters-content,
.actions-content,
.top-pagination-content,
.pagination-content {
	padding: 25px;
}

.filters-row {
	display: grid;
	grid-template-columns: 1fr 200px 150px;
	gap: 20px;
	margin-bottom: 15px;
	align-items: end;
}

.search-group,
.filter-group,
.pagination-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.search-group label,
.filter-group label,
.pagination-group label {
	color: #374151;
	font-weight: 500;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.search-group label .dashicons,
.filter-group label .dashicons,
.pagination-group label .dashicons {
	color: #017cba;
	font-size: 16px;
}

.search-group input,
.filter-group select,
.pagination-group select {
	padding: 10px 12px;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	font-size: 14px;
	transition: all 0.3s ease;
	background: white;
}

.search-group input:focus,
.filter-group select:focus,
.pagination-group select:focus {
	border-color: #017cba;
	box-shadow: 0 0 0 3px rgba(1, 124, 186, 0.1);
	outline: none;
}

.filter-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	background: #f8f9fa;
	border-radius: 8px;
	border: 1px solid #e9ecef;
	font-size: 14px;
	color: #6b7280;
}

/* Button styles */
.action-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 20px;
}

.cache-actions {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 20px;
	background: #f8f9fa;
	border-radius: 8px;
	border: 1px solid #e9ecef;
}

.button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none !important;
	transition: all 0.3s ease;
	border: 1px solid transparent;
	cursor: pointer;
	color: white !important;
}

.button-primary {
	background: linear-gradient(135deg, #017cba 0%, #0369a1 100%);
	color: white !important;
	border: 1px solid #017cba;
}

.button-primary:hover {
	background: linear-gradient(135deg, #0369a1 0%, #1e40af 100%);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(1, 124, 186, 0.3);
	color: white !important;
}

.button-secondary {
	background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
	color: white !important;
	border: 1px solid #6b7280;
}

.button-secondary:hover {
	background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(75, 85, 99, 0.3);
	color: white !important;
}

.button-link-delete {
	background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
	color: white !important;
	border: 1px solid #dc2626;
}

.button-link-delete:hover {
	background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
	color: white !important;
}

.cache-status {
	color: #059669;
	font-size: 14px;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 6px;
}

.cache-status .dashicons {
	color: #059669;
	font-size: 16px;
}

/* Table styling improvements */
.category-mapping-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	border-radius: 6px;
	overflow: hidden;
	margin: 20px 0;
}

.category-mapping-table th {
	background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
	color: #fff;
	padding: 15px 12px;
	text-align: left;
	font-weight: 600;
	font-size: 13px;
	border: none;
	position: relative;
}

.category-mapping-table th .dashicons {
	margin-right: 5px;
	font-size: 16px;
	vertical-align: middle;
}

.category-mapping-table th .sortable {
	cursor: pointer;
	float: right;
	margin-top: 2px;
	opacity: 0.7;
	transition: opacity 0.2s;
}

.category-mapping-table th .sortable:hover {
	opacity: 1;
}

.category-mapping-table tbody tr {
	border-bottom: 1px solid #e8e8e8;
	transition: all 0.3s ease;
}

.category-mapping-table tbody tr:hover {
	background: linear-gradient(135deg, #2271b1 0%, #135e96 100%) !important;
	color: #ffffff !important;
}

.category-mapping-table tbody tr:hover td {
	color: #ffffff !important;
}

.category-mapping-table tbody tr:hover td * {
	color: #ffffff !important;
}

.category-mapping-table tbody tr:hover td .select2-selection__placeholder {
	color: #000 !important;
}

.category-mapping-table tbody tr:hover .category-info strong {
	color: #ffffff !important;
}

.category-mapping-table tbody tr:hover .category-meta span {
	background: rgba(255, 255, 255, 0.2) !important;
	color: #ffffff !important;
}

.category-mapping-table tbody tr:hover .hierarchy-bubble {
	background: rgba(255, 255, 255, 0.9) !important;
	color: #2271b1 !important;
	border-color: rgba(255, 255, 255, 0.5) !important;
}

.category-mapping-table tbody tr:hover .hierarchy-separator {
	color: rgba(255, 255, 255, 0.8) !important;
}

.category-mapping-table tbody tr:hover .status-bubble {
	opacity: 0.9;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.category-mapping-table tbody tr:nth-child(even) {
	background-color: #fafafa;
}

.category-mapping-table tbody tr:nth-child(even):hover {
	background: linear-gradient(135deg, #2271b1 0%, #135e96 100%) !important;
	color: #ffffff !important;
}

.category-mapping-table td {
	padding: 15px 12px;
	vertical-align: top;
	border: none;
}

/* Category info column */
.category-info strong {
	display: block;
	color: #2c3338;
	font-size: 14px;
	margin-bottom: 4px;
	transition: color 0.2s;
}

.category-meta {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.category-meta span {
	font-size: 12px;
	color: #646970;
	background: #f6f7f7;
	padding: 2px 6px;
	border-radius: 3px;
	transition: all 0.2s;
}

/* Hierarchy bubbles - BLUE with WHITE text */
.hierarchy-path {

	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	line-height: 1.4;
}

.hierarchy-bubble {
	background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
	color: #ffffff !important;
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 500;
	white-space: nowrap;
	box-shadow: 0 1px 2px rgba(34, 113, 177, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.2);
	transition: all 0.2s;
	line-height: 40px;
}

.hierarchy-separator {
	color: #a7aaad;
	font-weight: bold;
	font-size: 12px;
	margin: 0 2px;
	transition: color 0.2s;
}

/* Select2 improvements */
.mapping-controls .select2-container {
	width: 100% !important;
}

.mapping-controls .select2-selection {
	border: 1px solid #c3c4c7 !important;
	border-radius: 4px !important;
	padding: 2px !important;
	min-height: 36px !important;
	background: #ffffff !important;
}

.mapping-controls .select2-selection:focus,
.mapping-controls .select2-selection--open {
	border-color: #2271b1 !important;
	box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.1) !important;
}

/* Select2 in hover state */
.category-mapping-table tbody tr:hover .mapping-controls .select2-container {
	background: rgba(255, 255, 255, 0.95) !important;
}

.category-mapping-table tbody tr:hover .mapping-controls .select2-selection {
	border-color: rgba(255, 255, 255, 0.8) !important;
	background: rgba(255, 255, 255, 0.95) !important;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3) !important;
}

.category-mapping-table tbody tr:hover .mapping-controls .select2-selection__rendered {
	color: #2271b1 !important;
	font-weight: 500;
}

.category-mapping-table tbody tr:hover .mapping-controls .select2-selection__arrow {
	color: #2271b1 !important;
}

/* Select2 dropdown positioning */
.select2-dropdown {
	z-index: 9999 !important;
	border: 1px solid #2271b1 !important;
	box-shadow: 0 4px 8px rgba(34, 113, 177, 0.2) !important;
}

.select2-results__option--highlighted {
	background-color: #2271b1 !important;
	color: #ffffff !important;
}

/* Status bubbles */
.status-bubble {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	transition: opacity 0.2s;
}

.status-bubble.mapped {
	background: linear-gradient(135deg, #00a32a 0%, #007b1f 100%);
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-bubble.not-assigned {
	background: linear-gradient(135deg, #d63638 0%, #b32d2e 100%);
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-bubble .dashicons {
	font-size: 14px;
}

.unmap-button {
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.8);
	margin-left: 4px;
	padding: 2px;
	border-radius: 3px;
	cursor: pointer;
	transition: all 0.2s;
}

.unmap-button:hover {
	background: rgba(255, 255, 255, 0.2);
	color: #ffffff;
}

/* Pagination button improvements */
.pagination-controls button {
	background: linear-gradient(135deg, #2271b1 0%, #135e96 100%) !important;
	color: #ffffff !important;
	border: 1px solid #135e96;
	padding: 8px 12px;
	border-radius: 4px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	margin: 0 2px;
}

.pagination-controls button:hover:not(:disabled) {
	background: linear-gradient(135deg, #135e96 0%, #0f4577 100%);
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(34, 113, 177, 0.3);
}

.pagination-controls button:disabled {
	background: #c3c4c7 !important;
	color: #ffffff !important;
	border-color: #c3c4c7 !important;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.page-numbers button {
	background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
	color: #ffffff !important;
	border: 1px solid #135e96;
	padding: 8px 12px;
	border-radius: 4px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	margin: 0 2px;
	min-width: 40px;
}

.page-numbers button:hover:not(:disabled):not(.active) {
	background: linear-gradient(135deg, #135e96 0%, #0f4577 100%);
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(34, 113, 177, 0.3);
}

.page-numbers button:disabled {
	background: #c3c4c7 !important;
	color: #ffffff !important;
	border-color: #c3c4c7 !important;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.page-numbers button.active {
	background: linear-gradient(135deg, #fff 0%, #017cba 100%) !important;
	box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
	font-weight: 600;
}

.page-numbers button.nav-button {
	background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
	color: #ffffff;
	border-color: #135e96;
	font-size: 16px;
	padding: 6px 10px;
}

.page-numbers button.nav-button:hover:not(:disabled) {
	background: linear-gradient(135deg, #135e96 0%, #0f4577 100%);
}

/* Action spinner */
.action-spinner {
	display: inline-block;
	margin-left: 8px;
}

.action-spinner.active .spinner {
	visibility: visible;
	opacity: 1;
}

.spinner {
	visibility: hidden;
	opacity: 0;
	width: 16px;
	height: 16px;
	margin: 0;
	transition: opacity 0.2s;
}

/* Column widths */
.column-api-category {
	width: 25%;
}

.column-hierarchy {
	width: 35%;
}

.column-wc-category {
	width: 25%;
}

.column-actions {
	width: 15%;
	text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
	.help-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}
	
	.filters-row {
		flex-direction: column;
		gap: 10px;
	}
	
	.action-buttons {
		flex-wrap: wrap;
		gap: 8px;
	}
	
	.cache-actions {
		flex-wrap: wrap;
		gap: 8px;
	}
	
	.mapping-examples-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	
	.example-step {
		grid-template-columns: 1fr;
		gap: 8px;
		text-align: center;
	}
	
	.arrow-example {
		transform: rotate(90deg);
		font-size: 12px;
	}
	
	.pagination-controls {
		flex-wrap: wrap;
		gap: 5px;
	}
	
	.api-category-example,
	.wc-category-example {
		font-size: 10px;
		padding: 6px;
		min-height: 40px;
	}
	
	.api-category-example strong,
	.wc-category-example strong {
		font-size: 10px;
	}
	
	.api-category-example small,
	.wc-category-example small {
		font-size: 8px;
	}
	
	.mapping-example {
		padding: 10px;
		min-height: 140px;
	}
	
	.example-result {
		font-size: 9px;
		gap: 6px;
	}
} 

/* Modal styles for category creation */
.pastkolor-modal {
	display: none;
	position: fixed;
	z-index: 100000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	animation: fadeIn 0.3s ease;
}

.modal-content {
	background-color: #ffffff;
	margin: 5% auto;
	padding: 0;
	border-radius: 8px;
	width: 90%;
	max-width: 600px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	animation: slideIn 0.3s ease;
}

.modal-header {
	background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
	color: #ffffff;
	padding: 20px;
	border-radius: 8px 8px 0 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.modal-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
}

.modal-header .close {
	color: #ffffff;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	line-height: 1;
	opacity: 0.8;
	transition: opacity 0.2s;
}

.modal-header .close:hover {
	opacity: 1;
}

.modal-body {
	padding: 25px;
}

.modal-body .form-group {
	margin-bottom: 20px;
}

.modal-body .form-group:last-child {
	margin-bottom: 0;
}

.modal-body label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #23282d;
	font-size: 14px;
}

.modal-body textarea,
.modal-body input[type="text"],
.modal-body select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.4;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}

.modal-body textarea:focus,
.modal-body input[type="text"]:focus,
.modal-body select:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	outline: none;
}

.modal-body textarea {
	resize: vertical;
	min-height: 120px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.modal-body small {
	display: block;
	margin-top: 6px;
	color: #646970;
	font-style: italic;
	font-size: 12px;
}

.modal-footer {
	padding: 20px 25px;
	border-top: 1px solid #dcdcde;
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	border-radius: 0 0 8px 8px;
	background-color: #f6f7f7;
}

.modal-footer .button {
	padding: 10px 20px;
	font-size: 14px;
	height: auto;
	line-height: 1.4;
	border-radius: 4px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s;
}

.modal-footer .button .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.modal-footer .button-primary {
	background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
	border-color: #135e96;
	color: #ffffff;
}

.modal-footer .button-primary:hover {
	background: linear-gradient(135deg, #135e96 0%, #0f4577 100%);
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(34, 113, 177, 0.3);
}

.modal-footer .button-secondary {
	background: #ffffff;
	border-color: #c3c4c7;
	color: #50575e;
}

.modal-footer .button-secondary:hover {
	background: #f6f7f7;
	border-color: #8c8f94;
	color: #2c3338;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes slideIn {
	from { 
		opacity: 0;
		transform: translateY(-50px);
	}
	to { 
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive modal */
@media (max-width: 768px) {
	.modal-content {
		margin: 10% auto;
		width: 95%;
		max-width: none;
	}
	
	.modal-header {
		padding: 15px;
	}
	
	.modal-header h3 {
		font-size: 16px;
	}
	
	.modal-body {
		padding: 20px;
	}
	
	.modal-footer {
		padding: 15px 20px;
		flex-direction: column;
	}
	
	.modal-footer .button {
		width: 100%;
		justify-content: center;
	}
} 

/* Sistema Universal de Popups para Pastkolor Plugin */
.pastkolor-universal-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pastkolor-universal-modal .modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(2px);
}

.pastkolor-universal-modal .modal-container {
	position: relative;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	overflow: hidden;
	animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	max-height: 90vh;
	display: flex;
	flex-direction: column;
}

.pastkolor-universal-modal .modal-header {
	color: #ffffff;
	padding: 20px 25px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
}

.pastkolor-universal-modal .modal-title {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	color: #ffffff;
}

.pastkolor-universal-modal .modal-title .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
	color: #ffffff;
}

.pastkolor-universal-modal .modal-title .loading-animation {
	animation: spin 1s linear infinite;
}

.pastkolor-universal-modal .modal-title h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	color: #ffffff !important;
}

.pastkolor-universal-modal .modal-close-btn {
	background: none;
	border: none;
	color: #ffffff;
	font-size: 24px;
	cursor: pointer;
	opacity: 0.8;
	transition: opacity 0.2s;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
}

.pastkolor-universal-modal .modal-close-btn:hover {
	opacity: 1;
	background: rgba(255, 255, 255, 0.1);
}

.pastkolor-universal-modal .modal-body {
	padding: 25px;
	flex: 1;
	overflow-y: auto;
}

.pastkolor-universal-modal .modal-message {
	font-size: 14px;
	line-height: 1.6;
	color: #2c3338;
	white-space: pre-line;
}

.pastkolor-universal-modal .modal-footer {
	padding: 20px 25px;
	border-top: 1px solid #e0e0e0;
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	flex-shrink: 0;
	background: #f8f9fa;
}

.pastkolor-universal-modal .btn {
	padding: 12px 24px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	border: 1px solid;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	min-width: 100px;
	justify-content: center;
}

.pastkolor-universal-modal .btn-primary {
	background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
	border-color: #135e96;
	color: #ffffff;
}

.pastkolor-universal-modal .btn-primary:hover {
	background: linear-gradient(135deg, #135e96 0%, #0f4577 100%);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.pastkolor-universal-modal .btn-secondary {
	background: #ffffff;
	border-color: #c3c4c7;
	color: #50575e;
}

.pastkolor-universal-modal .btn-secondary:hover {
	background: #f6f7f7;
	border-color: #8c8f94;
	color: #2c3338;
	transform: translateY(-1px);
}

/* Animaciones */
@keyframes modalSlideIn {
	from {
		opacity: 0;
		transform: scale(0.7) translateY(-50px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

@keyframes spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* Responsive para popups */
@media (max-width: 768px) {
	.pastkolor-universal-modal .modal-container {
		margin: 10px;
		max-width: none;
		width: calc(100% - 20px);
	}
	
	.pastkolor-universal-modal .modal-header,
	.pastkolor-universal-modal .modal-body,
	.pastkolor-universal-modal .modal-footer {
		padding: 15px 20px;
	}
	
	.pastkolor-universal-modal .modal-title h3 {
		font-size: 16px;
	}
	
	.pastkolor-universal-modal .modal-footer {
		flex-direction: column;
	}
	
	.pastkolor-universal-modal .btn {
		width: 100%;
		margin: 0;
	}
} 

/* ===== PASTKOLOR CUSTOM FIELDS - ADMIN ===== */
.pastkolor-custom-fields {
    border-top: 2px solid #017cba;
    margin-top: 20px;
    padding-top: 15px;
}

.pastkolor-custom-fields h4 {
    color: #017cba;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pastkolor-custom-fields h4::before {
    content: '\f504';
    font-family: dashicons;
    font-size: 18px;
}

.pastkolor-custom-fields p.description {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

.pastkolor-custom-fields .form-field label {
    font-weight: 600;
    color: #333;
}

.pastkolor-custom-fields .form-field small {
    color: #666;
    font-style: italic;
}

/* Variation custom fields */
.pastkolor-variation-custom-fields {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
}

.pastkolor-variation-custom-fields h4 {
    color: #017cba;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pastkolor-variation-custom-fields h4::before {
    content: '\f504';
    font-family: dashicons;
    font-size: 16px;
}

.pastkolor-variation-custom-fields .form-row {
    margin-bottom: 10px;
}

.pastkolor-variation-custom-fields label {
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 3px;
}

.pastkolor-variation-custom-fields input,
.pastkolor-variation-custom-fields textarea {
    width: 100%;
    max-width: 400px;
}

.pastkolor-variation-custom-fields small {
    color: #666;
    font-style: italic;
    display: block;
    margin-top: 3px;
}

/* ===== PASTKOLOR CUSTOM FIELDS - FRONTEND ===== */
.pastkolor-custom-fields-meta {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #017cba;
}

.pastkolor-meta-field {
    display: block;
    margin-bottom: 8px;
    line-height: 1.5;
}

.pastkolor-meta-field:last-child {
    margin-bottom: 0;
}

.pastkolor-meta-field strong {
    color: #333;
    font-weight: 600;
}

.pastkolor-specifications-wrapper {
    margin: 25px 0;
    border-top: 2px solid #017cba;
    padding-top: 20px;
}

.pastkolor-specifications-wrapper h3 {
    color: #017cba;
    font-size: 22px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pastkolor-specifications-wrapper h3::before {
    content: '\f504';
    font-family: dashicons;
    font-size: 24px;
}

.pastkolor-specification-section {
    margin-bottom: 20px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pastkolor-specification-section h4 {
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.pastkolor-specification-content {
    line-height: 1.6;
}

.pastkolor-specification-content p {
    margin-bottom: 10px;
}

.pastkolor-specification-content ul,
.pastkolor-specification-content ol {
    margin: 10px 0;
    padding-left: 20px;
}

.pastkolor-specification-content li {
    margin-bottom: 5px;
}

/* Additional Information Tab custom fields */
.woocommerce-product-attributes .pastkolor-custom-field th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.woocommerce-product-attributes .pastkolor-custom-field td {
    border-left: 3px solid #017cba;
    padding-left: 15px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .pastkolor-custom-fields-meta {
        margin: 10px 0;
        padding: 10px;
    }
    
    .pastkolor-specifications-wrapper {
        margin: 15px 0;
        padding-top: 15px;
    }
    
    .pastkolor-specification-section {
        padding: 15px;
    }
    
    .pastkolor-variation-custom-fields input,
    .pastkolor-variation-custom-fields textarea {
        max-width: 100%;
    }
}

/* ===== UTILITY CLASSES ===== */
.pastkolor-field-required::after {
    content: ' *';
    color: #dc3232;
}

.pastkolor-field-readonly {
    background-color: #f5f5f5 !important;
    cursor: not-allowed;
}

.pastkolor-field-warning {
    border-color: #ffb900 !important;
    box-shadow: 0 0 0 1px #ffb900;
}

.pastkolor-field-success {
    border-color: #46b450 !important;
    box-shadow: 0 0 0 1px #46b450;
}

/* ===== FRONTEND TABS STYLES ===== */
.pastkolor-custom-fields-tab {
    padding: 20px 0;
}

.pastkolor-custom-fields-tab h2 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    border-bottom: 3px solid #017cba;
    padding-bottom: 10px;
}

.pastkolor-general-fields {
    margin-bottom: 30px;
}

.pastkolor-general-fields h3 {
    margin: 0 0 16px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.pastkolor-fields-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pastkolor-fields-table th,
.pastkolor-fields-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    text-align: left;
}

.pastkolor-fields-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    width: 30%;
}

.pastkolor-fields-table td {
    background: white;
}

.pastkolor-fields-table tr:last-child th,
.pastkolor-fields-table tr:last-child td {
    border-bottom: none;
}

.pastkolor-specification-fields {
    margin-bottom: 20px;
}

.pastkolor-specification-fields h3 {
    margin: 0 0 16px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.pastkolor-specification-item {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.pastkolor-specification-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.pastkolor-specification-item strong {
    color: #2c3e50;
    font-weight: 600;
    margin-right: 8px;
}

/* Specifications Tab */
.pastkolor-specifications-tab {
    padding: 20px 0;
}

.pastkolor-specifications-tab h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 3px solid #017cba;
    padding-bottom: 10px;
}

.pastkolor-specifications-tab .pastkolor-specification-section {
    margin-bottom: 30px;
}

/* Override specification section for tabs */
.pastkolor-custom-fields-tab .pastkolor-specification-section,
.pastkolor-specifications-tab .pastkolor-specification-section {
    margin-bottom: 24px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pastkolor-custom-fields-tab .pastkolor-specification-section h4,
.pastkolor-specifications-tab .pastkolor-specification-section h3 {
    margin: 0 0 16px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #017cba;
    padding-bottom: 8px;
}

/* Responsive Design for Frontend Tabs */
@media (max-width: 768px) {
    .pastkolor-fields-table th,
    .pastkolor-fields-table td {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .pastkolor-fields-table th {
        width: 40%;
    }
    
    .pastkolor-custom-fields-tab h2 {
        font-size: 20px;
    }
    
    .pastkolor-specification-section {
        padding: 16px;
    }
    
    .pastkolor-custom-fields-tab .pastkolor-specification-section,
    .pastkolor-specifications-tab .pastkolor-specification-section {
        padding: 16px;
    }
}