
/*
.auto-margin-0 { margin: 8%; }
.auto-margin-1 { margin: 4%; }
.auto-padding-0 { padding: 2%; }
.auto-backgroundcolor-0 { background-color: red; }
.auto-backgroundcolor-1 { background-color: none; }
.auto-backgroundcolor-2 { background-color: #555; }
.auto-backgroundcolor-3 { background-color: #111; }
.auto-backgroundcolor-4 { background-color: #818181; }
.auto-textalign-0 { text-align: center; }
.auto-color-0 { color: #111; }
.auto-color-1 { color: #818181; }
.auto-borderstyle-0 { border-style: solid; }
.auto-fontweight-0 { font-weight: bold; }
.auto-fontsize-0 { font-size: 30px; }
.auto-fontsize-1 { font-size: 20px; }
.auto-fontsize-2 { font-size: 10px; }
.auto-fontsize-3 { font-size: 8px; }
.auto-borderradius-0 { border-radius: 5px; }
.auto-borderradius-1 { border-radius: 10px; }
.auto-marginleft-0 { margin-left: 5%; }
.auto-marginright-0 { margin-right: 5%; }
.auto-marginbottom-0 { margin-bottom: 5%; }
.auto-marginbottom-1 { margin-bottom: 3%; }
.auto-display-0 { display: inline-block; }
.auto-display-1 { display: block; }
.auto-display-2 { display: none; }
.auto-fontfamily-0 { font-family: Verdana, Geneva, sans-serif; }
.auto-maxwidth-0 { max-width: 70%; }
.auto-background-0 { background: none; }
.auto-ariahidden-0 { ariaHidden: true; }
.auto-left-0 { left: 0; }
.auto-right-0 { right: 0; }
.auto-border-0 { border: solid rgb(143,143,143); }
*/
/* Core Layout */
body {
    font-family: Verdana, Geneva, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #222;
    color: #fff;
}

#menuToggle {
  display: inline-block;
  z-index: 500; /* Below sidebar (z-index: 1000), above map (-1) */
  position: fixed;
  right: 2%;
  top: 5%;
  background-color: white;
  font-size: 30px;
  cursor: pointer;
  border-radius: 5px;
  padding: 0.1em 0.3em;
  border-style: outset;
  border-width: 2px;
  color: #111;
}

#menuToggle:hover {
  background-color: whitesmoke;
}

#btnfollow{
  display: none;
  z-index: 1;
  font-size:30px;
  cursor:pointer;
  border-radius: 5px;
  padding:0.1%;
  padding-left: 10px;
  padding-right:10px;
  border-style:outset;
  border-width:12%;
  position: fixed;
  left: 0.9%;
  top: 50%;
  background-color:white;
  color:#111;
}
    
#btnfollow:hover{
    background-color:whitesmoke;
}


.sidenav {
  height: 100%;
  width: 480px;
  position: fixed;
  top: 0;
  right: 0;
  background-color: #111;
  overflow-x: hidden;
  padding-top: 20px;
  z-index: 1000;
  border-left: 2px solid #555;
}

/* Sidebar open/close transition */
#mySidenav {
  right: -480px; /* Hide sidebar off-screen to the right */
  transition: right 0.5s ease, width 0.3s ease;
}

#mySidenav.open {
  right: 0; /* Slide in */
}

/* Sidebar open/close transition option for wider */
#mySidenav.wide {
  width: 40vw;     /* 50% of viewport width */
  right: -40vw;    /* Hide it offscreen accordingly */
}

#mySidenav.open.wide {
  right: 0;
}


.sidenav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background-color: #222;
  border-bottom: 1px solid #444;
}

.sidenav-header .backbtn,
.sidenav-header .closebtn,
.sidenav-header .username {
  flex: 1;
  text-align: center;
  font-size: 16px;
  color: white;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 5px;
  background-color: #444;
}

.sidenav-header .backbtn {
  text-align: left;
}

.sidenav-header .closebtn {
  text-align: right;
}

.sidenav-header .username {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.sidenav-header .loginlink:hover,
.sidenav-header .backbtn:hover,
.sidenav-header .closebtn:hover {
  background-color: #666;
}


.sidenav a, .sidenav .loginbtn {
    padding: 8px 8px 8px 16px;
    text-decoration: none;
    font-size: 18px;
    color: #ccc;
    display: block;
    transition: 0.3s;
    cursor: pointer;
}

.sidenav a:hover, .sidenav .loginbtn:hover {
    color: white;
    background-color: #333;
}

#sidebarContent {
  padding: 10px;
  overflow-y: auto;
}

.snippet {
    padding: 10px;
    background-color: #444;
    color: #ccc;
    margin: 10px;
    border-radius: 5px;
    font-size: 14px;
}

input[type="text"], input[type="password"] {
    font-size: 20px;
    padding: 8px;
    background-color: #111;
    color: #fff;
    border: none;
    border-bottom: 2px solid #888;
    width: 80%;
}

input[type="submit"] {
    font-size: 18px;
    padding: 8px 16px;
    background-color: #666;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 5px;
}

input[type="submit"]:hover {
    background-color: #888;
}


/* Utility */
.centered {
    text-align: center;
    margin: 0 auto;
}




/* Tracking Panel */
.tracking-panel {
  padding: 10px;
  font-family: Verdana, sans-serif;
  color: #111;
}

