/* JKSessionMyTrack.css */

.session-track {
  position: relative;
  width: 150px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  margin-bottom: 10px;
  font-size: small;
}

.session-track.my-track {
  /* Specific styles for my tracks */
}

.session-track.chat-track {
  /* Specific styles for chat tracks */
}

.session-track.has-mixer {
  /* Styles when mixer is available */
}

.session-track.no-mixer {
  opacity: 0.6;
}

.disabled-track-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  display: none; /* Show when needed */
}

.session-track-contents {
  position: relative;
  z-index: 1;
}

.name {

  margin-bottom: 8px;
  text-align: center;
}

.track-avatar {
  text-align: center;
  margin-bottom: 8px;
}

.track-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.track-instrument {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
  /* background-color: #f8f9fa; */
  border-radius: 4px;
  padding: 4px;
}

.track-instrument img {
  width: 50px;
  height: 50px;
}

.track-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.track-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.track-icon-mute {
  width: 24px;
  height: 24px;
  background-color: #28a745;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
}

.track-icon-mute.enabled {
  background-color: #28a745;
}

.track-icon-mute.muted {
  background-color: #dc3545;
}

.track-icon-pan {
  width: 24px;
  height: 24px;
  background-color: #6c757d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
}

.track-icon-equalizer {
  width: 24px;
  height: 24px;
  background-color: #007bff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
}

.track-connection-state {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #6c757d;
}

.track-connection-state.excellent {
  background-color: rgb(52, 116, 26)
}

.track-connection-state.good {
  background-color: rgb(249, 197, 44)
}

.track-connection-state.poor {
  background-color: rgb(167, 0, 0);
}

.track-connection-state.unknown {
  background-color: #6c757d;
}

.vu-bg-secondary {
  background-color: #fdfeff;
}

.vu-bg-danger {
  background-color: rgb(167, 0, 0);
}

.vu-bg-warning {
  background-color: rgb(249, 197, 44);
}

.vu-bg-success {
  background-color: rgb(52, 116, 26);
}

.track-menu-container {
  position: relative;
}

.track-menu-button {
  width: 24px;
  height: 24px;
  background-color: #007bff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
}

.track-menu {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 10;
  min-width: 100px;
}

.track-menu div {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.track-menu div:last-child {
  border-bottom: none;
}

.track-menu div:hover {
  background-color: #f8f9fa;
}

.connection-container {
  position: relative;
}

.clearall {
  clear: both;
}
