/* /frontend/users/modal-traffic.css - 20261030 - 18-25 */
#traffic-modal-overlay .traffic-modal-body {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: calc(100% - 60px);
	height: calc(100dvh - 60px);
	padding: 0 !important;
	margin: 0 !important;
	overflow-y: auto !important;
	box-sizing: border-box;
}
.traffic-content-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	padding: 20px 15px 30px 15px;
	box-sizing: border-box;
	min-width: 0;
}
.traffic-top-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 20px;
	width: 100%;
	max-width: 1000px;
	box-sizing: border-box;
	flex-wrap: wrap;
}
.traffic-nav-tabs {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}
.traffic-tab-btn {
	background: #2a2b2d;
	border: 1px solid #444;
	border-radius: 6px;
	color: #ffffff;
	font-size: 15px;
	font-weight: bold;
	cursor: pointer;
	padding: 8px 18px;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.traffic-tab-btn:hover {
	background-color: #383946;
	color: #ffffff;
}
.traffic-tab-btn.active {
	background-color: #383946;
	border-color: #ffffff;
	color: #ffffff;
}
.traffic-date-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}
.traffic-date-nav-btn {
	background: transparent;
	border: 1px solid #555;
	border-radius: 4px;
	color: #fff;
	font-size: 16px;
	cursor: pointer;
	padding: 6px 12px;
	transition: background-color 0.2s, color 0.2s;
}
.traffic-date-nav-btn:hover {
	background-color: #383946;
	color: #ffffff;
}
.traffic-date-input {
	background: #333;
	color: #fff;
	border: 1px solid #555;
	border-radius: 4px;
	padding: 6px 12px;
	font-size: 16px;
	font-family: monospace;
	text-align: center;
	width: 130px;
	outline: none;
}
.traffic-today-btn {
	background: #28a745;
	border: none;
	border-radius: 4px;
	color: #fff;
	font-size: 15px;
	font-weight: bold;
	cursor: pointer;
	padding: 6px 16px;
	transition: background-color 0.2s;
}
.traffic-today-btn:hover {
	background-color: #218838;
}
.traffic-country-card {
	display: flex;
	flex-direction: column;
	background-color: #2a2b2d;
	border: 1px solid #444;
	border-radius: 8px;
	padding: 16px 18px;
	width: 100%;
	max-width: 1000px;
	box-sizing: border-box;
	gap: 12px;
	margin-bottom: 20px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.traffic-countries-hbars-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
	box-sizing: border-box;
}
.traffic-hbar-row {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	font-size: 13px;
	box-sizing: border-box;
	padding: 2px 0;
}
.traffic-hbar-info {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 190px;
	min-width: 190px;
	flex-shrink: 0;
	overflow: hidden;
}
.traffic-hbar-rank {
	font-family: monospace;
	font-size: 11px;
	color: #888;
	width: 20px;
	text-align: right;
	flex-shrink: 0;
}
.traffic-hbar-flag {
	width: 24px;
	height: 16px;
	object-fit: cover;
	border: 1px solid #000;
	border-radius: 2px;
	flex-shrink: 0;
}
.traffic-hbar-name {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #ffffff;
	font-weight: 500;
}
.traffic-hbar-track {
	flex-grow: 1;
	height: 14px;
	background-color: rgba(255, 255, 255, 0.1);
	border-radius: 3px;
	overflow: hidden;
	position: relative;
	min-width: 60px;
}
.traffic-hbar-fill {
	height: 100%;
	background-color: #00FFFF;
	border-radius: 3px;
	transition: width 0.3s ease;
	min-width: 0;
}
.traffic-hbar-val {
	font-family: monospace;
	font-size: 13px;
	color: #ffffff;
	font-weight: bold;
	min-width: 110px;
	text-align: right;
	flex-shrink: 0;
}
.traffic-metrics-container {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
	max-width: 1000px;
	box-sizing: border-box;
}
.traffic-metric-card {
	display: flex;
	flex-direction: column;
	background-color: #2a2b2d;
	border: 1px solid #444;
	border-radius: 8px;
	padding: 14px 18px;
	width: 100%;
	box-sizing: border-box;
	gap: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.traffic-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 12px;
}
.traffic-card-title {
	font-size: 16px;
	font-weight: bold;
	color: #ffffff;
	word-break: break-word;
	text-align: left;
}
.traffic-card-total {
	font-size: 18px;
	font-weight: bold;
	color: #ffffff;
	font-family: monospace;
	flex-shrink: 0;
	text-align: right;
}
.traffic-card-canvas {
	width: 100% !important;
	height: 70px !important;
	display: block;
	background: transparent;
	cursor: crosshair;
}
.traffic-journey-container {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	max-width: 1000px;
	box-sizing: border-box;
}
.traffic-journey-item {
	display: flex;
	flex-direction: column;
	background-color: #2a2b2d;
	border: 1px solid #444;
	border-radius: 8px;
	padding: 12px 16px;
	gap: 6px;
	box-sizing: border-box;
}
.traffic-journey-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 13px;
	color: #aaa;
	font-family: monospace;
	gap: 10px;
}
.traffic-journey-badge {
	padding: 2px 8px;
	border-radius: 4px;
	font-weight: bold;
	font-size: 12px;
}
.traffic-journey-badge.human {
	background-color: #28a745;
	color: #fff;
}
.traffic-journey-url {
	font-size: 15px;
	color: #ffffff;
	text-decoration: underline;
	word-break: break-all;
	font-weight: bold;
}
.traffic-journey-url:hover {
	color: #ffffff;
}
.traffic-journey-meta {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 12px;
	color: #888;
	flex-wrap: wrap;
}
@media (max-width: 650px) {
	.traffic-top-bar {
		justify-content: center;
		gap: 10px;
	}
	.traffic-card-title {
		font-size: 14px;
	}
	.traffic-card-total {
		font-size: 16px;
	}
	.traffic-date-input {
		width: 110px;
		font-size: 14px;
	}
	.traffic-hbar-info {
		width: 130px;
		min-width: 130px;
	}
	.traffic-hbar-val {
		min-width: 80px;
		font-size: 11px;
	}
}