/**
 * PAP Afiliados Pro - Admin CSS
 *
 * Estilos para listagem de produtos, editor e tela de tags.
 *
 * @package PAP_Afiliados_Pro
 * @since   2.0.0
 */

/* ==========================================================================
   COLUNAS DA LISTAGEM
   ========================================================================== */

/* Coluna: Imagem */
.column-thumbnail {
	width: 60px;
}

.column-thumbnail img {
	width: 50px;
	height: 50px;
	border-radius: 4px;
	object-fit: cover;
	display: block;
}

/* Coluna: Shortcode */
.column-shortcode {
	width: 220px;
}

.papafpro-shortcode-wrap {
	display: flex;
	align-items: center;
	gap: 4px;
}

.papafpro-shortcode-wrap input[type="text"] {
	font-family: monospace;
	background: #f0f0f0;
	border: 1px solid #ddd;
	font-size: 12px;
	padding: 2px 6px;
	width: 160px;
}

.papafpro-copy-shortcode {
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
	color: #666;
	line-height: 1;
}

.papafpro-copy-shortcode:hover {
	color: #0073aa;
}

.papafpro-copy-shortcode .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* Coluna: Link de Afiliado */
.column-affiliate_link {
	width: 180px;
}

.papafpro-badge {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}

.papafpro-badge--known {
	background: #d4edda;
	color: #155724;
}

.papafpro-badge--other {
	background: #e2e3e5;
	color: #383d41;
}

.papafpro-link-check .dashicons-yes-alt {
	color: #28a745;
	font-size: 16px;
	width: 16px;
	height: 16px;
	vertical-align: middle;
}

.papafpro-link-external {
	color: inherit;
	text-decoration: none;
}

.papafpro-link-external:hover {
	color: #0073aa;
}

/* Coluna: Preço */
.column-price {
	width: 100px;
}

.column-price .papafpro-price {
	font-weight: 600;
}

/* Coluna: Tags */
.column-taxonomy-papafpro_tag {
	width: 200px;
}

.papafpro-tag-pill {
	display: inline-block;
	padding: 2px 8px;
	margin: 2px;
	border-radius: 12px;
	background: #e9ecef;
	font-size: 12px;
	cursor: pointer;
	text-decoration: none;
	color: #333;
}

.papafpro-tag-pill:hover {
	background: #dee2e6;
	color: #0073aa;
}

.papafpro-tag-more {
	font-style: italic;
	color: #6c757d;
	font-size: 12px;
}

/* ==========================================================================
   FILTROS
   ========================================================================== */

.papafpro-filters-row {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
}

.papafpro-clear-filters {
	color: #a00;
	text-decoration: none;
	font-size: 13px;
}

.papafpro-clear-filters:hover {
	color: #dc3232;
}

.papafpro-clear-filters .dashicons {
	vertical-align: middle;
	font-size: 14px;
	width: 14px;
	height: 14px;
}

/* ==========================================================================
   TAG SELECTOR (BULK ACTIONS)
   ========================================================================== */

#papafpro-bulk-tag-selector {
	display: none;
	margin-left: 8px;
}

#papafpro-bulk-tag-selector.papafpro-visible {
	display: inline-block;
}

#papafpro-bulk-tag-selector select {
	vertical-align: middle;
}

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */

.papafpro-empty-state {
	text-align: center;
	padding: 60px 20px;
	margin: 20px 0;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
}

.papafpro-empty-state__icon {
	font-size: 48px;
	width: 48px;
	height: 48px;
	color: #c3c4c7;
	display: block;
	margin: 0 auto 16px;
}

.papafpro-empty-state__title {
	font-size: 20px;
	font-weight: 600;
	color: #1d2327;
	margin: 0 0 8px;
}

.papafpro-empty-state__text {
	font-size: 14px;
	color: #646970;
	margin: 0 0 24px;
	max-width: 420px;
	margin-left: auto;
	margin-right: auto;
}

.papafpro-empty-state__actions {
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}
