/**
 * 404 Error Log module settings (modal + dashboard widget).
 *
 * @package Track404s
 */

.wpps-track-404s-modal,
#wpps_track_404s_widget .inside {
	--wpps-404-accent: var(--wpps-accent, var(--wp-admin-theme-color, #2271b1));
	--wpps-404-accent-bg: #f0f6fc;
	--wpps-404-accent-bg: color-mix(in srgb, var(--wpps-404-accent) 12%, #fff);
}

.wpps-track-404s-modal .wpps-404-section-title { margin: 16px 0 8px; font-size: 14px; }
.wpps-track-404s-modal .wpps-404-description { margin: 8px 0 12px; }
.wpps-track-404s-modal .wpps-404-stats { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0 16px; }
.wpps-track-404s-modal .wpps-404-stat-card {
	background: var(--wpps-404-accent-bg);
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 10px 16px;
	min-width: 100px;
}
.wpps-track-404s-modal .wpps-404-stat-value { display: block; font-size: 22px; font-weight: 600; color: #1d2327; }
.wpps-track-404s-modal .wpps-404-stat-label { font-size: 12px; color: #646970; }
.wpps-track-404s-modal .wpps-404-view-log-wrap { margin: 12px 0; }
.wpps-track-404s-modal .wpps-404-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin-bottom: 16px; }
.wpps-track-404s-modal .wpps-404-filter-wrap { flex: 1 1 280px; min-width: 0; }
.wpps-track-404s-modal .wpps-404-filter-hint { margin: 8px 0 0; font-size: 12px; color: #646970; }
.wpps-track-404s-modal .wpps-404-filter-group { display: flex; gap: 4px; }
.wpps-track-404s-modal .wpps-404-filter-btn {
	padding: 6px 12px;
	border: 1px solid #8c8f94;
	background: #fff;
	cursor: pointer;
	font-size: 13px;
	border-radius: 4px;
}
.wpps-track-404s-modal .wpps-404-filter-btn:hover { border-color: var(--wpps-404-accent); }
.wpps-track-404s-modal .wpps-404-filter-btn.active {
	background: var(--wpps-404-accent);
	color: #fff;
	border-color: var(--wpps-404-accent);
}
.wpps-track-404s-modal .wpps-404-search { padding: 6px 10px; border: 1px solid #8c8f94; border-radius: 4px; font-size: 13px; }
.wpps-track-404s-modal .wpps-404-log-section .wpps-404-section-title { margin-top: 16px; }
.wpps-track-404s-modal .wpps-404-table { margin-bottom: 12px; font-size: 12px; }
.wpps-track-404s-modal .wpps-404-table code { font-size: 11px; word-break: break-all; }
.wpps-track-404s-modal .wpps-404-table .num { width: 60px; text-align: right; }
.wpps-track-404s-modal .wpps-404-actions-col { width: 50px; }
.wpps-track-404s-modal .wpps-404-delete-btn { padding: 2px 8px; font-size: 11px; color: #b32d2e; cursor: pointer; background: none; border: none; }
.wpps-track-404s-modal .wpps-404-delete-btn:hover { text-decoration: underline; }
.wpps-track-404s-modal .wpps-404-pagination { margin-top: 12px; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.wpps-track-404s-modal .wpps-404-pagination button { min-width: 28px; }
.wpps-track-404s-modal .wpps-404-pagination .wpps-404-page-info { font-size: 12px; color: #646970; margin-left: 8px; }
.wpps-track-404s-modal .wpps-404-table .wpps-404-redirect-target { font-size: 11px; color: #646970; word-break: break-all; }
.wpps-track-404s-modal .wpps-404-table .wpps-404-redirect-empty { color: #c3c4c7; }

/* Dashboard widget */
#wpps_track_404s_widget .wpps-404-dashboard-stats {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

#wpps_track_404s_widget .wpps-404-dashboard-stat {
	flex: 1;
	min-width: 70px;
	background: var(--wpps-404-accent-bg);
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 10px;
	text-align: center;
}

#wpps_track_404s_widget .wpps-404-dashboard-value {
	display: block;
	font-size: 20px;
	font-weight: 600;
	color: #1d2327;
}

#wpps_track_404s_widget .wpps-404-dashboard-label {
	font-size: 11px;
	color: #646970;
}

#wpps_track_404s_widget .wpps-404-dashboard-actions {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 0;
}

#wpps_track_404s_widget .wpps-404-dashboard-view-log,
#wpps_track_404s_widget .wpps-404-dashboard-export {
	flex: 1 1 auto;
	text-align: center;
	justify-content: center;
	box-sizing: border-box;
}

#wpps_track_404s_widget .wpps-404-dashboard-intro {
	margin-bottom: 12px;
}

#wpps_track_404s_widget .wpps-404-dashboard-config {
	margin: 8px 0 0;
}
