#eventSelect {
    position: fixed;
    bottom: 50px;
    left: 10px;
    z-index: 1000;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: white;
    width: 140px;
}

#trackingControls {
    display: flex;
    align-items: center;
    gap: 5px;
    position: fixed;
    bottom: 50px;
    left: 150px;
    z-index: 1000;
    padding: 0 10px;
}

#trackingControls button {
    width: 40px;
	height: 30px;
    margin: 0 0 0 0;
    padding: 6px 10px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    background-color: #3178c6;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#trackingControls button:hover {
    background-color: #255a94;
}

#trackingControls button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#trackingControls label {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
}

#speedRange {
    width: 100%;
    margin-top: 5px;
}

/* Kiiruse valiku rippmenüü */
#speedSelect {
  font-size: 12px;
  padding: 0 2px;
  cursor: pointer;
  border: 1px solid #ccc;
  background-color: #f2f2f2;
  border-radius: 4px;
  line-height: 1;
  user-select: none;
  width: 40px;
  height: 30px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Raja pikkuse valiku rippmenüü */
#trailDurationSelect {
  font-size: 12px;           
  padding: 0 2px;            
  cursor: pointer;
  border: 1px solid #ccc;
  background-color: #f2f2f2;
  border-radius: 4px;
  line-height: 1;
  user-select: none;
  width: 40px;
  height: 30px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;     
}

#trackingUserPanel {
    position: fixed;
    top: 60px;
    left: 0;
    width: 160px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
    border-radius: 10px;
    padding: 10px;
    max-height: 80%;
    overflow-y: auto;
    z-index: 1000;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

#trackingUserPanel.closed {
    transform: translateX(-100%);
}

.tracking-user-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

#userListHeader {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.hidden {
    display: none !important;
}

.search-wrapper {
    position: relative;
    width: 120px;
    display: inline-block;
}

#userSearch {
    width: 100%;
    font-size: 12px;
    padding: 4px 22px 4px 6px; 
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.clear-search {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    
    width: 16px;
    height: 16px;
    display: none;

    font-size: 12px;
    line-height: 16px;
    text-align: center;

    color: #888;
    cursor: pointer;
    user-select: none;

    border-radius: 50%;
    background: rgba(0,0,0,0.05);

    transition: all 0.15s ease;
    font-weight: bold;
}

.clear-search:hover {
    background: rgba(0,0,0,0.12);
    color: #000;
    transform: translateY(-50%) scale(1.1);
}

.clear-search:active {
    transform: translateY(-50%) scale(0.95);
}

#toggleUserListBtn {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1100;
    width: 28px;
    height: 40px;
    border: none;
    background: #3178c6;
    color: white;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left 0.3s ease;
}

#toggleUserListBtn:hover {
    background: #255a94;
}

#trackingUserPanel.hidden-empty {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-100%);
    transition: all 0.3s ease;
}

.tracking-user-row span {
    white-space: nowrap;
    font-size: 11px;
    overflow: hidden;         
    max-width: 100px;
}


