/* VOXFSELI User Tracking Admin Styles */

.voxfseli-tracking-overview {
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	padding: 20px;
	margin: 20px 0;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.voxfseli-tracking-controls {
	background: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 15px;
	margin: 20px 0;
	display: flex;
	gap: 20px;
	align-items: center;
	flex-wrap: wrap;
}

.voxfseli-tracking-controls label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
}

.voxfseli-tracking-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 15px;
	margin: 20px 0;
}

.voxfseli-stat-box {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 20px;
	text-align: center;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.voxfseli-stat-number {
	font-size: 2.5em;
	font-weight: bold;
	margin-bottom: 5px;
	color: #0073aa;
}

.voxfseli-stat-label {
	font-size: 14px;
	color: #666;
	font-weight: 500;
}

.voxfseli-visitors-table {
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	margin: 20px 0;
	overflow: hidden;
}

.voxfseli-visitors-table table {
	width: 100%;
	border-collapse: collapse;
}

.voxfseli-visitors-table th,
.voxfseli-visitors-table td {
	padding: 12px;
	text-align: left;
	border-bottom: 1px solid #eee;
}

.voxfseli-visitors-table th {
	background: #f9f9f9;
	font-weight: 600;
	color: #333;
}

.voxfseli-visitors-table tr:hover {
	background: #f8f9fa;
}

/* Status indicators */
.voxfseli-status {
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
}

.voxfseli-status.online {
	background: #d4edda;
	color: #155724;
}

.voxfseli-status.idle {
	background: #fff3cd;
	color: #856404;
}

.voxfseli-status.offline {
	background: #f8d7da;
	color: #721c24;
}

.voxfseli-status.bot {
	background: #e2e3e5;
	color: #383d41;
}

/* Visitor details */
.voxfseli-visitor-details {
	font-size: 12px;
	color: #666;
}

.voxfseli-visitor-ip {
	font-family: monospace;
	background: #f8f9fa;
	padding: 2px 4px;
	border-radius: 3px;
}

.voxfseli-visitor-location {
	display: flex;
	align-items: center;
	gap: 5px;
}

.voxfseli-visitor-flag {
	width: 16px;
	height: 12px;
	border-radius: 2px;
}

.voxfseli-visitor-page {
	max-width: 200px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.voxfseli-visitor-time {
	color: #666;
	font-size: 11px;
}

/* Check indicators */
.voxfseli-check {
	color: #46b450;
	font-weight: bold;
	margin-right: 8px;
}

.voxfseli-cross {
	color: #dc3232;
	font-weight: bold;
	margin-right: 8px;
}

/* Progress indicators */
.voxfseli-progress-bar {
	background: #f1f1f1;
	border-radius: 10px;
	height: 8px;
	overflow: hidden;
	margin: 5px 0;
}

.voxfseli-progress-fill {
	background: linear-gradient(90deg, #0073aa, #005a87);
	height: 100%;
	transition: width 0.3s ease;
}

/* Bot detection indicators */
.voxfseli-visitor-bot {
	opacity: 0.6;
}

.voxfseli-visitor-bot .voxfseli-status {
	background: #e2e3e5;
	color: #6c757d;
}

/* Filter controls */
.voxfseli-filter-group {
	display: flex;
	align-items: center;
	gap: 10px;
}

.voxfseli-filter-group select,
.voxfseli-filter-group input {
	padding: 6px 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 13px;
}

/* Responsive design */
@media (max-width: 768px) {
	.voxfseli-tracking-controls {
		flex-direction: column;
		align-items: flex-start;
	}

	.voxfseli-tracking-stats {
		grid-template-columns: repeat(2, 1fr);
	}

	.voxfseli-visitors-table {
		font-size: 12px;
	}

	.voxfseli-visitors-table th,
	.voxfseli-visitors-table td {
		padding: 8px;
	}
}

/* Loading states */
.voxfseli-loading {
	position: relative;
}

.voxfseli-loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid #f3f3f3;
	border-top: 2px solid #0073aa;
	border-radius: 50%;
	animation: voxfseli-spin 1s linear infinite;
}

@keyframes voxfseli-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}
