.Product-Panel { display: flex; background-color: #000000; opacity: 0.75; width: 300px; height: auto; padding: 10px; border-radius: 10px; flex-direction: column; margin: 10px; align-items: flex-start; justify-content: flex-start; } .Product-Panel > .Product-Header { display: flex; flex-direction: row; align-items: flex-start; } .Product-Header > .Product-Image { min-width: 64px; min-height: 64px; background-size: contain; background-repeat: no-repeat; background-position: center; background-color: #aaa; border-radius: 5px; flex-shrink: 0; max-width: 64px; max-height: 64px; } .Product-Header > .Product-Title { height: 100%; align-items: center; font-size: 20px; -unity-font-style: bold; color: white; -unity-text-align: middle-left; white-space: nowrap; /* Prevent text wrapping */ overflow: hidden; text-overflow: ellipsis; /* Add ellipsis if text is too long */ margin-left: 10px; } .Product-Panel > .Panel-Body { display: flex; flex-direction: column; width: 100%; margin-top: 20px; margin-bottom: 10px; align-items: flex-start; color: white; } .Panel-Body > .Panel-Body-Title { display: flex; top: 20px; color: white; -unity-font-style: bold; font-size: 18px; } .Panel-Body > .Product-Capacity { display: flex; margin-top: 25px; -unity-font-style: bold; font-size: 14px; } .Panel-Body > .unity-progress-bar { width: 100%; min-height: 10px; border-radius: 10px; margin-top: 10px; overflow: hidden; /* Use a subtle transparent black or very light color instead of fully transparent */ background-color: rgba(0,0,0,0.2); /* safer than fully transparent */ /* If you want a border */ border-width: 1px; border-style: solid; border-color: gray; /* Remove negative margins or positioning */ margin-right: 0; } .Panel-Body > .unity-progress-bar__progress { background-color: green; border-radius: 10px; } .unity-progress-bar { width: 100%; min-height: 12px; border-radius: 10px; margin-top: 10px; } /* Background track of the bar */ .unity-progress-bar__background { background-color: rgba(0, 0, 0, 0.2); /* semi-transparent black track */ border-radius: 10px; border: 1px solid gray; /* add border if you want */ } /* The filled portion */ .unity-progress-bar__progress { background-color: green; /* fill color */ border-radius: 10px; } /* Optional: style title container if you use it */ .unity-progress-bar__title-container { margin-top: 5px; } /* Optional: style title text */ .unity-progress-bar__title { color: white; font-weight: bold; }