.header {
  flex-shrink: 0;
  padding: 20px;
  background-color: #4a5568;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  min-width: 0;
  width: 100%;
}

.title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}

.headerRight {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-shrink: 0;
}

.qrButton {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qrButton:hover {
  background: rgba(255, 255, 255, 0.3);
}

.qrButton:active {
  background: rgba(255, 255, 255, 0.4);
}

.userInfo {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.connectionStatus {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.connectionStatus::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.connectionStatus.connected::before {
  background-color: #48bb78;
}

.connectionStatus.disconnected::before {
  background-color: #f56565;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .header {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .title {
    font-size: 18px;
    flex: 1 1 100%;
    text-align: center;
  }

  .headerRight {
    gap: 12px;
    flex: 1;
    justify-content: space-between;
  }

  .userInfo {
    font-size: 13px;
  }

  .connectionStatus {
    font-size: 13px;
  }

  .qrButton {
    padding: 6px 10px;
    font-size: 18px;
  }
}

.signOutButton {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  color: white;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.signOutButton:hover {
  background: rgba(255, 255, 255, 0.3);
}

.signOutButton:active {
  background: rgba(255, 255, 255, 0.4);
}