.section-title {
  font-size: 24px;
  font-weight: bold;
  background-color: #333;
  color: white;
  border-radius: 10px;
  padding: 10px;
  margin: 0 0 10px 0;
  text-align: center;
}

.tracking-panel .section-desc {
  background-color: #444;
  padding: 10px;
  border-radius: 10px;
  color: #ccc;
  margin-bottom: 10px;
  font-size: 14px;
}

.tracking-panel .device-select {
  margin: 10px auto;
  text-align: center;
}
.tracking-panel .device-select select {
  background-color: #999;
  color: #111;
  font-weight: bold;
  font-size: 18px;
  padding: 8px;
  border-radius: 10px;
  border: none;
  text-align: center;
}

.tracking-panel .status-box {
  font-size: 20px;
  font-weight: bold;
  color: #111;
  background-color: #999;
  border-radius: 10px;
  text-align: center;
  margin: 15px auto;
  padding: 10px;
}

.tracking-panel .data-box {
  background-color: #999;
  color: #111;
  border-radius: 10px;
  padding: 10px;
  margin: 15px 0;
}

.tracking-panel .data-box .box-title {
  font-weight: bold;
  text-align: center;
  font-size: 16px;
  margin-bottom: 8px;
}

.tracking-panel .data-box .snippet {
  background-color: #111;
  color: #999;
  border: 1px solid #999;
  padding: 6px 10px;
  margin: 5px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: bold;
  text-align: left;
}

#csvNameBox {
  text-align: center;
  margin-top: 10px;
}

#csvNameBox input[type="text"] {
  background-color: #111;
  color: #999;
  padding: 6px;
  border-radius: 5px;
  border: 1px solid #999;
  margin-right: 5px;
}

button {
  font-size: 14px;
  padding: 6px 20px;
  background-color: #666;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 5px;
}

button:hover {
  background-color: #888;
}
.tracking-panel input[type="text"],
.tracking-panel input[type="submit"] {
  padding: 0.5em;
  font-size: 12px;
  border-radius: 10px;
  border: 1px solid #818181;
}


/* Table layout improvements */
#csvTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
  color: #eee;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

/* Table header */
#csvTable thead {
  background-color: #333;
  font-weight: bold;
}

/* Table rows */
#csvTable td, #csvTable th {
  padding: 8px 12px;
  border-bottom: 1px solid #555;
}

/* Hover & active row effect */
#csvTable tbody tr {
  cursor: pointer;
  transition: background-color 0.2s;
}

#csvTable tbody tr:hover {
  background-color: #444;
}

#csvTable tbody tr.active {
  background-color: #1e90ff; /* or any highlight color */
  color: #fff;
}


.paths-panel #csvSelect {
  margin: 10px auto;
  text-align: center;
  background-color: #999;
  color: #111;
  font-weight: bold;
  font-size: 18px;
  padding: 8px;
  border-radius: 10px;
  border: none;
  text-align: center;
}

.password-wrapper {
  position: relative;
  display: inline-block;
}

.password-wrapper input {
  padding-right: 30px; /* Leave space for the eye icon */
}

.toggle-password {
  position: absolute;
  padding: 10px;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
}


.popup {
	opacity: 0;
	visibility: hidden;
	transition: opacity 250ms ease, visibility 0ms linear 250ms;
	display: flex;
	justify-content: center;
	align-items: center;
	position: fixed;
	z-index: 9999;
	left: 0; top: 0;
	width: 100%; height: 100%;
	background-color: rgba(0,0,0,0.4);
}

.popup.show {
	opacity: 1;
	visibility: visible;
	transition: opacity 250ms ease, visibility 0ms;
}


.popup-content {
	background-color: #333;
	margin: auto;
	padding: 20px;
	border: 1px solid #888;
	width: 50%;
	max-width: 55vw;
	max-height: 80vh;
	border-radius: 10px;
	color: white;
	position: relative;
	margin-top: 10%;
	margin-bottom: 10%;
	transform: translateY(0%);
	transition: transform 0.5s ease;
}


.popup-content ul {
	margin: 10px 0;
	padding-left: 20px;
}

.popup-content .closebtn {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
}

.popup-content .closebtn:hover,
.popup-content .closebtn:focus {
	color: white;
	text-decoration: none;
	cursor: pointer;
}

@media (max-width: 600px) or (max-height: 650px) {
	.sidenav {
	  height: 100%;
	  width: 100%;
	  position: fixed;
	  top: 0;
	  right: 0;
	  background-color: #111;
	  overflow-x: hidden;
	  padding-top: 20px;
	  z-index: 1000;
	  border-left: 2px solid #555;
	}
	
	#mySidenav {
	  right: -100%; /* Hide sidebar off-screen to the right */
	  transition: right 0.5s ease, width 0.3s ease;
	}

	#mySidenav.open {
	  right: 0; /* Slide in */
	}

	/* Sidebar open/close transition option for wider */
	#mySidenav.wide {
	  width: 40vw;     /* 50% of viewport width */
	  right: -40vw;    /* Hide it offscreen accordingly */
	}

	#mySidenav.open.wide {
	  right: 0;
	}
	.popup-content {
		max-width: 60vw;
		max-height: 80vh;
		transform: translateY(-0%);
		font-size: 12px;
	}
}

@media (max-width: 400px) or (max-height: 500px) {
	.popup-content {
		width: 60%;
		max-height: 85vh;
		transform: translateY(-0%);
		font-size: 11px;
	}
}


