#topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 55px;
    background: #004990; /* Official VRE Blue */
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 3000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    font-family: Arial, sans-serif;
}
.app-title {
    font-size: 20px;
    font-weight: bold;
}
.user-profile-container {
    position: relative;
    cursor: pointer;
}
#user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
    background-color: #003366; /* Fallback background circle color */
}
.user-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 48px;
    background: white;
    color: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    width: 220px;
    overflow: hidden;
    z-index: 3001;
    font-size: 14px;
}
.user-menu.show {
    display: block;
}
.user-email {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    word-break: break-all;
    background: #f9f9f9;
}
.user-menu button {
    width: 100%;
    background: none;
    border: none;
    padding: 12px;
    text-align: left;
    cursor: pointer;
    font-weight: bold;
    color: #d92020;
}
.user-menu button:hover {
    background: #f1f1f1;
}

/* Shifts Leaflet controls down so they sit nicely below the top bar */
.leaflet-top {
    top: 60px !important;
}