.container {
  padding: 16px;
  background: #f8fafc;
  min-height: 100vh;
  padding-bottom: 100px;
}

.header {
  margin-bottom: 16px;
}

.title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.deviceSelectorWrapper {
  margin-top: 16px;
}

.deviceSelector {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s;

  &:hover {
    border-color: #3b82f6;
  }
}

.selectedDevicesInfo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow: hidden;
}

.selectedCountText {
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
}

.deviceNames {
  font-size: 12px;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.placeholder {
  flex: 1;
  color: #cbd5e1;
  font-size: 14px;
}

.expandIcon {
  color: #94a3b8;
  font-size: 14px;
  flex-shrink: 0;
  margin-left: 8px;
}

.selectedDevicesGrid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.selectedDeviceCard {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  border: 2px solid #3b82f6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background: #eff6ff;
}

.deviceCardHeader {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.deviceCardIcon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  overflow: hidden;
  flex-shrink: 0;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  span {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.deviceIconOnline {
  background: #e0f2fe;
  color: #3b82f6;
}

.deviceIconOffline {
  background: #f3f4f6;
  color: #94a3b8;
}

.deviceCardStatusBadge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
}

.statusOnline {
  background: #d1fae5;
  color: #065f46;
}

.statusOffline {
  background: #f3f4f6;
  color: #374151;
}

.deviceCardName {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deviceCardInfo {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.deviceCardPhone {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

.deviceCardDeleteButton {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;

  &:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
  }
}

.deviceCardDeleteIcon {
  color: #ef4444;
  font-size: 14px;
}
