﻿
.traffic {
	align-items: center;
	background-color: var(--traffic-color);
	border-radius: 25%;
	color: #263238;
	display: flex;
	flex-direction:column;
	font-size: 14px;
	gap: 15px;
	justify-content: center;
	padding: 4px;
	position: relative;
	transition: all 0.3s ease-out;
	width: var(--marker-width);
	height: var(--marker-height);
}

	.traffic img {
		margin-top: 1px;
		width: 36px;
		height:36px;
	}

	.traffic .icon svg {
		height: 20px;
		width: auto;
	}

	.traffic .details {
		display:none;
		width: 200px;
		height: 75px;
	}

#div_notification_traffic_popup {
	z-index:5;
	display: ruby;
	font-size:16px;
	width: 200px;
	height: 75px;
	border-radius: 10px;
	border: 1px solid darkred;
	background: white;
	justify-content:center;
	text-align: center;
	padding-top: 5px;
	position: absolute;
	margin-top: -70px;
	box-shadow: 0 0 10px rgba(140, 0, 0, 0.5);
}
.traffic .icon {
	align-items: center;
	display: flex;
	justify-content: center;
	color: #FFFFFF;
	z-index: 1;
	border-radius:50%;
	box-shadow: 0 0 10px rgba(140, 0, 0, 0.5);
	animation: blink 1.5s infinite;
}
@keyframes blink {
	0% {opacity: 1;}
	50% {opacity: 0.45;	}
	100% {		opacity: 1;	}
}

	.traffic .features, .container-traffic .features {
		align-items: flex-end;
		display: flex;
		flex-direction: row;
		gap: 10px;
	}

		.traffic .features > div {
			align-items: center;
			background: #F5F5F5;
			border-radius: 5px;
			border: 1px solid #ccc;
			display: flex;
			font-size: 11px;
			gap: 4px;
			padding: 4px;
		}


		 .container-traffic .features > div {
			align-items: center;
			background: #F5F5F5;
			border-radius: 3px;
			border: 1px solid #ccc;
			display: flex;
			font-size: 11px;
			gap: 3px;
			padding: 3px 3px;
		}

	/* traffic styles in highlighted state. */
	.traffic.highlight {
		background-color: #FFB3B2;
		border-radius: 8px;
		box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.2);
		height: 70px;
		width: 340px;
		/*padding: 8px 15px;*/
	}

		.traffic.highlight .details {
			display: flex;
		}


.icon-buttons {
	position: absolute;
	top: -12px;
	right: -10px;
	display: flex;
}

.action-button {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	font-weight: bold;
	color: white;
	margin: 2px;
	width: 20px;
	height: 20px;
	background-color: #007bff;
	border: none;
	border-radius: 15px;
	cursor: pointer;
	transition: background-color 0.3s;
}

.close-button {
	background-color: #dc3545;
}

.play-button {
	font-size: 10px;
	padding: 4px 0px 6px 2px;
	border: 1px dashed darkred;
	background-color: white;
	color: darkred;
}

.action-button .icon {
	margin: 5px;
}

.action-button:hover {
	opacity: 0.9;
}

.div-iw {
	position: relative;
	display: inline-block;
	width: fit-content;
}

.image-title-camera {
	position: absolute;
	top: 1px;
	left: 1px;
	background-color: rgba(0, 0, 0, 0.3);
	color: white;
	padding: 3px 3px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: bold;
}

.ago {
	width: 12px;
	height: 12px;
	background: url('../svg/clock-regular.svg') no-repeat center center;
	background-size: contain;
}
.requester {
	width: 12px;
	height: 12px;
	background: url('../svg/newspaper-solid.svg') no-repeat center center;
	background-size: contain;
}
.damage {
	width: 12px;
	height: 12px;
	background: url('../svg/damage.png') no-repeat center center;
	background-size: contain;
}
.injury {
	width: 12px;
	height: 12px;
	background: url('../svg/user-injured-solid.svg') no-repeat center center;
	background-size: contain;
}

.li-traffic {
	text-align: right;
	display: flex;
	align-items: center;
	padding: 10px;
	border: 1px solid #ccc;
	background-color: #FFB3B2;
	margin: 10px 0;
	list-style: none,
}
.iw-traffic {
	text-align: right;
	display: flex;
	flex-direction: column;
	align-items: center;
/*	padding: 10px;*/
	margin: 5px 0;
	list-style: none,
}

.container-traffic {
	flex: 1;
	display: flex;
	flex-direction: column;
	margin-right: 10px;
}

.title-traffic {
	font-weight: bold;
	font-size: 12px;
	margin-bottom: 1px;
}

.desc-traffic {
	font-size: 12px;
	margin-bottom: 2px;
}

.date-traffic {
	font-size: 11px;
	color: #555;
}

.image-traffic {
	width: auto;
	height: 40px;
	object-fit: cover;
	border-radius: 5px;
}
.no  { background-color: #99FF99!important;}
.yes { background-color: #FF9999!important;}








.image-data-container {
	text-align:center;
	display: flex;
	align-items: center; /* Align items vertically */
	border: 2px solid darkgreen;
	padding: 3px;
	border-radius: 8px;
	background-color: #f9f9f9;
	margin: 3px;
	max-width: 300px; /* Max width for responsiveness */
}

/* Styling for image */
.image-container {
	width: 30px;
	height: auto;
	margin-right: 12px;
}
	.image-container > div {
		font-size: 11px;
		color: black;
		text-align: center;
	}

	.image-container img {
		object-fit: cover; /* Make sure the image covers the container without distortion */
		border-radius: 50%; /* Optional: makes image round */
	}

/* Styling for the data section */
.data-container {
	flex-grow: 1; /* Allow the data to take remaining space */
}

	.data-container p {
		margin: 6px 0;
		font-size: 11px;
		color: #333;
	}
	.data-container p .blank {
		margin: 2px 0;
		font-size: 11px;
		color: #333;
	}

	.data-container .data-action {
		font-weight: bold;
		color: darkgreen;
	}
	.data-container .data-screen {
		font-weight: bold;
		color: #555;
	}

	.data-container .message {
		padding:6px;
		font-weight: bold;
		color: #ffbf2e;
		background-color:black;
	}
