/* Modern Heatmaps Page Styles */
.opti-behavior-heatmaps-modern {
	background: #f8f9fa;
	margin: 0;
	padding: 0;
}

.heatmaps-header {
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #6d28d9 100%);
	color: white;
	padding: 28px 32px;
	margin: -1px -20px 24px -20px;
	box-shadow: 0 4px 20px rgba(79, 70, 229, 0.25);
	border-radius: 0;
	overflow: visible;
	position: relative;
}

.heatmaps-header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}

.heatmaps-title-section {
	display: flex;
	align-items: center;
	gap: 16px;
}

.heatmaps-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 12px;
	color: #fff;
}

.heatmaps-icon svg,
.heatmaps-icon i {
	width: 24px;
	height: 24px;
}

.heatmaps-title {
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.heatmaps-subtitle {
	color: rgba(255, 255, 255, 0.8);
	font-size: 13px;
	margin: 4px 0 0 0;
}

.heatmaps-controls {
	display: flex;
	align-items: center;
	gap: 20px;
}

.control-group {
	display: flex;
	gap: 8px;
}

.btn-filter {
	display: flex;
	align-items: center;
	gap: 6px;
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 20px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.btn-filter:hover {
	background: #e9ecef;
}

.btn-filter.active {
	background: #16a34a;
	border-color: #16a34a;
	color: white;
}

.date-range-picker .date-select {
	border: 1px solid #dee2e6;
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 13px;
	background: white;
}

/* Statistics Section */
.heatmaps-stats {
	padding: 20px 30px;
	background: #f8f9fa;
}

.stats-grid {
	display: grid;
	/* Force a balanced 3x2 layout on desktop */
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	align-items: stretch;
}
/* On medium screens, show 2 per row; mobile override to 1fr already exists below */
@media (max-width: 1200px) {
	.stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.stat-card {
	background: white;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	display: flex;
	align-items: center;
	gap: 16px;
	transition: transform 0.2s ease, z-index 0s;
	position: relative; /* For absolute tooltip positioning */
	overflow: visible; /* Allow tooltips to overflow */
	z-index: 1; /* Base z-index */
}

.stat-card:hover {
	transform: translateY(-2px);
	z-index: 100; /* Higher z-index on hover to ensure tooltip appears above siblings */
}

.stat-icon {
	font-size: 32px;
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f8f9fa;
	border-radius: 12px;
}

.stat-content {
	flex: 1;
}

.stat-number {
	font-size: 24px;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 4px;
}

.stat-label {
	font-size: 14px;
	color: #6c757d;
	margin-bottom: 4px;
}

.stat-change {
	font-size: 12px;
	font-weight: 500;
}

.stat-change.positive {
	color: #16a34a;
}

.stat-change.negative {
	color: #dc3545;
}

.stat-change.neutral {
	color: #6c757d;
}

/* Content Layout */
.heatmaps-content {
	padding: 20px 30px;
}

.heatmaps-panel {
	background: white;
	border-radius: 12px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	overflow: hidden;
}

.panel-header {
	padding: 20px 24px;
	border-bottom: 1px solid #e1e5e9;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

/* Heatmaps Search Input */
.heatmaps-search-wrapper {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.heatmaps-search-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	color: #6366f1 !important;
	pointer-events: none;
	z-index: 1;
}

.heatmaps-search-icon svg {
	width: 18px;
	height: 18px;
	stroke: #6366f1 !important;
}

.heatmaps-search-input {
	padding: 10px 16px 10px 42px !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 8px !important;
	width: 280px;
	font-size: 14px;
	color: #1e293b;
	background: #fff !important;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.heatmaps-search-input:focus {
	outline: none;
	border-color: #6366f1;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.heatmaps-search-input:focus + .heatmaps-search-icon,
.heatmaps-search-wrapper:focus-within .heatmaps-search-icon {
	color: #6366f1;
}

.heatmaps-search-input::placeholder {
	color: #9ca3af;
}

@media (max-width: 640px) {
	.heatmaps-search-wrapper {
		width: 100%;
	}
	.heatmaps-search-input {
		width: 100%;
	}
}

.panel-title {
	font-size: 18px;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.panel-actions {
	display: flex;
	gap: 8px;
}

.btn-action {
	display: flex;
	align-items: center;
	gap: 6px;
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.btn-action:hover {
	background: #e9ecef;
}

.btn-action.primary {
	background: #16a34a;
	border-color: #16a34a;
	color: white;
}

.btn-action.primary:hover {
	background: #15803d;
}

/* Panel Filters */
.panel-filters {
	padding: 16px 24px;
	border-bottom: 1px solid #f1f3f4;
	background: #f8f9fa;
}

.search-container {
	margin-bottom: 12px;
}

.search-input {
	width: 100%;
	border: 1px solid #dee2e6;
	border-radius: 6px;
	padding: 10px 12px;
	font-size: 14px;
}

.filter-container {
	display: flex;
	gap: 12px;
}

.filter-select {
	flex: 1;
	border: 1px solid #dee2e6;
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 13px;
	background: white;
}

/* Simplified Heatmap Table */
.simplified-heatmap-table {
	padding: 0;
}

.heatmap-table {
	width: 100%;
	border-collapse: collapse;
	background: white;
}

.heatmap-table th {
	background: #f8f9fa;
	border-bottom: 2px solid #e2e8f0;
	padding: 16px;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
}

.heatmap-table td {
	padding: 16px;
	border-bottom: 1px solid #f1f3f4;
	vertical-align: middle;
}


/* Responsive constraints for Heatmaps table to avoid horizontal scroll */
.simplified-heatmap-table { overflow-x: hidden; }
.heatmap-table { table-layout: fixed; width: 100%; }
/* Constrain the Page column more aggressively */
.heatmap-table th:first-child,
.heatmap-table td.page-info { width: clamp(180px, 28vw, 260px); max-width: 260px; }
/* Column widths - adjusted for tooltip icons and i18n translations */
.heatmap-table th:nth-child(2), .heatmap-table td.interactions-count { width: 140px; }
.heatmap-table th:nth-child(3), .heatmap-table td.sessions-count { width: 115px; }
.heatmap-table th:nth-child(4), .heatmap-table td.device-info { width: 120px; }
.heatmap-table th:nth-child(5), .heatmap-table td.last-updated { width: 120px; }
.heatmap-table th:nth-child(6), .heatmap-table td.actions { width: 250px; }
/* Header text: keep on one line but never truncate (headers must always be readable) */
.heatmap-table th { white-space: nowrap; }
/* Truncate long title/url with ellipsis, show full on hover via title attr */
.heatmap-table .page-title,
.heatmap-table .page-url { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Keep action buttons on one line and compact */
.heatmap-table td.actions a { white-space: nowrap; padding: 6px 10px; font-size: 12px; }


/* Force tighter layout inside panel specifically */
.heatmaps-panel .heatmap-table { table-layout: fixed !important; width: 100% !important; }
.heatmaps-panel .heatmap-table th, .heatmaps-panel .heatmap-table td { padding: 10px 8px !important; box-sizing: border-box; }
.heatmaps-panel .heatmap-table th:first-child,
.heatmaps-panel .heatmap-table td.page-info { width: 200px !important; max-width: 200px !important; }
.heatmaps-panel .heatmap-table th:nth-child(6), .heatmaps-panel .heatmap-table td.actions { width: 265px !important; }
.heatmaps-panel .simplified-heatmap-table { overflow-x: hidden !important; }
.heatmaps-panel .heatmap-table .page-url { display:block !important; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.heatmap-row:hover {
	background: #f8f9fa;
}

/* Respect explicit width on page-info cell */
.page-info { max-width: 100%; }

.page-title {
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 4px;
	font-size: 14px;
}

/* Page title link for detail page (Pro feature) */
.page-title-link {
	text-decoration: none;
	color: inherit;
	display: block;
	transition: all 0.2s ease;
}

.page-title-link:hover .page-title {
	color: #2563eb;
	text-decoration: underline;
}

.page-title-link:focus {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
	border-radius: 2px;
}

/* Modern Heatmaps Table Styling - Session Recording Style */
.heatmaps-modern-table {
	border-collapse: separate !important;
	border-spacing: 0 !important;
	background: white !important;
}

.heatmaps-modern-table thead {
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.heatmaps-modern-table thead th {
	background: #f8f9fa !important;
	border-bottom: 2px solid #e2e8f0 !important;
	padding: 16px 20px !important;
	text-align: left !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #1e293b !important;
	text-transform: uppercase !important;
	letter-spacing: 0.05em !important;
}

.heatmaps-modern-table tbody tr.heatmap-table-row {
	border-bottom: 1px solid #f1f5f9;
	transition: all 0.2s ease;
}

.heatmaps-modern-table tbody tr.heatmap-table-row:hover {
	background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
	box-shadow: 0 2px 8px rgba(22, 163, 74, 0.15);
	transform: translateY(-1px);
}

.heatmaps-modern-table tbody td {
	padding: 16px 20px !important;
	vertical-align: middle !important;
	border-bottom: 1px solid #f1f5f9 !important;
}

.heatmaps-modern-table .col-title {
	font-weight: 600 !important;
	color: #1e293b !important;
	font-size: 14px !important;
}

.heatmaps-modern-table .col-url {
	max-width: 300px;
}

.heatmaps-modern-table .heatmap-page-url {
	color: #64748b !important;
	text-decoration: none !important;
	font-size: 12px !important;
	transition: all 0.2s ease !important;
	display: block !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
}

.heatmaps-modern-table .heatmap-page-url:hover {
	color: #2563eb !important;
	text-decoration: underline !important;
}

.heatmaps-modern-table .column-numeric {
	text-align: center !important;
	font-weight: 600 !important;
	color: #1e293b !important;
	font-size: 14px !important;
}

.heatmaps-modern-table .col-actions {
	text-align: right !important;
}

.heatmaps-modern-table .heatmap-action-btn {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	padding: 8px 14px !important;
	background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 8px !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	color: #475569 !important;
	text-decoration: none !important;
	transition: all 0.2s ease !important;
	margin-left: 6px !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.heatmaps-modern-table .heatmap-action-btn:hover {
	background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%) !important;
	border-color: #16a34a !important;
	color: white !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3) !important;
}

.heatmaps-modern-table .heatmap-action-btn:first-child {
	margin-left: 0 !important;
}

/* Hide long URL line earlier on narrower viewports to save space */
@media (max-width: 1400px) {
	.heatmaps-panel .heatmap-table .page-url { display:block !important; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
}


.page-url {
	font-size: 9px; /* even smaller to reveal more URL */
	color: #6c757d;
	max-width: 600px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.heatmap-type {
	display: flex;
	align-items: center;
	gap: 8px;
}

.type-icon {
	font-size: 16px;
}

.type-name {
	font-weight: 500;
	color: #495057;
}

.interactions-count,
.sessions-count {
	font-size: 16px;
	color: #1a1a1a;
}

.device-info {
	font-size: 13px;
	color: #6c757d;
}

.last-updated {
	font-size: 13px;
	color: #6c757d;
}

.btn-view {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #16a34a;
	color: white;
	text-decoration: none;
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.2s ease;
}

.btn-view:hover {
	background: #15803d;
	color: white;
	text-decoration: none;
}

.btn-view-pc {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #16a34a;
	color: white;
	text-decoration: none;
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.2s ease;
	margin-left: 8px;
}

.btn-view-pc:hover {
	background: #15803d;
	color: white;
	text-decoration: none;
}

.btn-view-mobile {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #16a34a;
	color: white;
	text-decoration: none;
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.2s ease;
	margin-left: 8px;
}

.btn-view-mobile:hover {
	background: #15803d;
	color: white;
	text-decoration: none;
}

.actions {
	white-space: nowrap;

	/* Fixed action button widths and alignment */
	.btn-view, .btn-view-pc, .btn-view-mobile { width:84px; justify-content:center; font-variant-numeric: tabular-nums; }
	.actions { display:inline-flex; align-items:center; gap:8px; }
	/* Loading overlay for AJAX fetches */
	.heatmaps-panel.is-loading { position:relative; }
	.heatmaps-panel.is-loading:after { content:""; position:absolute; inset:0; background:rgba(255,255,255,.6); }
	.heatmaps-panel.is-loading:before { content:"Loading…"; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); background:#fff; border:1px solid #e5e7eb; border-radius:6px; padding:8px 12px; color:#374151; font-size:12px; }
	@media (max-width: 600px) {
		.btn-view, .btn-view-pc, .btn-view-mobile { width:auto; min-width:0; }
		.actions { display:flex; flex-direction:column; align-items:flex-start; }
	}

}

/* Purple theme for Desktop and Mobile action buttons - matching session recordings */
.optibehavior-btn-desktop.button,
.optibehavior-btn-mobile.button {
	background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
	border-color: #6366f1 !important;
	color: white !important;
	text-shadow: none !important;
	box-shadow: none !important;
}

.optibehavior-btn-desktop.button:hover,
.optibehavior-btn-mobile.button:hover {
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
	border-color: #4f46e5 !important;
	color: white !important;
}

/* Ensure consistent icon sizes in Desktop/Mobile buttons */
.optibehavior-btn-desktop.button svg,
.optibehavior-btn-mobile.button svg,
.optibehavior-btn-desktop.button i[data-lucide],
.optibehavior-btn-mobile.button i[data-lucide] {
	width: 14px !important;
	height: 14px !important;
	min-width: 14px !important;
	min-height: 14px !important;
	max-width: 14px !important;
	max-height: 14px !important;
	vertical-align: middle !important;
	margin-right: 4px !important;
	display: inline-block !important;
}

.no-heatmaps {
	text-align: center;
	padding: 40px 20px;
	color: #6c757d;
}

.no-heatmaps p {
	margin: 0;
	font-size: 16px;
}

.table-header {
	padding: 16px 24px;
	border-bottom: 1px solid #f1f3f4;
}

.table-controls {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.bulk-actions {
	display: flex;
	gap: 8px;
	align-items: center;
}

.bulk-select {
	border: 1px solid #dee2e6;
	border-radius: 4px;
	padding: 6px 12px;
	font-size: 13px;
}

.btn-apply {
	background: #16a34a;
	color: white;
	border: none;
	border-radius: 4px;
	padding: 6px 12px;
	font-size: 13px;
	cursor: pointer;
}

.view-options {
	display: flex;
	gap: 4px;
}

.view-btn {
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 4px;
	padding: 6px 8px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.view-btn.active {
	background: #16a34a;
	border-color: #16a34a;
	color: white;
}

/* Heatmap Grid */
.heatmap-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 20px;
	padding: 24px;
}

.heatmap-card {
	background: white;
	border: 1px solid #e1e5e9;
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.2s ease;
}

.heatmap-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-header {
	padding: 12px 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #f8f9fa;
}

.card-status {
	font-size: 12px;
}

.card-preview {
	position: relative;
	height: 160px;
	overflow: hidden;
}

.preview-image {
	width: 100%;
	height: 100%;
	position: relative;
}

.preview-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.preview-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.heatmap-card:hover .preview-overlay {
	opacity: 1;
}

.btn-preview {
	background: #16a34a;
	color: white;
	border: none;
	border-radius: 6px;
	padding: 10px 16px;
	font-size: 13px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
}

.card-content {
	padding: 16px;
}

.card-title {
	font-size: 16px;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0 0 4px 0;
}

.card-url {
	font-size: 12px;
	color: #6c757d;
	margin-bottom: 12px;
}

.card-stats {
	display: flex;
	justify-content: space-between;
	margin-bottom: 16px;
}

.stat-item {
	text-align: center;
}

.stat-item .stat-icon {
	font-size: 14px;
	display: block;
	margin-bottom: 2px;
}

.stat-item .stat-value {
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
	display: block;
}

.stat-item .stat-label {
	font-size: 11px;
	color: #6c757d;
}

.card-actions {
	display: flex;
	justify-content: space-between;
	border-top: 1px solid #f1f3f4;
	padding-top: 12px;
}

.btn-card-action {
	background: none;
	border: none;
	padding: 6px;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.btn-card-action:hover {
	background: #f8f9fa;
}

.btn-card-action.danger:hover {
	background: #fee;
	color: #dc3545;
}

/* Table Footer */
.table-footer {
	padding: 16px 24px;
	border-top: 1px solid #f1f3f4;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #f8f9fa;
}

/* Pagination container */
.heatmaps-panel .table-pagination {
	padding: 14px 18px;
	border-top: 1px solid #f1f3f4;
	background: #f8fafc;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}
.heatmaps-panel .table-pagination.table-pagination--center { flex-direction: column; }

.pagination-info, .entries-info {
	font-size: 13px;
	color: #64748b;
}

/* Controls */
.heatmaps-panel .table-pagination .pagination-controls {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.heatmaps-panel .table-pagination .pagination-btn,
.heatmaps-panel .table-pagination a.pagination-btn {
	background: #ffffff;
	border: 1px solid #e3e6ef;
	border-radius: 8px;
	padding: 6px 10px;
	font-size: 12px;
	color: #334155;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, transform .15s ease;
}
.heatmaps-panel .table-pagination .pagination-btn:hover { background:#f1f5f9; transform: translateY(-1px); }
.heatmaps-panel .table-pagination .pagination-btn:disabled { opacity:.5; cursor: not-allowed; transform:none; }

/* Primary emphasis on forward actions */
.heatmaps-panel .table-pagination .pagination-btn[data-next],
.heatmaps-panel .table-pagination .pagination-btn[data-last] {
	background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); border-color:#6366f1; color:#fff;
}
.heatmaps-panel .table-pagination .pagination-btn[data-next]:hover,
.heatmaps-panel .table-pagination .pagination-btn[data-last]:hover { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); }

/* Current page badge */
.heatmaps-panel .table-pagination .pagination-current {
	background:#e0e7ff; color:#6366f1; border-radius:8px; padding:6px 10px; font-size:12px; font-weight:600;
}
.heatmaps-panel .table-pagination .pagination-ellipsis { color:#94a3b8; }

@media (max-width: 640px){
	.heatmaps-panel .table-pagination { flex-direction: column; align-items: stretch; gap:10px; }
	.heatmaps-panel .table-pagination .pagination-controls { justify-content: center; }
	.heatmaps-panel .table-pagination .entries-info { text-align:center; }
}

/* Insights Panel */
.insights-sections {
	padding: 0;
}

.insight-section {
	padding: 20px 24px;
	border-bottom: 1px solid #f1f3f4;
}

.insight-section:last-child {
	border-bottom: none;
}

.section-title {
	font-size: 16px;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0 0 16px 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Top Pages */
.top-pages-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.page-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px;
	background: #f8f9fa;
	border-radius: 8px;
}

.page-info {
	flex: 1;
}

.page-title {
	font-size: 13px;
	font-weight: 500;
	color: #1a1a1a;
	margin-bottom: 2px;
}

.page-url {
	font-size: 9px;
	color: #6c757d;
}

.page-stats {
	display: flex;
	align-items: center;
	gap: 8px;
}

.stat-badge {
	background: #16a34a;
	color: white;
	border-radius: 12px;
	padding: 4px 8px;
	font-size: 11px;
	text-align: center;
}

.badge-value {
	font-weight: 600;
}

.badge-label {
	opacity: 0.8;
}

.stat-trend {
	font-size: 11px;
	font-weight: 500;
}

/* Device Stats */
.device-chart {
	margin-bottom: 16px;
}

.device-stats {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.device-stat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	background: #f8f9fa;
	border-radius: 6px;
}

.device-name {
	flex: 1;
	margin-left: 8px;
	font-size: 13px;
}

.device-percentage {
	font-weight: 600;
	font-size: 13px;
}

/* Intensity Summary */
.intensity-chart {
	margin-bottom: 16px;
}

.intensity-summary {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.summary-item {
	display: flex;
	justify-content: space-between;
	padding: 8px 12px;
	background: #f8f9fa;
	border-radius: 6px;
}

.summary-label {
	font-size: 13px;
	color: #6c757d;
}

.summary-value {
	font-size: 13px;
	font-weight: 600;
	color: #1a1a1a;
}

/* Quick Actions */
.quick-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.action-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 6px;
	padding: 12px;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.action-btn:hover {
	background: #e9ecef;
	transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
	.heatmaps-header {
		flex-direction: column;
		gap: 16px;
		align-items: flex-start;
		padding: 20px;
	}

	.stats-grid {
		grid-template-columns: 1fr;
	}

	.heatmaps-content {
		padding: 15px;
	}

	.heatmap-table {
		font-size: 13px;
	}

	.heatmap-table th,
	.heatmap-table td {
		padding: 12px 8px;
	}

	.page-info {
		max-width: 200px;
	}

	.page-title {
		font-size: 13px;
	}

	.page-url {
		font-size: 9px;
	}
}